/* Reeded glass. The work plays behind the panes; the frames are blackened bronze; the words are gilded on the glass. */
:root {
  --bronze: #15120e;
  --bronze-hi: #2a241b;
  --ivory: #efe7d6;
  --dim: #b9ad97;
  --gold: #d9b25f;
  --gx: 50%;            /* where the light sits on the gilding, set by the pointer */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bronze); }
body {
  margin: 0; min-height: 100%;
  background: var(--bronze);
  color: var(--ivory);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.open { overflow: hidden; }
/* only the root clips sideways: a body that is its own scroll box would swallow touch and wheel scrolling */
html { overflow-x: hidden; overflow-x: clip; }
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; width: 100vw; height: 100vh; display: block; z-index: 1; pointer-events: none; }

/* ---------- gold leaf: burnished, backed up with a black outline, the sheen follows the light ---------- */
.gilt {
  background-image: linear-gradient(100deg,
    #6b4a12 0%, #b98a33 12%, #f7e7ad 22%, #c69a42 31%, #8a6420 40%,
    #e6c272 52%, #fff4cf 58%, #c4963d 66%, #7a5716 78%, #d8b263 90%, #8b651f 100%);
  background-size: 260% 100%;
  background-position: var(--gx) 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 .7px rgba(6, 4, 0, 1)) drop-shadow(0 .8px 0 rgba(6, 4, 0, .95)) drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}
body.nogl .gilt { filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 2px rgba(0,0,0,.8)); }

/* ---------- the partition ---------- */
#index { position: relative; z-index: 2; display: block; }
#transom { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 3.2% 0 3.4%; }
#transom .name {
  margin: 0; white-space: nowrap;
  font: 700 var(--nameSize, 84px)/1 var(--serif); letter-spacing: .07em; text-transform: uppercase;
  font-variation-settings: "opsz" 28;
}
.doors { display: flex; gap: 26px; align-items: center; }
.doors a, #bar a, #bar button {
  font: 500 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; text-decoration: none; padding: 10px 2px 8px;
  border-bottom: 1px solid rgba(217, 178, 95, 0);
}
.doors a:hover, .doors a:focus-visible, #bar a:hover, #bar a:focus-visible, #bar button:hover, #bar button:focus-visible { outline: none; border-bottom-color: rgba(217, 178, 95, .8); }

#wall { position: absolute; inset: 0; pointer-events: none; }
.pane {
  position: absolute; display: block; text-decoration: none; outline: none; touch-action: manipulation; pointer-events: auto;
  border-radius: 1px;
}
.pane .lbl {
  position: absolute; left: 6.5%; bottom: 7%; right: 6%;
  display: flex; flex-direction: column; gap: 3px; pointer-events: none;
}
.pane .lbl b { font: 700 var(--t, 18px)/1.05 var(--serif); letter-spacing: .05em; text-transform: uppercase; font-variation-settings: "opsz" 11; }
.pane .lbl i { font: 600 10px/1.1 var(--sans); font-style: normal; letter-spacing: .3em; text-transform: uppercase; }
.pane.big .lbl b { --t: 34px; }
.pane:focus-visible::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--gold); pointer-events: none; }
body.booting .pane .lbl, body.booting #transom { opacity: 0; }
.pane .lbl, #transom { transition: opacity .8s ease; }
body.leaving .pane .lbl, body.leaving #transom { opacity: 0; transition-duration: .3s; }
body.nolabels .pane .lbl { visibility: hidden; }

/* ---------- a project: the room behind the door ---------- */
.scroller {
  position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; z-index: 3;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.scroller[hidden] { display: none; }
#page { opacity: 0; transition: opacity .45s ease; }
#page.in { opacity: 1; }
body.nogl #page { background: #120f0b; }
#hero { position: relative; width: 100%; }
#hero img.fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
body.nogl #hero img.fb { display: block; }
.sheet { max-width: 1180px; margin: 0 auto; padding: 0 32px 64px; }
.head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px 56px; padding: 34px 0 30px; border-bottom: 1px solid rgba(217, 178, 95, .28); }
.head .client { grid-column: 1 / -1; font: 500 11px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; }
.head h1:focus { outline: none; }
.head h1 { margin: 0; font: 700 clamp(38px, 5.4vw, 84px)/.98 var(--serif); overflow-wrap: anywhere; letter-spacing: .03em; text-transform: uppercase; font-variation-settings: "opsz" 28; }
.head .desc { margin: 2px 0 0; font: 400 19px/1.5 var(--sans); color: var(--ivory); max-width: 34em; }
.head .credits { margin: 0; font: 400 13px/1.65 var(--sans); color: var(--dim); }
.head .credits span { display: block; }
.head .credits b { font-weight: 500; letter-spacing: .2em; font-size: 10.5px; text-transform: uppercase; margin-right: .6em; color: var(--gold); }
.head .role { margin: 0 0 6px; font: 500 12px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.head .contact { margin: 14px 0 0; font: 400 15px/1.7 var(--sans); }
.head .contact a { color: var(--ivory); text-decoration-color: rgba(217, 178, 95, .6); text-underline-offset: 3px; }
.saying { grid-column: 1 / -1; margin: 8px 0 0; font: italic 500 26px/1.25 var(--serif); }

.sec { padding: 36px 0 8px; }
.sec + .sec { border-top: 1px solid rgba(217, 178, 95, .18); }
.sec h2 { margin: 0 0 8px; font: 500 30px/1.1 var(--serif); letter-spacing: .02em; }
.sec .txt { margin: 0 0 20px; max-width: 46em; font: 400 16px/1.55 var(--sans); color: var(--ivory); }

.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px 20px; margin: 12px 0 20px; }
.films.vertical { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.films.one { grid-template-columns: minmax(0, 900px); }
.film { margin: 0; }
.frame { position: relative; overflow: hidden; background: #0b0906; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px rgba(217, 178, 95, .22), 0 18px 40px rgba(0, 0, 0, .45); }
.films.vertical .frame { aspect-ratio: 9 / 16; }
.frame img, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.frame .play { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: flex-start; padding: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); }
.play .pb { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px 16px; font: 500 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.play .pb::before { content: ""; width: 0; height: 0; border-left: 10px solid var(--gold); border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
.frame .play:hover .pb, .frame .play:focus-visible .pb { --gx: 85%; }
.frame .play:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.film figcaption { margin-top: 10px; font: 400 14px/1.35 var(--sans); color: var(--dim); }

.group { display: grid; gap: 16px; margin: 10px 0 20px; }
.group.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group.full { grid-template-columns: minmax(0, 1fr); }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(217, 178, 95, .18), 0 14px 34px rgba(0, 0, 0, .4); }

.radio { list-style: none; margin: 10px 0 20px; padding: 0; display: grid; gap: 10px; max-width: 780px; }
.spot { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 6px 14px; padding: 12px 16px 12px 12px; background: rgba(10, 8, 5, .55); box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .25); }
.spot button.pp { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gold); display: grid; place-items: center; }
.spot button.pp::before { content: ""; border-left: 11px solid var(--gold); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 4px; }
.spot.on button.pp::before { border: 0; width: 11px; height: 13px; margin: 0; background: linear-gradient(90deg, var(--gold) 0 35%, transparent 35% 65%, var(--gold) 65%); }
.spot button.pp:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.spot .t { font: 400 15px/1.3 var(--sans); }
.spot .time { font: 400 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(217, 178, 95, .25); }
.spot .bar i { position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: var(--gold); }
.spot .bar:focus-visible { outline: 1px solid var(--gold); }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(217, 178, 95, .28); }
.pn a { text-decoration: none; display: block; padding: 6px 0; }
.pn a:last-child { text-align: right; }
.pn small { display: block; font: 500 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.pn span { font: 500 24px/1.1 var(--serif); text-transform: uppercase; letter-spacing: .03em; }
.pn a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.xp { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.xp li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid rgba(217, 178, 95, .14); }
.xp .d { color: var(--dim); font-size: 13px; letter-spacing: .08em; }
.xp .r { font: 500 18px/1.25 var(--serif); }
.xp .r em { display: block; font: 400 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-style: normal; margin-top: 3px; }
.xp .x { color: var(--dim); font-size: 14px; }

#bar { position: fixed; top: 14px; right: 22px; z-index: 6; display: flex; gap: 26px; padding: 6px 14px; background: rgba(12, 10, 7, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .25); }
#bar[hidden] { display: none; }

/* ---------- the lobby directory: white letters pressed into a grooved black board, behind glass ---------- */
#dir { z-index: 5; background: rgba(9, 7, 5, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
#dir.in { opacity: 1; }
.board {
  position: relative; max-width: 760px; margin: 56px auto 60px; padding: 34px 40px 40px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 64%, rgba(255,255,255,.035) 72%, rgba(255,255,255,0) 80%),
    repeating-linear-gradient(180deg, #121212 0 3px, #050505 3px 4px, #181818 4px 5px, #0d0d0d 5px 8px);
  box-shadow: 0 0 0 10px #b8914a, 0 0 0 11px #6e5221, 0 0 0 12px #e2c27a, 0 30px 80px rgba(0, 0, 0, .7);
  border-radius: 2px;
}
.board h2 { margin: 0 0 22px; text-align: center; font: 500 22px/1 var(--sans); letter-spacing: .42em; color: #f3f1ea; text-transform: uppercase; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li a {
  display: flex; align-items: baseline; gap: 12px; padding: 5px 4px; text-decoration: none;
  font: 500 17px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #f1efe8;
  text-shadow: 0 1px 0 rgba(0,0,0,.9), 0 -1px 0 rgba(255,255,255,.08);
}
.board li a .dots { flex: 1; border-bottom: 2px dotted rgba(241, 239, 232, .28); transform: translateY(-4px); }
.board li a .c { font-size: 12.5px; letter-spacing: .2em; color: #d8d5cc; }
.board li a:hover, .board li a:focus-visible { outline: none; background: rgba(217, 178, 95, .16); }
.board li.about { margin-top: 14px; }
.board .shut { position: absolute; top: 12px; right: 14px; font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #ddd; padding: 8px; }
.board .shut:focus-visible { outline: 1px solid var(--gold); }

#say { position: fixed; left: 50%; bottom: 7vh; transform: translateX(-50%); z-index: 7; margin: 0; font: italic 500 clamp(28px, 4vw, 54px)/1 var(--serif); opacity: 0; transition: opacity .6s ease; pointer-events: none; white-space: nowrap; }
#say.on { opacity: 1; }

/* ---------- without WebGL: the same partition, the pictures behind a drawn reed ---------- */
body.nogl .pane { overflow: hidden; background: #0b0906; }
body.nogl .pane > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(1.5px) saturate(.9); transform: scale(1.04); transition: filter .5s ease; }
body.nogl .pane::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, rgba(255,255,255,0) 2px 5px, rgba(0,0,0,.28) 7px 9px, rgba(255,255,255,0) 10px); transition: opacity .5s ease; }
body.nogl .pane:hover > img, body.nogl .pane:focus-visible > img { filter: none; }
body.nogl .pane:hover::before, body.nogl .pane:focus-visible::before { opacity: 0; }
body.nogl .pane .lbl { z-index: 2; }
body.nogl #transom { background: linear-gradient(180deg, #2a2016, #17120c); }

@media (max-width: 700px) {
  #transom { padding: 0 18px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
  .doors { gap: 22px; }
  .doors a { font-size: 11.5px; padding: 6px 0; }
  .pane .lbl b { --t: 13px; }
  .pane.big .lbl b { --t: 24px; }
  .pane .lbl i { font-size: 8px; letter-spacing: .24em; }
  .sheet { padding: 0 18px 48px; }
  .head { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 24px; }
  .head .desc { font-size: 17px; }
  .films, .films.vertical { grid-template-columns: minmax(0, 1fr); }
  .films.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group.row-3, .group.row-2 { grid-template-columns: minmax(0, 1fr); }
  .xp li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .board { margin: 64px 12px 40px; padding: 26px 16px 30px; box-shadow: 0 0 0 6px #b8914a, 0 0 0 7px #6e5221, 0 0 0 8px #e2c27a, 0 30px 80px rgba(0, 0, 0, .7); }
  .board li a { font-size: 13px; letter-spacing: .1em; gap: 8px; }
  .board li a .c { font-size: 9.5px; letter-spacing: .14em; }
  #bar { top: 10px; right: 10px; gap: 18px; padding: 4px 10px; }
  .pn span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #page, #dir, .pane .lbl, #transom, #say { transition: none; }
}

/* ---------- touch screens: the glass is part of the page and scrolls with it; nothing blurs the screen behind ---------- */
body.touch #gl { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
body.touch #gl.hero { position: absolute; left: 0; top: 0; }
body.touch #wall { z-index: 1; }
body.touch .pane { touch-action: manipulation; -webkit-touch-callout: none; }
body.touch #page { background: repeating-linear-gradient(90deg, rgba(255, 240, 210, .028) 0 1px, rgba(0, 0, 0, 0) 1px 9px, rgba(0, 0, 0, .12) 9px 11px, rgba(0, 0, 0, 0) 11px 14px), linear-gradient(180deg, #1c1711, #110e0a 60%); }
body.touch #dir { background: rgba(9, 7, 5, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.touch #bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 10, 7, .9); }
body.touch .pane .lbl, body.touch #transom { transition: none; }
