/* MOSAIC: the photomosaic poster. One picture, made of real frames of the work, with its billing block under it. */
:root {
  --ink: #0b0a09; --ink2: #141210; --paper: #efe9df; --dim: #8b857b; --dim2: #5d5850; --gold: #e8b64a; --rule: #2a2723;
  --sans: "Antonio", "Arial Narrow", "Helvetica Neue", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --pad: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); }
body { position: fixed; inset: 0; overflow: hidden; font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------ the poster */
#top { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); padding-top: env(safe-area-inset-top); z-index: 3; }
#name { margin: 0; font: 500 15px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
#name a { text-decoration: none; }
#tools { display: flex; gap: 22px; align-items: center; font: 400 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
#tools a { text-decoration: none; color: var(--dim); }
#tools a:hover, #tools button:hover { color: var(--paper); }
#sound { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
#sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#sound .w { display: none; }
#sound[aria-pressed="true"] { color: var(--paper); }
#sound[aria-pressed="true"] .w { display: block; }
#sound[aria-pressed="true"] .x { display: none; }

#stage { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0 var(--pad) calc(var(--pad) + env(safe-area-inset-bottom)); }
#frame { position: relative; min-height: 0; overflow: hidden; background: #000; touch-action: none; cursor: zoom-in; outline: none; }
#frame.drag { cursor: grabbing; }
#frame.open { cursor: pointer; }
#frame:focus-visible { box-shadow: 0 0 0 1px rgba(232, 182, 74, .55); }
#gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
#still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hover { position: absolute; left: 0; top: 0; pointer-events: none; border: 1px solid rgba(239, 233, 223, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); opacity: 0; transition: opacity .15s; }
#hover.on { opacity: 1; }

#bill { display: grid; grid-template-columns: minmax(250px, 31%) minmax(0, 1fr); gap: 0 34px; padding-top: 18px; align-items: start; }
#now { min-width: 0; }
#client { margin: 0 0 6px; font: 500 12.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
#title { margin: 0; font: 400 clamp(34px, 3.6vw, 58px)/.94 var(--serif); letter-spacing: -.005em; }
#title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 96%; transition: background-size .35s; }
#title a:hover, #title a:focus-visible { background-size: 100% 1px; }
#tileline { margin: 10px 0 0; min-height: 15px; font: 400 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tileline i { display: inline-block; width: 16px; height: 9px; margin-right: 8px; vertical-align: -1px; background-size: cover; background-position: center; outline: 1px solid var(--dim2); }

/* the billing block: every campaign, best work first, set the way a poster sets its credits */
#work { display: flex; flex-wrap: wrap; gap: 3px 1.15em; font: 400 15.5px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
#work a { text-decoration: none; white-space: nowrap; transition: color .2s; }
#work a:hover { color: var(--paper); }
#work a[aria-current="true"] { color: var(--paper); }
#work a[aria-current="true"] b { color: var(--gold); }
#work b { font-weight: 600; }

#say { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 8px); margin: 0; padding: 8px 14px; background: rgba(11, 10, 9, .86); font: 400 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 9; }
#say.on { opacity: 1; transform: translate(-50%, 0); }

body.booting #bill, body.booting #top { opacity: 0; }
#bill, #top { transition: opacity .5s; }

/* ------------------------------------------------------------ phones */
@media (max-width: 760px) {
  :root { --pad: 14px; }
  #top { height: 42px; }
  #name { font-size: 13px; letter-spacing: .26em; }
  #tools { gap: 16px; font-size: 12px; }
  #sound span { display: none; }
  #stage { top: 42px; grid-template-rows: auto minmax(0, 1fr); }
  #frame { height: min(64svh, 128vw); margin: 0 calc(-1 * var(--pad)); }
  #bill { grid-template-columns: 1fr; padding-top: 14px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  #title { font-size: 36px; }
  #tileline { display: none; }
  #work { font-size: 13.5px; line-height: 1.36; margin-top: 14px; }
}
@media (max-width: 760px) and (max-height: 720px) { #frame { height: min(56svh, 128vw); } }
@media (max-width: 360px) { #work { font-size: 12.5px; } #title { font-size: 31px; } }
/* phones on their side: the picture on the left, the billing beside it */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --pad: 14px; }
  #top { height: 36px; }
  #stage { top: 36px; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
  #frame { height: auto; margin: 0; }
  #bill { grid-template-columns: 1fr; padding-top: 0; overflow-y: auto; min-height: 0; }
  #title { font-size: 30px; }
  #tileline { display: none; }
  #work { font-size: 12.5px; margin-top: 10px; }
}

/* ------------------------------------------------------------ the project, and About */
.sheet { position: fixed; inset: 0; z-index: 6; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); opacity: 0; transition: opacity .32s; -webkit-overflow-scrolling: touch; }
.sheet.on { opacity: 1; }
.sbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 26px; height: 52px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top); background: linear-gradient(var(--ink) 70%, rgba(11, 10, 9, 0)); font: 400 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.sbar a { text-decoration: none; color: var(--dim); }
.sbar a:hover { color: var(--paper); }
.sbar .back { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; letter-spacing: .32em; color: var(--paper); }
.sbar .back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 12px var(--pad) 70px; }
.top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero { margin: 0; background: #000; aspect-ratio: var(--asp, 16/9); max-height: 72vh; }
.hero video, .hero img { width: 100%; height: 100%; object-fit: contain; display: block; }
.head .client { margin: 0 0 8px; font: 500 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.head h1 { margin: 0 0 18px; font: 400 clamp(40px, 4.6vw, 70px)/.95 var(--serif); }
.head .desc { margin: 0 0 22px; font: 400 19px/1.45 var(--serif); color: #d9d2c6; }
.head .role { margin: -8px 0 18px; font: 400 15px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.credits { margin: 0; display: grid; gap: 8px; font: 400 13px/1.35 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.credits div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; }
.credits dt { color: var(--dim); }
.credits dd { margin: 0; }
.lent { margin: 64px 0 6px; }
.lent ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 3px; }
.lent li { aspect-ratio: 16 / 9; background: #151311; overflow: hidden; }
.lent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec { margin-top: 54px; }
.sec h2 { margin: 0 0 6px; font: 400 32px/1.05 var(--serif); }
.sec .txt { margin: 0 0 18px; max-width: 760px; font: 400 18px/1.45 var(--serif); color: #d9d2c6; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 14px; }
.films.one { grid-template-columns: minmax(0, 960px); }
.films.vertical { grid-template-columns: repeat(auto-fill, minmax(200px, 250px)); }
.film { margin: 0; }
.film .frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.films.vertical .film .frame { aspect-ratio: 9 / 16; }
.film .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .25)); }
.film .play svg { width: 64px; height: 64px; padding: 18px 16px 18px 20px; border-radius: 50%; background: rgba(11, 10, 9, .72); fill: var(--paper); transition: transform .2s, background .2s; }
.film .play:hover svg { transform: scale(1.06); background: var(--gold); fill: var(--ink); }
.film figcaption { margin-top: 8px; font: 400 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.group { display: grid; gap: 10px; margin-top: 14px; }
.group.row-2 { grid-template-columns: 1fr 1fr; }
.group.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.shot { margin: 0; background: #151311; }
.shot img { width: 100%; height: auto; display: block; }
.radio { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.spot { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 4px 14px; padding: 12px 14px; background: var(--ink2); }
.spot .pp svg { width: 42px; height: 42px; padding: 12px; border-radius: 50%; background: var(--paper); fill: var(--ink); stroke: var(--ink); stroke-width: 2.4; }
.spot .pp .pa { display: none; }
.spot.on .pp .pa { display: block; fill: none; }
.spot.on .pp .pl { display: none; }
.spot .t { font: 400 17px/1.2 var(--serif); }
.spot .time { font: 400 13px/1 var(--sans); letter-spacing: .1em; color: var(--dim); }
.spot .bar { grid-column: 2 / 4; height: 14px; position: relative; cursor: pointer; }
.spot .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--rule); }
.spot .bar i { position: absolute; left: 0; top: 6px; height: 2px; background: var(--gold); width: 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 70px; border-top: 1px solid var(--rule); padding-top: 18px; }
.pn a { text-decoration: none; display: grid; gap: 6px; }
.pn a:last-child { text-align: right; }
.pn small { font: 400 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.pn span { font: 400 30px/1.05 var(--serif); }
.pn a:hover span { color: var(--gold); }
.xp { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.xp li { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); font: 400 14px/1.4 var(--sans); letter-spacing: .06em; }
.xp .d { color: var(--dim); text-transform: uppercase; }
.xp .r { text-transform: uppercase; }
.xp .r em { display: block; font-style: normal; color: var(--gold); }
.xp .x { font: 400 16px/1.4 var(--serif); color: #d9d2c6; }
.contact { display: flex; gap: 22px; flex-wrap: wrap; font: 400 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.about-mosaic { margin: 0; aspect-ratio: 16 / 9; background: #000; }
.about-mosaic canvas { width: 100%; height: 100%; display: block; }
#fly { position: fixed; z-index: 7; object-fit: cover; pointer-events: none; transition: left .42s cubic-bezier(.6, 0, .2, 1), top .42s cubic-bezier(.6, 0, .2, 1), width .42s cubic-bezier(.6, 0, .2, 1), height .42s cubic-bezier(.6, 0, .2, 1), opacity .3s; }
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr; gap: 22px; }
  .head h1 { font-size: 44px; }
  .group.row-3 { grid-template-columns: 1fr 1fr; }
  .films { grid-template-columns: 1fr; }
  .films.vertical { grid-template-columns: 1fr 1fr; }
  .xp li { grid-template-columns: 1fr; gap: 4px; }
  .pn span { font-size: 22px; }
  .lent ol { display: flex; overflow-x: auto; gap: 3px; scrollbar-width: none; }
  .lent li { flex: 0 0 120px; }
  .sbar { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, #say, #bill, #top, #hover, #title a { transition: none; }
  #fly { transition: none; }
}
/* no WebGL: the picture itself, untreated */
body.nogl #gl, body.nogl #hover { display: none; }
body.nogl #frame { cursor: pointer; }

[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
