/* WYRD Film: disks on the left, the preview in the middle, the client list on the right (film-disks.js builds it from
   the page's own project cards). The wheel of disks is one WebGL canvas; everything else is ordinary markup.

   Slates are for the reading copy: the client list, the three service lists, and the small tile under the wheel. A slate
   is the same cream suede slab as the line menu, rounded, with blue type, and weighted the same way: it tips toward the
   side the cursor rests on and rocks back (film-disks.js sets --rx, --ry, --sx). The title and the film stand on the blue
   wall itself. No glow, no drop shadow, no fades. */
.fd-live{--slate:linear-gradient(160deg,#ffffff4d,#0000 45%,#a79f8226),url('/assets/suede/suede-tile-cream-430.webp?v=3') 0 0/215px 215px,#f2f0e7;--r:clamp(16px,1.5vw,22px)}
.fd-live .wkc-reelwrap{display:none}
.fd-slab{--rx:0deg;--ry:0deg;--sx:0px;border-radius:var(--r);background:var(--slate);isolation:isolate;
  box-shadow:inset 0 2px 2px #ffffffb3,inset 0 -4px 6px #8e866a4d,var(--sx) 4px 0 #bdb7a1;
  transform:perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));will-change:transform}

/* the heading: one line on the wall. Number, name, what it is */
.pg-line .wkc-ch.fd-live{padding-top:clamp(14px,2.6svh,30px)}
.fd-live .wkc-head{display:block}
.fd-live .wkc-title{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:clamp(12px,1.5vw,24px);row-gap:4px}
.fd-live .wkc-title .wkc-num,.fd-live .wkc-title .wkc-q{margin:0}
.pg-work .fd-live .wkc-title h2{font-size:clamp(36px,3.8vw,60px)}
.pg-work .fd-live .wkc-title .wkc-q{font-size:clamp(17px,1.5vw,24px)}

.fd{--row:clamp(36px,5.2svh,46px);--grid:minmax(0,1fr) minmax(0,1.72fr) minmax(0,.62fr);--gap:clamp(18px,2.4vw,40px);
  position:relative;z-index:1;display:grid;grid-template-columns:var(--grid);column-gap:var(--gap);
  height:clamp(320px,calc(100vh - 310px),700px);height:clamp(320px,calc(100svh - 310px),700px);margin-top:clamp(14px,2.2svh,22px);padding:0 var(--pad)}

/* left: the wheel. The canvas runs out to the screen's edge. At its foot, one small tile: the count and the two steps.
   The axle runs behind the tile, so the disks fan out from it and slide back in behind it */
.fd__wheel{position:relative;align-self:stretch;min-width:0;-webkit-user-select:none;user-select:none}
.fd__canvas{position:absolute;left:calc(var(--pad) * -1);top:0;width:calc(100% + var(--pad) + 10px);height:100%;display:block;
  touch-action:pan-y;cursor:grab;opacity:0;transition:opacity .7s ease}
.fd.is-in .fd__canvas{opacity:1}
.fd.is-dragging,.fd.is-dragging .fd__canvas,.fd.is-dragging .fd__list{cursor:grabbing}
.fd__tray{position:absolute;z-index:1;left:0;right:0;bottom:4px;width:max-content;height:38px;margin:0 auto;display:flex;align-items:center;gap:6px;padding:0 4px 0 15px;
  border-radius:13px;color:var(--blue)}
.fd__count{font:600 11.5px/1 var(--font-body);font-variant-numeric:tabular-nums;letter-spacing:.08em;color:var(--blue)}
.fd__steps{display:flex;flex:none}
.fd__step{width:32px;height:32px;margin:0;padding:0;border:0;border-radius:10px;background:none;color:var(--blue);cursor:pointer;display:grid;place-items:center;opacity:.8;
  transition:opacity .2s,transform .25s cubic-bezier(.22,1,.36,1);-webkit-tap-highlight-color:transparent}
.fd__step svg{width:13px;height:13px;transform:rotate(45deg)}
.fd__step[data-step="-1"] svg{transform:rotate(-135deg)}
.fd__step:hover{opacity:1}.fd__step[data-step="1"]:hover{transform:translateX(2px)}.fd__step[data-step="-1"]:hover{transform:translateX(-2px)}
.fd__step:active{transform:scale(.92)}
.fd__step:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}

/* middle: the film, straight on the wall, its caption under it. The picture area never changes shape; a tall film sits centred in it */
.fd__view{display:flex;flex-direction:column;align-items:flex-start;align-self:start;min-width:0}
.fd__frame{position:relative;flex:none;width:100%;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;transform:translateZ(0)}
.fd__layer{position:absolute;inset:0;opacity:0;transition:opacity .4s ease}
.fd__layer.is-on{opacity:1}
.fd__layer img,.fd__layer video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;border:0;border-radius:var(--r)}
.fd__layer.is-contain img,.fd__layer.is-contain video{margin:auto;width:auto;max-width:100%;object-fit:contain}
.fd__layer video{opacity:0;transition:opacity .35s ease}
.fd__layer.has-video video{opacity:1}
.fd__layer:not(.is-on){pointer-events:none}
.fd__act{display:flex;align-items:center;gap:16px;align-self:stretch;height:44px;margin-top:14px;color:var(--cream)}
/* the one button is a small slate of its own */
.fd__play{flex:none;display:inline-flex;align-items:center;gap:10px;height:40px;margin-bottom:4px;padding:0 20px 0 17px;border-radius:13px;color:var(--blue);text-decoration:none;
  background:var(--slate);box-shadow:inset 0 2px 2px #ffffffb3,inset 0 -4px 6px #8e866a4d,0 4px 0 #bdb7a1;
  font:700 14.5px/1 var(--font-body);letter-spacing:.01em;white-space:nowrap;transition:transform .2s cubic-bezier(.3,.7,.2,1),box-shadow .2s}
.fd__play:hover{transform:translateY(-1px)}
.fd__play:active{transform:translateY(3px);box-shadow:inset 0 2px 2px #ffffffb3,inset 0 -4px 6px #8e866a4d,0 1px 0 #bdb7a1}
.fd__play:focus-visible{outline:2px solid var(--cream);outline-offset:3px}
.fd__play svg{width:13px;height:13px}
.fd__tri{display:block;width:11px;height:13px;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
.fd__tri.is-stop{width:11px;height:11px;clip-path:none;border-radius:2px}
.fd__meta{margin:0;min-width:0;font:500 clamp(13px,1vw,15px)/1.2 var(--font-body);color:var(--cream);opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fd__all{flex:none;display:inline-flex;align-items:center;gap:8px;margin-left:auto;font:600 clamp(13px,1vw,15px)/1 var(--font-body);color:var(--cream);text-decoration:none;white-space:nowrap}
.fd__all svg{width:13px;height:13px;transition:transform .3s cubic-bezier(.22,1,.36,1)}.fd__all:hover svg{transform:translate(2px,-2px)}
.fd__all:focus-visible{outline:2px solid var(--cream);outline-offset:4px}

/* right: the list, on its own slate, as tall as the film's. Rows are placed by the script and wrap round, so it has no
   end; only whole rows show, and the centre line is the selection */
.fd__pick{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 0 0 clamp(14px,1.4vw,22px)}
.fd__list{position:relative;flex:1 1 0;min-height:0;overflow:hidden;outline:0;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.fd__mark{position:absolute;left:0;top:50%;width:16px;height:2px;margin-top:-1px;border-radius:2px;background:var(--blue)}
.fd__row{position:absolute;left:0;top:0;width:calc(100% - 30px);height:var(--row);margin:0;padding:0;border:0;background:none;cursor:pointer;
  color:var(--blue);font:400 clamp(19px,1.65vw,26px)/1 var(--font-display);letter-spacing:-.025em;text-align:left;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;will-change:transform,opacity;-webkit-tap-highlight-color:transparent}
.fd__row:focus-visible{outline:0;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.fd__list:focus-visible .fd__mark{width:24px}

/* what the line does: under the machine, one slate, on the machine's three columns */
.fd__more{position:relative;z-index:1;margin-top:clamp(40px,8svh,90px);padding:0 var(--pad)}
.fd__more .wkc-cols{padding:clamp(18px,2.6svh,28px) clamp(18px,1.9vw,30px) clamp(20px,2.8svh,30px)}
@media(min-width:861px){.fd__more .wkc-cols{grid-template-columns:minmax(0,1fr) minmax(0,1.72fr) minmax(0,.62fr);column-gap:clamp(18px,2.4vw,40px)}}

/* arriving (the slates only fade: their transform belongs to their weight) */
.fd__view{opacity:0;transform:translateY(16px);transition:opacity .8s ease .15s,transform .8s cubic-bezier(.22,1,.36,1) .15s}
.fd__pick,.fd__tray{opacity:0;transition:opacity .8s ease .25s}
.fd.is-in .fd__view{opacity:1;transform:none}
.fd.is-in .fd__pick,.fd.is-in .fd__tray{opacity:1}

@media(max-width:860px){
  .fd{--row:44px;display:block;height:auto}
  .fd__wheel{height:clamp(290px,84vw,400px)}
  .fd__canvas{width:calc(100% + var(--pad) * 2)}
  .fd__view{margin-top:26px}
  .fd__pick{margin-top:18px}
  .fd__list{flex:none;height:calc(var(--row) * 5)}
  .fd__act{flex-wrap:wrap;height:auto;row-gap:10px;margin-top:12px}
  .fd__meta{order:-1;flex:0 0 100%}
  .fd__row{font-size:clamp(22px,6.2vw,27px)}
}
/* on a touch screen a finger over the list scrolls the page; the names, the arrows and a sideways swipe on the disks do the choosing */
@media(hover:none),(pointer:coarse){.fd__list{touch-action:pan-y}}
@media(prefers-reduced-motion:reduce){.fd__canvas,.fd__view,.fd__pick,.fd__tray,.fd__layer,.fd__layer video{transition:none}}
