/* Where scrolling only drives the motion, no scrollbar. */
html:has(.hall) { scrollbar-width: none; }
html:has(.hall)::-webkit-scrollbar { display: none; }

/* Still grain over the whole page: never moves. */
.grain { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: var(--grain, .2); mix-blend-mode: overlay; background: url(/grain-hall.png) 0 0 / 180px 180px; }
.veil { position: fixed; inset: 0; z-index: 40; pointer-events: none; background: var(--dark); opacity: 0; transition: opacity .45s ease; }
.veil.on { opacity: 1; }

/* Shared controls */
.sound { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--fg, var(--cream)); background: var(--sound-bg, rgba(22,41,31,.55)); border: 1px solid var(--sound-line, rgba(242,235,221,.35)); border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 44px; white-space: nowrap; }
.sound svg { width: 14px; height: 14px; flex: none; }
.sound[aria-pressed="false"] svg path:last-child { opacity: .35; }

.book { display: inline-block; font: 600 15px/1 var(--body); background: var(--pink); color: var(--ink); padding: 16px 22px; border-radius: 3px; text-decoration: none; }
.quiet { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: inherit; opacity: .7; text-decoration: none; padding: 16px 0; transition: opacity .3s ease; }
.quiet:hover { opacity: 1; }

/* ---------- Hall ---------- */
.hall-scroll { height: 185svh; }
/* The name always fits whole. Anton: LEVITSKEE is 3.657em long, capitals are .859em tall. */
.stage { --name-size: min(17cqw, 26cqh); --strip: min(15.6cqw, var(--name-size)); --name-area: 100%; position: sticky; top: 0; height: 100svh; width: 100%; overflow: hidden; background: var(--forest); container-type: size; --pos: right 15%; cursor: crosshair; touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.name { position: absolute; left: 0; top: 0; height: var(--name-area); width: var(--strip); display: flex; align-items: center; justify-content: center; overflow: hidden; z-index: 6; background: var(--forest); }
.name span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: var(--name-size); line-height: .85; white-space: nowrap; color: var(--cream); }
.layer { position: absolute; left: var(--strip); top: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.layer-photo { z-index: 1; }
.layer-cut { z-index: 3; }
.layer.soft img { filter: blur(3.5px) brightness(.74) contrast(1.1); }
.layer.sharp { clip-path: inset(var(--t, 0) var(--r, 100%) var(--b, 100%) var(--l, 0)); transition: clip-path .3s var(--ease); }
.no-look .layer.soft img { filter: contrast(1.08) brightness(.96); }
.no-look .layer.sharp, .no-look .finder-frame, .no-look .hint { display: none; }
@media (hover: none), (pointer: coarse) { .hint-mouse { display: none; } }
/* A finger dragging at the top of the page must not reload it. */
html { overscroll-behavior-y: none; }
.hint { position: absolute; z-index: 7; right: 2.2%; bottom: 3.5%; font-family: var(--mono); font-size: max(10px, .95cqw); color: var(--cream); opacity: .7; pointer-events: none; }
.finder-frame { position: absolute; z-index: 5; pointer-events: none; transition: left .3s var(--ease), top .3s var(--ease); }
/* While a finger leads the window it keeps up, instead of gliding after it. */
.stage.wandering .layer.sharp, .stage.wandering .finder-frame { transition-duration: .06s; transition-timing-function: linear; }
.finder-frame i { position: absolute; width: 22%; height: 22%; border: 0 solid var(--pink); }
.finder-frame i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.finder-frame i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.finder-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.finder-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); filter: contrast(1.08) brightness(.96); will-change: transform; }
.headline { position: absolute; left: 21%; top: 21%; width: 70%; margin: 0; z-index: 2; font-family: var(--display); font-weight: 400; font-size: 9.7cqw; line-height: .93; text-transform: uppercase; color: var(--cream); will-change: transform; pointer-events: none; }
.between { color: var(--pink); }
.vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(120% 95% at 62% 42%, rgba(0,0,0,0) 45%, rgba(8,14,10,.55) 100%); }
.stage .sound { position: absolute; z-index: 7; right: 2.2%; top: 3.2%; font-size: max(11px, 1.05cqw); min-height: 36px; }
.stage .sound::after { content: ""; position: absolute; inset: -5px; }
@media (min-width: 641px) {
  .stage .sound { padding: max(9px, .76cqw) max(14px, 1.19cqw); gap: max(8px, .68cqw); min-height: max(36px, 2.86cqw); }
  .stage .sound svg { width: max(14px, 1.19cqw); height: max(14px, 1.19cqw); }
  .enter { gap: max(10px, .85cqw); min-height: max(44px, 3.73cqw); }
  .enter .dot { width: max(7px, .6cqw); height: max(7px, .6cqw); }
}
.enter { cursor: pointer; position: absolute; z-index: 7; left: 19.4%; bottom: 4.5%; display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--cream); opacity: .55; font: 500 max(10px, .95cqw)/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; min-height: 44px; transition: opacity .3s ease; }
.enter:hover, .enter:focus-visible { opacity: 1; }
.enter .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.rooms-overlay { display: none; position: absolute; inset: 0; z-index: 9; background: rgba(22,41,31,.94); flex-direction: column; justify-content: center; gap: 3cqw; padding: 4cqw 8cqw 4cqw 21%; cursor: default; animation: ovin .5s var(--ease) both; }
.rooms-overlay.open, .rooms-overlay:target { display: flex; }
@keyframes ovin { from { opacity: 0; } to { opacity: 1; } }
.menu-open { overflow: hidden; }
.ov-eyebrow { font: 500 max(10px, 1cqw)/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.ov-rooms { display: flex; flex-direction: column; align-items: flex-start; gap: .4cqw; }
.ov-rooms a { display: flex; align-items: baseline; gap: 2cqw; color: var(--cream); text-decoration: none; }
.ov-rooms em { font: italic 400 max(13px, 1.6cqw)/1 var(--serif); color: var(--cream-soft); width: 9cqw; flex: none; }
.ov-rooms b { font: 400 max(30px, min(6.4cqw, 11cqh))/1 var(--display); text-transform: uppercase; transition: color .25s ease, transform .35s var(--ease); }
.ov-rooms a.is-between b { color: var(--pink); }
.ov-rooms a:hover b, .ov-rooms a:focus-visible b { color: var(--pink); transform: translateX(1.2cqw); }
.ov-rooms a:focus-visible { outline: none; }
.write-link { align-self: flex-start; font: 500 max(10px, 1cqw)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-soft); padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(217,207,187,.4); }
.rooms-overlay .book-note { align-self: flex-start; margin-top: -8px; }
.ov-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 max(20px, 2.4cqw); }
.ov-desk { display: flex; gap: max(20px, 2.4cqw); }
.ov-desk a { font: 500 max(10px, 1cqw)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-soft); padding: 6px 0; text-decoration: none; }
.ov-desk a:hover, .ov-desk a:focus-visible { color: var(--pink); }
.ov-cta { align-self: flex-start; font-size: max(12px, 1.2cqw); padding: 1.3cqw 2cqw; }
@media (max-height: 500px) { .rooms-overlay { gap: 6px; padding-block: 8px; } .rooms-overlay .book-note { margin-top: 0; } }
.menu-open .grain { display: none; }
.close:focus { outline: 2px solid var(--pink); outline-offset: 2px; }
.close { position: absolute; right: 2.2%; top: 3.2%; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: var(--cream); border: 1px solid rgba(242,235,221,.35); border-radius: 50%; cursor: pointer; }
.close svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  /* A composition of its own: the couple whole above, the photo fading into dark, the line and the way in below. */
  .stage { --pos: 83% top; --name-size: 15.5cqw; --strip: 15cqw; --photo-h: 78cqh; }
  .layer-photo { background: #0B0A09; }
  .layer img { height: var(--photo-h); -webkit-mask-image: linear-gradient(#000 52%, transparent 88%); mask-image: linear-gradient(#000 52%, transparent 88%); }
  .vignette { display: none; }
  /* Clear of the bars phone browsers lay over the bottom of the page. */
  /* In front of the people here: their legs would hide the words, and the faces stay far above. */
  .headline { font-size: 14.5cqw; top: 54cqh; width: 82%; left: 18%; z-index: 4; }
  .stage .sound { top: 12px; }
  .hint { bottom: 15cqh; }
  /* Above the line, solid and pink: on a phone it has to look like something to press. */
  .enter { left: 18%; bottom: auto; top: calc(54cqh - 74px); opacity: 1; padding: 0 16px; border-radius: 999px; background: var(--pink); color: #16110F; font-size: 11px; letter-spacing: .14em; }
  .enter .dot { background: #16110F; }
  .enter::after { content: "→"; font-size: 14px; letter-spacing: 0; }
  .rooms-overlay { padding: 18px 18px 18px 19%; gap: 18px; }
  .ov-rooms em { width: 64px; }
  .ov-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; }
}

.book-note { font: 500 10px/1.4 var(--mono); letter-spacing: .08em; opacity: .65; }

/* ---------- 404 ---------- */
/* The information desk and the journal: quiet pages behind the menu, in the look of the exhibition */
.desk-main { max-width: 760px; margin: 0 auto; padding: clamp(48px, 10vh, 110px) 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.desk-eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.desk-main h1 { margin: 0 0 12px; font: 400 clamp(44px, 8vw, 96px)/1 var(--display); text-transform: uppercase; }
.desk-q { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.desk-q h2, .post-link h2 { margin: 0; font: italic 400 clamp(26px, 3.4vw, 36px)/1.15 var(--serif); }
.desk-main p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--cream-soft); max-width: 60ch; }
.desk-main .desk-waiting { color: var(--pink); font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.post-photo img { width: 100%; height: auto; }
.post-photo { width: 100%; }
.post-link { display: flex; flex-direction: column; gap: 8px; width: 100%; color: inherit; text-decoration: none; margin-bottom: 26px; }
.post-link span { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.desk-main .book { margin-top: 10px; }
.lost-main { min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 24px max(24px, 12vw); }
.lost-main h1 { margin: 0; font: 400 clamp(38px, 7vw, 92px)/1 var(--display); text-transform: uppercase; max-width: 16ch; }

/* ---------- Without motion the page stays complete ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hall-scroll { height: 100svh; }
  .layer img { will-change: auto; }
  .enter .dot, .rooms-overlay { animation: none; }
  .hint { display: none; }
  .veil, .sound, .quiet { transition: none; }
  .ov-rooms b { transition: color .25s ease; }
}
@media (prefers-reduced-motion: no-preference) {
  .layer img { transform: scale(1.08); }
}
