/* The white room. Jost stands in for Futura, the type of the mid-century museum. */
:root {
  --wall: #efede7; --ink: #161513; --red: #c3291c; --yel: #efb21d; --blu: #1d4b98; --paper: #fbfaf6;
  --muted: #6c6860; --rule: #d9d5cb;
  --sans: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html, body { margin: 0; background: var(--wall); color: var(--ink); font-family: var(--sans); }
body { -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100vh; }
html.locked { overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }

#roomwrap { position: relative; width: 100%; height: 100vh; overflow: hidden; }
#room { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: default; }
#room.hot { cursor: pointer; }
#room.grab { cursor: grabbing; }
body.booting #room { opacity: 0; }
#room { transition: opacity .6s ease; }

#gallery { position: relative; display: block; }

/* the vinyl on the wall */
.vinyl { position: absolute; left: max(22px, 3.2vw); top: max(18px, 3.2vh); border: 0; background: none; padding: 4px 0; cursor: pointer;
  font-weight: 500; font-size: clamp(15px, 1.35vw, 22px); letter-spacing: .32em; text-transform: uppercase; color: #1d1b18; opacity: .9; }
.vinyl:hover, .vinyl:focus-visible { color: var(--red); outline: none; }

/* the works, for keyboards and screen readers: each one focuses its plate */
#works { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#works button { display: block; }

/* the checklist holder: a clear box screwed to the wall, papers in it */
#holder { position: absolute; z-index: 2; right: max(22px, 3.2vw); top: max(34px, 4.6vh); width: 92px; height: 64px; border: 0; padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18)); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(30,28,24,.16), 0 10px 18px -10px rgba(40,34,28,.35); border-radius: 2px; }
#holder::before { content: ""; position: absolute; left: 9px; right: 9px; top: -14px; bottom: 6px; background: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 2px -2px 0 #f3f1ea, 4px -4px 0 #eceae2; z-index: -1; }
#holder::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38px; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px rgba(30,28,24,.12); }
#holder span { position: absolute; left: 16px; top: -6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
#holder:hover::before, #holder:focus-visible::before { transform: translateY(-4px); transition: transform .2s; }
#holder:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* the wall label under a plate: lettered on the wall in the room's type, no card */
#tag { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; text-align: center; }
#tag.on { opacity: 1; }
#tag b { display: block; font-weight: 500; font-size: 19px; line-height: 1.1; letter-spacing: .01em; color: #1b1916; }
#tag i { display: block; font-style: normal; font-weight: 500; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: #6a655c; margin-top: 5px; }
#tag b::after { content: ""; display: block; width: 22px; height: 2px; background: var(--red); margin: 7px auto 0; }
@media (max-width: 760px) { #tag b { font-size: 17px; } }
/* the checklist */
#checklist { position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; padding: 3vh 3vw; background: rgba(239,237,231,.35); z-index: 5; overflow: auto; overscroll-behavior: contain; }
#checklist[hidden] { display: none; }
#checklist .paper { width: min(440px, 100%); background: var(--paper); padding: 26px 30px 22px; box-shadow: 0 30px 60px -30px rgba(40,34,28,.55), 0 1px 0 rgba(0,0,0,.06);
  animation: paperIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes paperIn { from { transform: translateY(16px) rotate(-.6deg); opacity: 0; } }
#checklist header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
#checklist h2 { margin: 0; font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 2px; }
.x:hover, .x:focus-visible { color: var(--red); outline: none; }
#checklist ol { list-style: none; margin: 0; padding: 0; }
#checklist li a { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
#checklist li a:hover, #checklist li a:focus-visible { color: var(--red); outline: none; }
#checklist li .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
#checklist li .t { font-size: 16px; font-weight: 500; }
#checklist li .c { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
#checklist li .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
#checklist .foot { margin: 14px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
#checklist .foot a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* a project: the plate hangs in front of you, the catalogue page beside it */
#page { position: fixed; top: 0; right: 0; bottom: 0; width: min(56vw, 860px); overflow-y: auto; overscroll-behavior: contain; z-index: 3; -webkit-overflow-scrolling: touch; }
#page[hidden] { display: none; }
#page .sheet { background: var(--paper); min-height: 100%; padding: clamp(28px, 4.5vw, 64px) clamp(22px, 4vw, 60px) 80px; box-shadow: -30px 0 60px -40px rgba(40,34,28,.5);
  animation: sheetIn .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } }
body.leaving #page .sheet { transition: transform .4s ease, opacity .4s ease; transform: translateX(40px); opacity: 0; }
#page .head { border-top: 6px solid var(--paint, var(--ink)); padding-top: 18px; margin-bottom: 34px; }
#page .client { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
#page h1:focus { outline: none; }
#page h1 { font-weight: 500; font-size: clamp(34px, 4.2vw, 62px); line-height: 1; letter-spacing: -.01em; margin: 0 0 18px; }
#page .desc { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; margin: 0 0 18px; max-width: 38em; }
#page .credits { font-size: 12.5px; line-height: 1.6; color: #3e3b36; margin: 0; }
#page .credits span { display: inline; }
#page .credits span::after { content: "  /  "; color: var(--rule); }
#page .credits span:last-child::after { content: ""; }
#page .credits b { font-weight: 600; margin-right: 5px; letter-spacing: .04em; }
#page .sec { margin: 0 0 38px; }
#page h2 { font-weight: 500; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 6px; }
#page .txt { font-size: 15px; line-height: 1.5; color: #3e3b36; margin: 0 0 14px; max-width: 40em; }
#page .films { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
#page .films.one { grid-template-columns: 1fr; }
#page .films.vertical { grid-template-columns: repeat(3, 1fr); }
#page figure { margin: 0; }
#page .frame { position: relative; aspect-ratio: 16 / 9; background: #1c1b19; overflow: hidden; }
#page .films.vertical .frame { aspect-ratio: 9 / 16; }
#page .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
#page .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#page .play { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#page .play i { width: 64px; height: 64px; border-radius: 50%; background: var(--paint, var(--red)); display: block; position: relative; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); transition: transform .2s; }
#page .play i::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
#page .play:hover i, #page .play:focus-visible i { transform: scale(1.08); }
#page .play:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
#page figcaption { font-size: 12px; letter-spacing: .06em; margin-top: 7px; color: #3e3b36; }
#page .group { display: grid; gap: 12px; margin-top: 14px; }
#page .group.row-2 { grid-template-columns: 1fr 1fr; }
#page .group.row-3 { grid-template-columns: 1fr 1fr 1fr; }
#page .group img { width: 100%; height: auto; display: block; background: #e7e4dc; }
#page .radio { list-style: none; padding: 0; margin: 10px 0 0; }
#page .spot { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
#page .spot .pp { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; grid-row: span 2; }
#page .spot .pp::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
#page .spot.on .pp { background: var(--paint, var(--red)); }
#page .spot.on .pp::after { left: 12px; top: 12px; width: 4px; height: 12px; border: 0; background: #fff; box-shadow: 7px 0 0 #fff; }
#page .spot .pp:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#page .spot .t { font-size: 15px; }
#page .spot .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#page .spot .bar { grid-column: 2 / 4; height: 4px; background: var(--rule); position: relative; cursor: pointer; }
#page .spot .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; }
#page .spot .bar:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#page .pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 50px; }
#page .pn a { text-decoration: none; display: block; }
#page .pn a:last-child { text-align: right; }
#page .pn small { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
#page .pn span { font-size: 20px; font-weight: 500; }
#page .pn a:hover span, #page .pn a:focus-visible span { color: var(--red); }
#page .pn a:focus-visible { outline: none; }
/* about */
#page .role { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; font-weight: 500; }
#page .contact { font-size: 15px; line-height: 1.7; }
#page .xp { list-style: none; padding: 0; margin: 0; }
#page .xp li { display: grid; grid-template-columns: 120px 1fr; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
#page .xp .d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; padding-top: 3px; }
#page .xp .r { font-size: 16px; font-weight: 500; }
#page .xp .r em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 8px; }
#page .xp .x2 { font-size: 13.5px; line-height: 1.5; color: #3e3b36; }

.disc { position: fixed; z-index: 4; left: max(18px, 2.6vw); top: max(16px, 2.6vh); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; }
.disc span { margin-top: -3px; }
.disc:hover, .disc:focus-visible { background: var(--red); outline: none; }
.disc[hidden] { display: none; }
body.open #name, body.open #holder { opacity: 0; pointer-events: none; }
#name, #holder { transition: opacity .3s; }

/* plain room: no canvas */
body.plain #room, body.plain #roomwrap { display: none; }
body.plain #works { position: static; width: auto; height: auto; clip-path: none; overflow: visible; padding: 90px 6vw 40px; }
body.plain #works ol { list-style: none; padding: 0; margin: 0; max-width: 640px; }
body.plain #works button { border: 0; background: none; padding: 10px 0; font-size: 20px; cursor: pointer; text-align: left; border-bottom: 1px solid var(--rule); width: 100%; }
body.plain #gallery { position: static; }

@media (max-width: 760px) {
  #page { width: 100vw; }
  #page .sheet { min-height: 0; margin-top: 46vh; margin-top: 46svh; box-shadow: 0 -24px 50px -30px rgba(40,34,28,.6); padding-top: 26px; }
  @keyframes sheetIn { from { transform: translateY(60px); opacity: 0; } }
  body.leaving #page .sheet { transform: translateY(60px); }
  #page .films { grid-template-columns: 1fr; }
  #page .films.vertical { grid-template-columns: 1fr 1fr; }
  #page .group.row-3 { grid-template-columns: 1fr 1fr; }
  #page .xp li { grid-template-columns: 1fr; }
  #page .xp .d { grid-row: auto; }
  #checklist { padding: 0; align-items: flex-end; }
  #checklist .paper { width: 100%; max-height: 88svh; overflow: auto; padding: 20px 22px calc(18px + env(safe-area-inset-bottom)); }
  #holder { width: 76px; height: 54px; }
  .vinyl { font-size: 13px; letter-spacing: .28em; }
}
@media (prefers-reduced-motion: reduce) {
  #checklist .paper, #page .sheet { animation: none; }
  #room { transition: none; }
}
