:root {
  --bg: #050607; --ink: #e9ecef; --dim: #8b949b; --faint: #4a5258; --laser: #ff3a2e; --rule: rgba(233, 236, 239, .14);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --panel: min(500px, 36vw); --bar: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { 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; }
:focus-visible { outline: 1px solid var(--laser); outline-offset: 3px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; touch-action: none; }
body.survey #gl { pointer-events: none; }

/* ---------------------------------------------------------------- header */
#bar { position: fixed; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; z-index: 20; pointer-events: none; }
#bar > * { pointer-events: auto; }
#name { margin: 0; font: 600 15px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
#name button { letter-spacing: inherit; text-transform: inherit; }
#bar nav { display: flex; gap: 26px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
#bar nav button:hover, #bar nav button[aria-pressed="true"] { color: var(--ink); }
#bSound::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; margin-right: 8px; vertical-align: 1px; }
#bSound[aria-pressed="true"]::before { background: var(--laser); border-color: var(--laser); }

/* ---------------------------------------------------------------- survey */
#survey { position: relative; z-index: 2; min-height: 100vh; }
#field { position: relative; width: 100%; }
body.focus #survey { visibility: hidden; }
#panel h2:focus { outline: none; }
.tile { position: absolute; left: 0; top: 0; display: block; text-align: left; border-radius: 2px; }
.tile .cap { text-shadow: 0 1px 8px #000, 0 0 2px #000; position: absolute; left: 0; right: 0; bottom: -2px; transform: translateY(100%); padding-top: 7px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; transition: color .25s; }
.tile .t { font: 500 13px/1.15 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .c { font: 400 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.big .t { font-size: 17px; }
.tile.small .t { font-size: 12px; }
.tile:hover .c, .tile:focus-visible .c, .tile.hot .c { color: var(--laser); }
.tile:focus-visible { outline: none; }
.tile:focus-visible .t { text-decoration: underline; text-decoration-color: var(--laser); text-underline-offset: 3px; }
body.booting .tile .cap { opacity: 0; }
.tile .cap { transition: opacity .6s, color .25s; }
.tile img { display: none; }

/* ---------------------------------------------------------------- focus */
#focus { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hero { position: absolute; left: 0; top: var(--bar); right: var(--panel); bottom: 0; pointer-events: none; }
#stage { position: absolute; left: 0; top: var(--bar); right: var(--panel); bottom: 0; display: flex; align-items: center; justify-content: center; padding: 3vh 4vw 6vh; pointer-events: auto; }
#stage .frame { position: relative; max-width: 100%; max-height: 100%; aspect-ratio: 16 / 9; width: 100%; background: #000; box-shadow: 0 0 0 1px var(--rule), 0 30px 120px rgba(0, 0, 0, .8); }
#stage .frame.vert { aspect-ratio: 9 / 16; width: auto; height: 100%; }
#stage .frame iframe, #stage .frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
#stage .x { position: absolute; top: -34px; right: 0; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 8px 0; }
#stage .x:hover { color: var(--ink); }
#stage .frame.img { aspect-ratio: auto; width: auto; height: auto; background: none; box-shadow: none; }
#stage .frame.img img { position: static; max-width: 100%; max-height: calc(100vh - var(--bar) - 12vh); width: auto; height: auto; display: block; box-shadow: 0 30px 120px rgba(0, 0, 0, .8); }

#panel { position: absolute; top: 0; right: 0; bottom: 0; width: var(--panel); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
  background: linear-gradient(90deg, rgba(5, 6, 7, .72), rgba(5, 6, 7, .94) 18%); border-left: 1px solid var(--rule); padding: calc(var(--bar) + 6px) 34px 60px; scrollbar-width: thin; scrollbar-color: #2a3034 transparent; }
#panel .nav { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 30px; }
#panel .nav button:hover { color: var(--ink); }
#panel .nav .pn { display: flex; gap: 18px; }
.client { font: 500 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--laser); margin: 0 0 10px; }
#panel h2 { font: 500 40px/1.02 var(--sans); letter-spacing: -.02em; margin: 0 0 18px; }
.desc { font-size: 15.5px; line-height: 1.55; color: #c9cfd3; margin: 0 0 22px; max-width: 34em; }
dl.credits { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; font: 400 11.5px/1.45 var(--mono); color: var(--dim); margin: 0 0 8px; }
dl.credits dt { color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
dl.credits dd { margin: 0; color: #b5bcc1; }
.takes { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 6px; }
.takes button { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--rule); padding: 7px 9px; border-radius: 2px; }
.takes button[aria-pressed="true"] { color: var(--ink); border-color: var(--laser); }
.sec { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sec h3 { font: 500 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }
.sec > p { margin: 0 0 14px; color: #aeb5ba; font-size: 13.5px; }
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 12px; }
.films.one { grid-template-columns: 1fr; }
.films.vert { grid-template-columns: repeat(3, 1fr); }
.film { display: block; width: 100%; text-align: left; }
.film .pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #111518; overflow: hidden; }
.films.vert .film .pic { aspect-ratio: 9 / 16; }
.film .pic img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s, transform .4s; }
.film:hover .pic img { opacity: 1; transform: scale(1.02); }
.film .pic::after { content: ""; position: absolute; left: 10px; bottom: 10px; width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.film .lab { display: block; font: 400 12px/1.35 var(--sans); color: #c9cfd3; margin-top: 7px; }
.film.on .pic { box-shadow: 0 0 0 1px var(--laser); }
.imgs { display: grid; gap: 8px; margin-top: 12px; grid-template-columns: 1fr; }
.imgs.row-2, .imgs.split { grid-template-columns: 1fr 1fr; }
.imgs.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.imgs button { display: block; background: #111518; }
.imgs img { width: 100%; height: auto; display: block; }
.radio { display: grid; gap: 10px; margin-top: 12px; }
.radio figure { margin: 0; }
.radio figcaption { font: 400 12.5px/1.3 var(--sans); color: #c9cfd3; margin-bottom: 5px; }
.radio audio { width: 100%; height: 34px; filter: invert(1) hue-rotate(180deg) contrast(.9); opacity: .85; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--rule); }
.next button { text-align: left; }
.next button:last-child { text-align: right; }
.next span { display: block; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.next b { font: 500 16px/1.2 var(--sans); }

/* ---------------------------------------------------------------- sheets */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(5, 6, 7, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; }
.sheet .inner { max-width: 980px; margin: 0 auto; padding: 96px 32px 80px; position: relative; }
.sheet .close { position: fixed; top: 22px; right: 28px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 4px 0; z-index: 2; }
.sheet .close:hover { color: var(--ink); }
#indexList { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 56px; }
#indexList li { break-inside: avoid; border-top: 1px solid var(--rule); }
#indexList button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0 12px; text-align: left; }
#indexList b { font: 500 18px/1.2 var(--sans); }
#indexList span { font: 400 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
#indexList button:hover b, #indexList button:focus-visible b { color: #fff; }
#indexList button:hover span { color: var(--laser); }
#aboutBody h2 { font: 500 clamp(44px, 7vw, 92px)/.95 var(--sans); letter-spacing: -.03em; margin: 0 0 10px; text-transform: uppercase; }
#aboutBody .role { font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--laser); margin: 0 0 26px; }
#aboutBody .bio { font-size: 20px; line-height: 1.45; max-width: 30em; color: #d3d8dc; margin: 0 0 40px; }
#aboutBody ol { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
#aboutBody li { border-top: 1px solid var(--rule); padding: 12px 0 14px; }
#aboutBody li b { display: block; font: 500 15px/1.3 var(--sans); }
#aboutBody li span { display: block; font: 400 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 3px; }
#aboutBody li p { margin: 6px 0 0; font-size: 13px; color: #a9b0b5; }
#aboutBody .contact { font: 400 13px/1.8 var(--mono); color: var(--dim); }
#aboutBody .contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--laser); }

/* ---------------------------------------------------------------- readout */
#readout { position: fixed; left: 28px; bottom: 20px; z-index: 15; font: 400 10.5px/1.4 var(--mono); letter-spacing: .1em; color: var(--faint); text-transform: uppercase; pointer-events: none; display: flex; gap: 22px; }
#readout #note { color: var(--laser); text-transform: none; letter-spacing: .04em; opacity: 0; transition: opacity .6s; }
#readout #note.on { opacity: 1; }
body.focus #readout { right: auto; }

/* ---------------------------------------------------------------- no WebGL: a plain contact sheet */
body.flat #gl { display: none; }
body.flat .tile { position: relative; transform: none !important; width: auto !important; height: auto !important; }
body.flat #field { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 18px; padding: 90px 28px 60px; height: auto !important; }
body.flat .tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
body.flat .tile .cap { position: static; transform: none; opacity: 1; }
body.flat #focus { background: var(--bg); }
body.flat #panel { width: 100%; border: 0; }
body.flat #hero { display: none; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  :root { --bar: 54px; --panel: 100vw; }
  #bar { padding: 0 16px; }
  #name { font-size: 12.5px; letter-spacing: .18em; }
  #bar nav { gap: 16px; font-size: 10px; }
  #bSound { display: none; }
  #hero { right: 0; bottom: auto; height: 44vh; }
  #stage { right: 0; bottom: auto; height: 44vh; padding: 8px 12px 10px; }
  #stage .x { top: auto; bottom: -30px; }
  #panel { top: calc(var(--bar) + 44vh); padding: 18px 16px 70px; background: rgba(5, 6, 7, .96); border-left: 0; border-top: 1px solid var(--rule); }
  #panel h2 { font-size: 30px; }
  .desc { font-size: 14.5px; }
  #panel .nav { margin-bottom: 18px; }
  .films.vert { grid-template-columns: 1fr 1fr; }
  #indexList { columns: 1; }
  .sheet .inner { padding: 76px 16px 60px; }
  .sheet .close { top: 18px; right: 16px; }
  #aboutBody ol { grid-template-columns: 1fr; }
  #aboutBody .bio { font-size: 17px; }
  #readout { left: 16px; bottom: 12px; }
  #readout #pts { display: none; }
  body.focus #readout { display: none; }
  .tile .t { font-size: 12px; }
  .tile.big .t { font-size: 15px; }
  body.flat #field { grid-template-columns: 1fr 1fr; gap: 26px 12px; padding: 70px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------------------------------------------------------------- the room (second pass) */
.tile.far .cap { opacity: 0; }
.tile.far:hover .cap, .tile.far:focus-visible .cap, .tile.far.hot .cap { opacity: 1; }
.tile .cap { top: 0; bottom: auto; transform: translateY(-100%); padding: 0 0 7px; }
.tile .cap .c { order: -1; }
body.nolabels .tile .cap, body.nolabels #bar, body.nolabels #readout { visibility: hidden; }
.fishbtn { border-radius: 50%; }
#about.sheet { background: linear-gradient(rgba(5, 6, 7, 0) 0, rgba(5, 6, 7, .2) calc(64px + min(78vw, 1300px) / 6 + 4vh), rgba(5, 6, 7, .9) calc(64px + min(78vw, 1300px) / 6 + 16vh)); backdrop-filter: none; -webkit-backdrop-filter: none; }
#about .inner { padding-top: calc(64px + min(78vw, 1300px) / 6 + 9vh); }
#aboutBody h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.flat #aboutBody h2 { position: static; width: auto; height: auto; clip: auto; }
body.flat #about.sheet { background: rgba(5, 6, 7, .96); }
body.flat #about .inner { padding-top: 96px; }
@media (max-width: 760px) {
  #about .inner { padding-top: calc(54px + 92vw / 6 + 7vh); }
  #about.sheet { background: linear-gradient(rgba(5, 6, 7, 0) 0, rgba(5, 6, 7, .9) calc(54px + 92vw / 6 + 10vh)); }
}
body.about #survey { visibility: hidden; }
#about .close { top: 78px; }
@media (max-width: 760px) { #about .close { top: 64px; } }

/* ---------------------------------------------------------------- the scan in front (third pass) */
#heroHit { position: fixed; left: 0; top: 0; z-index: 3; cursor: pointer; border-radius: 2px; }
#heroHit:focus-visible { outline: 1px solid var(--laser); outline-offset: 6px; }
#cur { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; }
#cur .client { margin: 0 0 6px; font-size: 10.5px; }
#curT { pointer-events: auto; font: 500 34px/1.05 var(--sans); letter-spacing: -.015em; color: var(--ink); text-align: left; }
#curT:hover { text-decoration: underline; text-decoration-color: var(--laser); text-underline-offset: 5px; }
body.focus #cur, body.about #cur, body.flat #cur, body.flat #heroHit, body.booting #cur { display: none; }
body.nolabels #cur { visibility: hidden; }
#field .tile { z-index: 2; }
@media (max-width: 760px) {
  #curT { font-size: 24px; }
  #about .close { top: auto; bottom: 18px; right: 16px; position: fixed; padding: 8px 10px; background: rgba(5, 6, 7, .8); border: 1px solid var(--rule); }
}
#field { overflow: hidden; } html { overflow-x: hidden; }
