:root { --ink: #ece9e3; --dim: #98948c; --line: #2a2926; --bg: #0c0c0b; --foot: 30px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }

/* The room, once WebGL2 is there. Without it the page below is all there is. */
#room { display: none; }
.js #room { display: block; position: fixed; inset: 0 0 var(--foot) 0; }
.js #page { display: none; }
.js, .js body { height: 100%; overflow: hidden; }
#gl { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#gl:active { cursor: grabbing; }

#hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 6px 14px; font-size: 13px; letter-spacing: .02em; background: rgba(12, 12, 11, .55); backdrop-filter: blur(8px); border-radius: 2px; white-space: nowrap; transition: opacity 1.6s; pointer-events: none; }
#hint.gone { opacity: 0; }
#demo-note { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; font-size: 12px; color: #c4c0b8; background: rgba(12, 12, 11, .55); pointer-events: none; }
#map { position: absolute; left: 14px; top: 14px; cursor: crosshair; background: rgba(12, 12, 11, .62); backdrop-filter: blur(8px); border-radius: 2px; transition: opacity .6s; }
#map.dim { opacity: .3; }
#map.dim:hover { opacity: 1; }
.shot #map { display: none; }
#tip { position: fixed; left: 0; top: 0; z-index: 4; padding: 3px 9px; font-size: 13px; background: rgba(12, 12, 11, .8); pointer-events: none; }
#cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 16px; background: linear-gradient(to top, rgba(12, 12, 11, .85), rgba(12, 12, 11, 0)); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; pointer-events: none; }
#cap button { pointer-events: auto; background: none; border: 1px solid #7a766e; color: var(--ink); font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer; margin-left: 6px; }
#cap button:hover { background: #1b1a18; }
#cap button:focus-visible, footer a:focus-visible, footer button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#cap-title { font-size: 19px; }
#cap-desc { max-width: 62ch; margin: 6px 0 4px; font-size: 14px; line-height: 1.45; }
#cap-more { font-size: 12px; color: var(--dim); }
#cap-link { pointer-events: auto; color: var(--ink); margin-right: 10px; }
.demo, .demo * { cursor: none !important; }
#cap-artist { color: var(--ink); font-size: 14px; }
#cap-meta { color: #c4c0b8; font-size: 13px; }
[hidden] { display: none !important; }

footer { position: fixed; left: 0; right: 0; bottom: 0; height: var(--foot); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 12px; color: var(--dim); background: #0c0c0b; border-top: 1px solid var(--line); z-index: 5; }
footer a { color: var(--dim); text-decoration: none; margin-left: 16px; }
footer a:hover, footer button:hover { color: var(--ink); }
footer button { display: none; background: none; border: 0; padding: 0; font: inherit; color: var(--dim); cursor: pointer; }
.js footer button { display: inline; }
.shot footer { display: none; }
.shot #room { inset: 0; }

/* The one-pager */
#page { padding-bottom: var(--foot); }
.hero { position: relative; min-height: 86vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 6vw; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 12, 11, .92), rgba(12, 12, 11, 0) 55%); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-weight: 200; font-size: clamp(44px, 8vw, 104px); letter-spacing: .01em; margin: 0; line-height: 1; }
.hero p { max-width: 38em; margin: 18px 0 0; font-size: 18px; }
.note { padding: 14px 6vw; color: #c4c0b8; font-size: 14px; border-bottom: 1px solid var(--line); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 6px; padding: 6px; }
.shots img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 9; }
.artist { padding: 72px 6vw 24px; }
.artist h2 { font-weight: 200; font-size: clamp(30px, 4vw, 48px); margin: 0 0 32px; }
.about { max-width: 44em; margin: 0 0 14px; }
.about:last-of-type { margin-bottom: 36px; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 38px 28px; margin: 0; padding: 0; list-style: none; }
.works img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #151513; display: block; padding: 14px; }
.works strong { display: block; font-weight: 400; margin-top: 10px; }
.works span { display: block; color: var(--dim); font-size: 13px; }
.works p { font-size: 14px; line-height: 1.45; margin: 8px 0; }
.works a { font-size: 13px; }

/* Legal pages */
.legal { max-width: 44em; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-weight: 200; font-size: 38px; margin: 0 0 28px; }
.legal h2 { font-weight: 400; font-size: 18px; margin: 32px 0 6px; }
.legal mark { background: #4a3a10; color: #ffe9a8; padding: 0 4px; }
.back { color: var(--dim); font-size: 14px; }
