/* =================================================================
   ARRAD · LIST × WALL
   v5's black list, now the index to a wall of the films themselves.
   Hover either side and the other answers; the room goes dark around
   whatever you're on, and it plays.
   ================================================================= */
:root{
  --black:  #050505;
  --white:  #f2f0ea;
  --dim:    #8a8781;
  --line:   rgba(242,240,234,.14);
  --head:  'Syne', 'Helvetica Neue', Arial, sans-serif;
  --text:  'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --sig:   'Zeyada', 'Bradley Hand', cursive;
  --pad: clamp(22px, 3.2vw, 52px);
  --side: clamp(420px, 34vw, 520px);
  --gap: 10px;
  --top-h: 38px;
  --top-gap: clamp(26px, 4vh, 40px);
  --ease: cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0 }
html{ scroll-behavior:smooth }
body{
  background:var(--black); color:var(--white);
  font-family:var(--text); font-size:14px; line-height:1.55;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
  display:grid; grid-template-columns:var(--side) minmax(0, 1fr);
}
a{ color:inherit; text-decoration:none }
ul{ list-style:none }
img,video{ display:block; max-width:100% }
::selection{ background:var(--white); color:var(--black) }

/* ---------- the list ---------- */
.side{
  position:sticky; top:0; height:100vh; overflow-y:auto; overscroll-behavior:contain;
  padding:var(--pad) 24px var(--pad) var(--pad); scrollbar-width:none;
}
.side::-webkit-scrollbar{ display:none }
.side__top{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; height:var(--top-h); margin-bottom:var(--top-gap); font-size:12px; color:var(--dim) }
.side__role{ position:relative; top:-6px }   /* sits on the signature's baseline */
.side__name{ font-family:var(--sig); font-size:46px; line-height:.8; color:var(--white) }
.group{ margin-bottom:clamp(22px,3.4vh,34px) }
.group h3, .info h3{
  font-family:var(--head); font-weight:800; font-size:11px;
  letter-spacing:.24em; text-transform:uppercase; color:var(--dim);
  margin-bottom:10px;
}
.group li{ line-height:1.35 }
.group .work a{ display:flex; gap:14px; align-items:baseline; padding:3px 6px 3px 0; transition:opacity .3s var(--ease) }
.work i{ font-style:normal; font-size:10.5px; letter-spacing:.14em; color:var(--dim); width:34px; flex:none }
.work b{ font-weight:400; display:inline-flex; align-items:baseline; gap:8px; min-width:0 }
.work em{ font-style:normal }
.work strong{ font-weight:500 }
.work span{ flex:none; white-space:nowrap; color:var(--dim) }
.mark{ height:1.15em; width:auto; align-self:center; filter:invert(1) brightness(1.1) }
/* v5's move: the line you're on inverts */
.work a.is-live{ background:var(--white); color:var(--black); padding-left:6px }
.work a.is-live i, .work a.is-live span{ color:#3c3a36 }
.work a.is-live .mark{ filter:none }
/* and every other line steps back, like the wall does */
body.is-on .work a:not(.is-live){ opacity:.35 }

.side__links{ display:flex; flex-direction:column; align-items:flex-start; gap:3px; color:var(--dim); font-size:13px }
.side__links a:hover{ background:var(--white); color:var(--black) }

/* ---------- main column: starts level with the list, so the two headings line up ---------- */
.main{ padding:calc(var(--pad) + var(--top-h) + var(--top-gap)) var(--pad) 0 8px; min-width:0 }

/* ---------- the wall ---------- */
.wall{ position:relative }
.row{ display:flex; gap:var(--gap); margin-bottom:46px }
.row--r{ justify-content:flex-end }
.tile{
  position:relative; flex:none; cursor:pointer;
  transition:opacity .35s var(--ease);
  opacity:0;
}
.tile.is-in{ opacity:1 }   /* set by a timer, so a paused tab can't strand them invisible */
.tile__img{ position:relative; width:100%; height:100%; overflow:hidden; background:#0d0d0d }
.tile img, .tile video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.tile img{ filter:brightness(.9); transition:filter .35s var(--ease) }
.tile video{ opacity:0; transition:opacity .3s var(--ease) }
.tile video.is-on{ opacity:1 }
.tile figcaption{
  position:absolute; left:0; top:calc(100% + 8px); width:max-content; max-width:min(520px, 60vw);
  font-size:12px; line-height:1.35; color:var(--white); white-space:nowrap;
  opacity:0; transform:translateY(-3px); transition:opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events:none; display:flex; gap:10px;
}
.tile figcaption i{ font-style:normal; font-size:10.5px; letter-spacing:.14em; color:var(--dim); padding-top:1px }
.tile figcaption em{ font-style:normal }
.tile figcaption strong{ font-weight:500 }
.tile figcaption span{ color:var(--dim) }
.row--r .tile:last-child figcaption{ left:auto; right:0 }
/* the wall carries the list's two headings, so the groups read on the right too */
.wall__head{
  font-family:var(--head); font-weight:800; font-size:11px; letter-spacing:.24em;
  text-transform:uppercase; color:var(--dim); margin:0 0 14px; transition:opacity .35s var(--ease);
}
.wall__head ~ .wall__head{ margin-top:84px }
body.is-on .wall__head{ opacity:.2 }
/* the award mark, white, top right of the frame */
.tile .tile__img img.award{
  inset:auto; top:12px; right:12px; z-index:2; width:clamp(56px, 18%, 96px); height:auto;
  object-fit:contain; filter:drop-shadow(0 0 2px rgba(0,0,0,.7)) drop-shadow(0 1px 10px rgba(0,0,0,.75)); pointer-events:none;
}

/* lights down: everything but the one you're on */
body.is-on .tile{ opacity:.1 !important }
body.is-on .tile.is-live{ opacity:1 !important }
.tile.is-live img{ filter:none }
.tile.is-live figcaption{ opacity:1; transform:none }

/* ---------- plate (v5) ---------- */
.plate{
  position:fixed; top:50%; left:calc(var(--side) + (100vw - var(--side)) / 2); z-index:20;
  width:min(calc((100vw - var(--side)) * .7), 900px); transform:translate(-50%, -50%) scale(.98);
  opacity:0; pointer-events:none; transition:opacity .3s var(--ease), transform .5s var(--ease);
}
.plate.is-on{ opacity:1; transform:translate(-50%, -50%) }
.plate__box{ position:relative; aspect-ratio:16/9; background:#111; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.7) }
.plate__box img, .plate__box video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.plate__cap{ margin-top:10px; font-size:12px; color:var(--dim); display:flex; gap:10px }
.plate__cap strong{ font-weight:500; color:var(--white) }
.plate__cap i{ font-style:normal; font-size:10.5px; letter-spacing:.14em; padding-top:1px }

/* ---------- information ---------- */
.info{
  display:grid; grid-template-columns:1.1fr 1fr 1.1fr; gap:48px;
  padding:110px 0 40px; border-top:1px solid var(--line); margin-top:70px;
}
.info p{ font-size:13.5px; line-height:1.6; max-width:42ch; margin-bottom:10px }
.info__me{ width:110px; aspect-ratio:4/5; object-fit:cover; object-position:center 38%; filter:grayscale(1); margin-bottom:14px }
.collab{ color:var(--dim) }
.plain li{ padding:3px 0; font-size:13.5px }
.plain li b{ display:block; font-weight:500; color:var(--dim); font-size:12px }
.plain li.sub{ padding-left:14px; font-size:12.5px; color:var(--dim) }
.plain a:hover{ background:var(--white); color:var(--black) }
.rep{ border-top:1px solid var(--line); padding:13px 0 15px }
.rep:last-child{ border-bottom:1px solid var(--line) }
.rep b{ display:block; font-weight:500; font-size:12px; color:var(--dim); margin-bottom:5px }
.rep a{ display:block; width:max-content; max-width:100%; font-size:13.5px }
.rep a:hover{ background:var(--white); color:var(--black) }
.rep .rep__sub{ font-size:12.5px; color:var(--dim); margin-top:4px }
.foot{ display:flex; justify-content:space-between; padding:30px 0 var(--pad); font-size:12px; color:var(--dim) }
.foot a:hover{ color:var(--white) }

/* ---------- player ---------- */
.player{ position:fixed; inset:0; z-index:9500; background:#000; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .4s var(--ease) }
.player[hidden]{ display:none }
.player.is-open{ opacity:1 }
.player__frame{ width:100%; max-width:1600px; aspect-ratio:16/9 }
.player__frame iframe{ width:100%; height:100%; border:0 }
.player__close{ position:absolute; top:22px; right:var(--pad); z-index:2; background:none; border:0; cursor:pointer; color:var(--white); font-family:var(--text); font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; display:flex; align-items:center; gap:10px }
.player__close i{ font-style:normal; font-size:13px }
/* shown only if a browser held the film muted */
.player__sound{ position:absolute; left:50%; bottom:max(28px, 6vh); transform:translateX(-50%); z-index:3; background:var(--white); color:var(--black); border:0; cursor:pointer; font-family:var(--text); font-size:14px; font-weight:500; padding:9px 16px }
.player__sound[hidden]{ display:none }
.player__credit{ position:absolute; top:22px; left:var(--pad); z-index:2; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--dim) }

/* ---------- phones and small tablets ---------- */
@media (max-width:900px){
  body{ display:block }
  .side, .plate{ display:none }
  .main{ padding:0 var(--pad) }
  .row{ margin-bottom:22px; gap:8px }
  .wall__head ~ .wall__head{ margin-top:46px }
  .tile .tile__img img.award{ top:6px; right:6px; width:30% }
  /* on a phone the caption is always there; there's no hover to reveal it.
     number and credit only, at two across */
  .tile figcaption{
    position:static; opacity:1; transform:none; white-space:normal; width:auto; max-width:none;
    display:block; padding-top:7px; font-size:12px; line-height:1.3;
  }
  .tile figcaption i{ display:block; font-size:10px; padding:0 0 2px }
  .tile figcaption span{ display:none }
  .tile__img{ height:var(--h) }
  .tile{ height:auto !important }
  body.is-on .tile{ opacity:1 !important }
  .tile.is-live img{ filter:none }
  .info{ grid-template-columns:1fr; gap:40px; padding:70px 0 20px; margin-top:30px }
  .foot{ flex-direction:column; gap:6px }
}
@media (prefers-reduced-motion:reduce){ *{ transition-duration:.01ms !important } }
