/* A dark hall, the films hung in it, and the words set like a gallery's vinyl: extended grotesk, small, exact. */
:root {
  --ink: #07080b;
  --sheet: #0c0d11;
  --line: rgba(243, 239, 230, .14);
  --paper: #f3efe6;
  --dim: #a7a39b;
  --mark: #ffb21c;          /* the sweet-spot tape */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; min-height: 100%;
  background: var(--ink); color: var(--paper);
  font: 400 16px/1.5 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body:not(.nogl) { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#gl { position: fixed; left: 0; top: 0; display: block; z-index: 1; touch-action: none; outline: none; user-select: none; -webkit-user-select: none; }
#gl.drag { cursor: grabbing !important; }
#space { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
body.nogl #space { position: relative; pointer-events: auto; }
#veil { position: absolute; inset: 0; pointer-events: none; }

/* ---------- the chrome: three words in the corner ---------- */
#top {
  position: absolute; top: 0; right: 0; z-index: 4; display: flex; gap: 4px; padding: 18px 22px 26px 60px; pointer-events: auto;
  background: radial-gradient(ellipse at 70% 30%, rgba(7, 8, 11, .82), rgba(7, 8, 11, 0) 70%);
  text-shadow: 0 0 3px #000, 0 1px 10px rgba(0, 0, 0, .9);
}
#top a, #top button, #bar a, #bar button {
  font: 600 11px/1 var(--sans); font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 10px 12px 9px; color: var(--paper); opacity: .78; border-radius: 2px;
  transition: opacity .2s, background-color .2s, color .2s;
}
#top a:hover, #top button:hover, #bar a:hover, #bar button:hover, #top a:focus-visible, #top button:focus-visible, #bar a:focus-visible, #bar button:focus-visible { opacity: 1; outline: none; background: rgba(243, 239, 230, .08); }
#top button[aria-pressed="true"] { color: var(--mark); opacity: 1; }
#top button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mark); margin-right: 7px; vertical-align: 1px; }
body.booting #top, body.booting #tags, body.booting #cap, body.booting #route { opacity: 0; }
#top, #tags, #cap, #route { transition: opacity .9s ease; }
body.open #top, body.open #tags, body.open #route, body.planning #tags, body.planning #route, body.planning #cap { opacity: 0; pointer-events: none; }
body.open #cap { opacity: 0; pointer-events: none; }

/* ---------- labels that ride with the pieces ---------- */
#tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  pointer-events: none; opacity: 0; visibility: hidden; will-change: transform; padding: 3px 0 0 9px;
  border-left: 1px solid rgba(243, 239, 230, .45);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8);
}
.tag.on { visibility: visible; pointer-events: auto; }
.tag i { font: 600 10px/1 var(--sans); font-style: normal; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.tag b { font: 700 16.5px/1.05 var(--sans); font-stretch: 112%; letter-spacing: .01em; white-space: nowrap; }
.tag.hot { border-left-color: var(--mark); }
.tag.hot i { color: var(--mark); }
body.nolabels .tag, body.nolabels #cap, body.nolabels #route { visibility: hidden !important; }

/* ---------- the caption under the film you stand for ---------- */
#cap {
  position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 14px; text-decoration: none; pointer-events: none;
  opacity: 0; transition: opacity .35s ease; will-change: transform; padding: 2px 0;
}
#cap.on { opacity: 1; pointer-events: auto; }
#cap .c { font: 600 10px/1 var(--sans); font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--mark); white-space: nowrap; }
#cap .t { font: 800 clamp(22px, 2.6vw, 40px)/1 var(--sans); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; }
#cap:hover .t, #cap:focus-visible .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--mark); }
#cap:focus-visible { outline: none; }

/* ---------- the route: one tick per mark ---------- */
#route {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 0; margin: 0; padding: 0; list-style: none; pointer-events: auto;
}
#route li a { position: relative; display: block; width: 22px; height: 30px; }
#route li a::before { content: ""; position: absolute; left: 10px; bottom: 6px; width: 1px; height: 9px; background: rgba(243, 239, 230, .38); transition: height .2s, background .2s; }
#route li:nth-child(1) a::before { height: 14px; }
#route li a:hover::before, #route li a:focus-visible::before { height: 16px; background: var(--paper); }
#route li.cur a::before { background: var(--mark); height: 18px; width: 3px; left: 9px; }
#route .tip {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; opacity: 0;
  font: 700 12px/1 var(--sans); font-stretch: 112%; padding: 6px 8px; background: rgba(7, 8, 11, .82); border-left: 2px solid var(--mark); transition: opacity .15s;
}
#route li a:hover .tip, #route li a:focus-visible .tip { opacity: 1; }
#route li a:focus-visible { outline: none; }

/* ---------- a project: the film stays where it locked; the case rises under it ---------- */
.scroller { position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; z-index: 5; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#page { opacity: 0; transition: opacity .45s ease; }
#page.in { opacity: 1; }
#page .hero { position: relative; }
#page .heroHit { position: absolute; cursor: pointer; }
#page .heroHit:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
#page .fb { position: absolute; object-fit: cover; }
.sheet {
  position: relative; background: var(--sheet); min-height: 60vh;
  padding: 34px max(28px, calc((100vw - 1180px) / 2)) 90px;
  box-shadow: 0 -40px 80px rgba(7, 8, 11, .7);
  transform: translateY(40px); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
#page.in .sheet { transform: none; }
.sheet::before { content: ""; position: absolute; left: max(28px, calc((100vw - 1180px) / 2)); top: 0; width: 46px; height: 3px; background: var(--mark); }
.sheet.about { padding-top: 110px; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px 56px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.head .client { font: 600 11px/1 var(--sans); font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--mark); margin-bottom: 14px; }
.head h1 { margin: 0; font: 800 clamp(34px, 5vw, 76px)/.95 var(--sans); font-stretch: 125%; letter-spacing: -.015em; text-transform: uppercase; overflow-wrap: anywhere; }
.head h1:focus { outline: none; }
.head .desc { margin: 2px 0 18px; font: 400 19px/1.45 var(--sans); max-width: 40em; }
.head .role { margin: 0 0 12px; font: 600 12px/1.3 var(--sans); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.credits { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 22px; }
.credits div { min-width: 0; }
.credits dt { font: 600 9.5px/1.2 var(--sans); font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.credits dd { margin: 0; font: 500 14px/1.35 var(--sans); }
.contact { display: flex; gap: 22px; flex-wrap: wrap; font: 600 14px/1.4 var(--sans); }
.contact a { text-decoration: none; border-bottom: 1px solid var(--mark); }
.sec { padding: 40px 0 6px; }
.sec h2 { margin: 0 0 8px; font: 700 13px/1.2 var(--sans); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; }
.sec .txt { margin: 0 0 18px; color: var(--dim); max-width: 46em; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 22px; margin-top: 14px; }
.films.one { grid-template-columns: minmax(0, 1fr); }
.films.vertical { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.film { margin: 0; min-width: 0; }
.film .frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.films.vertical .frame { aspect-ratio: 9 / 16; }
.film .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.film .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 14px; }
.film .pb {
  font: 700 11px/1 var(--sans); font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; padding: 11px 14px 10px 30px; position: relative;
  background: rgba(7, 8, 11, .78); border-left: 3px solid var(--mark);
}
.film .pb::before { content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left: 8px solid var(--paper); border-right: 0; }
.film .play:hover .pb, .film .play:focus-visible .pb { background: var(--mark); color: var(--ink); }
.film .play:hover .pb::before, .film .play:focus-visible .pb::before { border-left-color: var(--ink); }
.film .play:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }
.film figcaption { font: 500 13px/1.35 var(--sans); color: var(--dim); padding-top: 9px; }
.group { display: grid; gap: 14px; margin-top: 18px; }
.group.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot { margin: 0; background: #000; }
.shot img { display: block; width: 100%; height: auto; }
.radio { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.spot { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 10px 14px 12px 10px; background: rgba(243, 239, 230, .04); border-left: 3px solid rgba(243, 239, 230, .2); }
.spot.on { border-left-color: var(--mark); }
.spot .pp { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(243, 239, 230, .5); position: relative; grid-row: span 2; }
.spot .pp::before { content: ""; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 10px solid var(--paper); border-right: 0; }
.spot.on .pp::before { left: 11px; top: 10px; width: 4px; height: 13px; border: 0; background: var(--paper); box-shadow: 7px 0 0 var(--paper); }
.spot .pp:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.spot .t { font: 600 15px/1.2 var(--sans); }
.spot .time { font: 500 12px/1 var(--sans); color: var(--dim); font-variant-numeric: tabular-nums; }
.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: rgba(243, 239, 230, .18); }
.spot .bar i { position: absolute; left: 0; top: 6px; height: 2px; background: var(--mark); width: 0; }
.spot .bar:focus-visible { outline: 1px solid var(--mark); }
.xp { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.xp li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4px 56px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.xp .r { font: 700 16px/1.3 var(--sans); font-stretch: 112%; }
.xp .r em { display: block; font: 600 10.5px/1.4 var(--sans); font-style: normal; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--mark); margin-top: 4px; }
.xp .x { color: var(--dim); font-size: 15px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; border-top: 1px solid var(--line); padding-top: 22px; }
.pn a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.pn a:last-child { text-align: right; align-items: flex-end; }
.pn small { font: 600 10px/1 var(--sans); font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.pn span { font: 800 22px/1.05 var(--sans); font-stretch: 125%; text-transform: uppercase; }
.pn a:hover span, .pn a:focus-visible span { color: var(--mark); }
.pn a:focus-visible { outline: none; }

#bar { position: fixed; top: 0; right: 0; z-index: 7; display: flex; gap: 4px; padding: 14px 18px; }
#bar[hidden] { display: none; }
#bar a, #bar button { background: rgba(7, 8, 11, .6); }

/* ---------- the index: the hall drawn in plan, every mark and its sightlines ---------- */
#plan { z-index: 6; background: rgba(7, 8, 11, .94); opacity: 0; transition: opacity .28s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#plan.in { opacity: 1; }
.planWrap { padding: 22px 28px 60px; max-width: 1500px; margin: 0 auto; }
.planHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.planHead h2 { margin: 0; font: 600 11px/1 var(--sans); font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--mark); }
.planHead .shut { font: 600 11px/1 var(--sans); font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; padding: 10px 12px 9px; opacity: .8; }
.planHead .shut:hover, .planHead .shut:focus-visible { opacity: 1; outline: none; background: rgba(243, 239, 230, .08); }
.planBox { position: relative; width: 100%; }
.drawing { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.drawing .route { fill: none; stroke: var(--mark); stroke-width: 1.2; stroke-dasharray: 2 4; opacity: .8; }
.drawing .sight { stroke: rgba(243, 239, 230, .16); stroke-width: .7; }
.drawing .pc { stroke-width: 2.2; stroke-linecap: butt; opacity: .95; }
.drawing .mk { fill: var(--ink); stroke: var(--mark); stroke-width: 1.4; }
.planList { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.planList a {
  position: absolute; display: flex; flex-direction: column; gap: 2px; text-decoration: none; white-space: nowrap; transform: translate(-50%, 10px);
  padding: 4px 6px; border-radius: 2px;
}
.planList a.up { transform: translate(-50%, calc(-100% - 10px)); }
.planList a b { font: 700 13px/1.05 var(--sans); font-stretch: 108%; }
.planList a i { font: 600 8.5px/1 var(--sans); font-style: normal; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.planList a:hover, .planList a:focus-visible { background: var(--mark); color: var(--ink); outline: none; z-index: 2; }
.planList a:hover i, .planList a:focus-visible i { color: var(--ink); }
.planAbout { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 40px; text-decoration: none; padding: 6px 0; }
.planAbout b { font: 800 22px/1 var(--sans); font-stretch: 125%; text-transform: uppercase; }
.planAbout i { font: 600 10px/1 var(--sans); font-style: normal; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--mark); }
.planAbout:hover b, .planAbout:focus-visible b { color: var(--mark); }
.planAbout:focus-visible { outline: none; }

/* ---------- no WebGL: the stills, in order ---------- */
body.nogl #gl, body.nogl #route, body.nogl #tags, body.nogl #cap { display: none; }
.fbHead { padding: 26px 28px 8px; }
.fbName { font: 800 clamp(34px, 7vw, 92px)/.9 var(--sans); font-stretch: 125%; text-transform: uppercase; }
.fbList { list-style: none; margin: 0; padding: 20px 28px 60px; display: flex; flex-wrap: wrap; gap: 30px 22px; align-items: flex-end; }
.fbList li:nth-child(1) { flex: 1 1 100%; }
.fbList li { flex: 1 1 300px; }
.fbList a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.fbList img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.fbList i { font: 600 10px/1 var(--sans); font-style: normal; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--mark); margin-top: 6px; }
.fbList b { font: 800 22px/1 var(--sans); font-stretch: 125%; text-transform: uppercase; }
body.nogl #top { position: absolute; }

@media (max-width: 699px) {
  #top { padding: 10px 8px; }
  #top a, #top button { padding: 10px 9px 9px; letter-spacing: .18em; }
  #route { display: none; }
  .tag b { font-size: 14.5px; }
  #cap { flex-direction: column; gap: 6px; }
  #cap .t { font-size: 26px; }
  .sheet { padding: 26px 18px 70px; }
  .sheet::before { left: 18px; }
  .head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .head .desc { font-size: 17px; }
  .films, .films.vertical { grid-template-columns: minmax(0, 1fr); }
  .films.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .group.row-3, .group.row-2 { grid-template-columns: minmax(0, 1fr); }
  .xp li { grid-template-columns: minmax(0, 1fr); }
  .planWrap { padding: 14px 14px 50px; }
  .planBox { aspect-ratio: auto !important; display: flex; flex-direction: column; }
  .drawing { position: relative; inset: auto; height: auto; width: 76%; margin: 0 auto 18px; }
  .planList { position: static; display: block; columns: 2; column-gap: 14px; counter-reset: none; }
  .planList li { break-inside: avoid; }
  .planList a, .planList a.up { position: static; transform: none; padding: 9px 6px 9px 10px; border-left: 1px solid rgba(243, 239, 230, .2); margin-bottom: 4px; white-space: normal; }
  .planList a b { font-size: 14px; }
  #bar { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, #page, #plan, .tag, #cap { transition: none !important; }
}
