@font-face {
  font-family: Playfair;
  src: url("./vendor/playfair.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Uncial Antiqua";
  src: url("./vendor/UncialAntiqua-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("./vendor/playfair-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #171613;
  --cream: #f5efe4;
  --gold: #cfab7b;
  --rule: #39352e;
  --serif: Playfair, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --walk-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-width: 280px; background: #141310; color: var(--cream); }
html { overscroll-behavior: none; }
html.gallery-scroll-locked, html.gallery-touch-navigation { overflow: hidden; }
body { font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.gallery-shortcuts {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) var(--walk-bottom) auto;
  z-index: 3;
}
.gallery-shortcuts[inert] { visibility: hidden; }
.gallery-shortcuts button { background: var(--ink); }
.gallery-shortcuts #index-open { gap: 8px; min-height: 44px; padding-inline: 11px; }
.gallery-shortcuts #guide-open { position: absolute; inset: auto 0 calc(100% + 8px) auto; white-space: nowrap; }
.gallery-shortcuts #guide-open:not(:focus-visible) { clip-path: inset(50%); }
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 52% 48%, #332a20, #181611 55%, #0e0d0b);
}
.appointment-plaque {
  --plaque-outline: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px),
    calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  position: absolute;
  z-index: 2;
  isolation: isolate;
  inset: max(16px, calc(env(safe-area-inset-top) + 8px)) max(16px, calc(env(safe-area-inset-right) + 8px)) auto auto;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  color: #f2d7a8;
  font: 600 .94rem/1.2 var(--serif);
  letter-spacing: .015em;
  touch-action: manipulation;
}
.appointment-plaque::before, .appointment-plaque::after {
  position: absolute;
  content: "";
  clip-path: var(--plaque-outline);
  pointer-events: none;
}
.appointment-plaque::before {
  inset: 0;
  z-index: -2;
  background: linear-gradient(143deg, #dab67d, #694522 31%, #dda963 66%, #8b633b);
}
.appointment-plaque::after {
  inset: 2px;
  z-index: -1;
  border: 1px solid #a3754659;
  background: repeating-linear-gradient(174deg, #3c2817 0 1px, transparent 2px 6px),
    linear-gradient(145deg, #312318, #21160f 60%, #39291c);
}
.appointment-plaque:hover { color: #ffeac6; }
.appointment-icon {
  position: relative;
  width: 15px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.appointment-icon::before, .appointment-icon::after { position: absolute; content: ""; }
.appointment-icon::before { inset: 4px 0 auto; border-top: 1px solid currentColor; }
.appointment-icon::after { inset: -3px 3px auto; height: 4px; border-inline: 1px solid currentColor; }
#gallery { display: block; width: 100%; height: 100%; touch-action: pinch-zoom; }
.is-inspecting .appointment-plaque, .is-inspecting .walk-controls { visibility: hidden; }
.scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #0c0a0800 36%, #0b090657 100%);
}
.gallery-blackout {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.artist-finale {
  position: fixed;
  inset: 0;
  z-index: 5;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(24px, 5vw, 82px);
  background: #000;
}
.artist-finale::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse at 29% 53%, #77502d61, #291c13aa 37%, #070606f7 76%, #000 100%),
    linear-gradient(#1c1510b3, #0a0908d9),
    url("./materials/stone.webp") center / min(58vw, 740px) repeat;
  animation: finale-room 2.7s ease both;
}
.finale-content {
  display: grid;
  grid-template-columns: min(35vw, 27rem, 66svh) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 94px);
  width: min(100%, 67rem);
}
.finale-frame {
  position: relative;
  margin: 0;
  padding: clamp(7px, 1.25vw, 16px);
  border: 1px solid #805c38;
  background: linear-gradient(132deg, #715234 0%, #312013 33%, #20160e 67%, #553a25 100%);
  box-shadow: 0 26px 78px #000b, inset 0 0 0 3px #21160e, inset 0 0 0 5px #5d422a;
  animation: finale-frame 2.6s ease both;
}
.finale-frame::after {
  position: absolute;
  inset: clamp(7px, 1.25vw, 16px);
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 18px 4px #0b0704a8, 0 0 0 1px #b18650;
  background: linear-gradient(123deg, #fac08618, transparent 58%, #100b0733);
}
.finale-frame img { display: block; width: 100%; height: auto; }
.finale-artist { animation: finale-artist 2.65s ease both; }
.finale-opening {
  margin: 0 0 .76em;
  color: #d7b184;
  font: italic 400 clamp(1.06rem, 2vw, 1.45rem)/1.25 var(--serif);
}
.finale-artist h2 {
  margin: 0;
  color: #f2e5d2;
  font: 400 clamp(2.5rem, 6.35vw, 6.05rem)/1.01 "Uncial Antiqua", Georgia, serif;
  letter-spacing: -.045em;
}
.finale-artist h2 span { display: block; }
.finale-credit {
  margin: clamp(11px, 2vh, 22px) 0 clamp(17px, 3.8vh, 34px);
  color: #cfc1b0;
  font: 400 clamp(1rem, 1.7vw, 1.23rem)/1.4 var(--serif);
}
.finale-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.finale-book.outline-button {
  border-color: #d6b17f;
  background: #d6b17f;
  color: #21160f;
  font-weight: 650;
}
.finale-book.outline-button:hover { border-color: #f0cf9b; background: #f0cf9b; }
.finale-replay { min-height: 44px; margin-top: 8px; padding: 0; color: #c8b39b; font-size: .875rem; }
.finale-replay:hover { color: var(--cream); text-decoration: underline; text-underline-offset: .25em; }
.review-transcript { margin: 0 0 22px; color: #d7cec0; line-height: 1.6; }
.review-transcript summary { color: var(--gold); cursor: pointer; }
.review-transcript li + li { margin-top: .55em; }
.finale-ember {
  position: absolute;
  top: 50%;
  left: 26%;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffdd93;
  box-shadow: 0 0 5px 2px #ff9c4c, 0 0 26px 9px #ba5d303f;
  opacity: 0;
  pointer-events: none;
  animation: finale-ember 1.65s .25s ease both;
}
.artist-finale:focus-within .finale-artist { animation: none; }
@keyframes finale-room {
  0%, 27% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes finale-frame {
  0%, 28% { opacity: 0; filter: brightness(.18) saturate(.65); }
  69% { opacity: 1; filter: brightness(1.06) saturate(.94); }
  100% { opacity: 1; filter: brightness(1) saturate(1); }
}
@keyframes finale-artist {
  0%, 51% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes finale-ember {
  0% { opacity: 0; transform: translate(-74px, 50px) scale(.35); }
  33% { opacity: .94; }
  76%, 100% { opacity: 0; transform: translate(26px, -42px) scale(1); }
}
.intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  opacity: var(--intro-opacity, 1);
}
.intro::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at 50% 51%, #0c0a08b3 0%, #0c0a0870 26%, #0c0a081a 58%, transparent 77%);
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.6;
  text-transform: uppercase;
}
.intro h1, .fallback h2, .dialog h2 {
  margin: 0;
  font: 400 clamp(3.1rem, 7.65vw, 8.3rem)/1.08 var(--serif);
  letter-spacing: -.052em;
}
.intro h1 {
  padding: 0 16px;
  font-family: "Uncial Antiqua", Georgia, serif;
  font-size: clamp(1.9rem, 7.05vw, 7.2rem);
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: -.031em;
  text-shadow: 0 4px 29px #090806ba;
}
.intro h1 span { display: block; color: #efddc5; }
.intro-credit {
  margin: clamp(.8rem, 2.2vh, 1.4rem) 16px 0;
  color: #e5c391;
  font: 400 clamp(1rem, 1.7vw, 1.34rem)/1.4 var(--serif);
  letter-spacing: .025em;
  text-shadow: 0 2px 12px #090806;
}
.walk-controls {
  position: absolute;
  z-index: 2;
  inset: auto auto var(--walk-bottom) 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  border: 1px solid #ac896254;
  border-radius: 30px;
  background: #15100bd9;
  box-shadow: 0 5px 18px #0008;
}
.walk-button, .look-button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #ecd4b1;
  border-radius: 24px;
  touch-action: manipulation;
}
.walk-button:hover, .look-button:hover { color: #fff; background: #ae825124; }
.look-button::before {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  content: "";
  transform: rotate(45deg);
}
.look-left::before { transform: rotate(225deg); }
.mouse-icon {
  display: block;
  position: relative;
  width: 17px;
  height: 25px;
  border: 1px solid currentColor;
  border-radius: 11px;
}
.mouse-icon::before {
  position: absolute;
  inset: 5px auto auto calc(50% - 1px);
  width: 2px;
  height: 5px;
  border-radius: 3px;
  background: currentColor;
  content: "";
  animation: scroll-cue 2.1s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 20%, 100% { opacity: 1; transform: translateY(0); }
  52%, 65% { opacity: .25; transform: translateY(6px); }
}
.frame-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 13px;
  border: 1px solid var(--gold);
}
.frame-icon::after {
  position: absolute;
  inset: 2px;
  border: 1px solid var(--gold);
  opacity: .75;
  content: "";
}
.fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 25px;
  text-align: center;
}
.fallback h2 { font-size: clamp(2.7rem, 6vw, 5.6rem); }
.fallback p:not(.eyebrow) { max-width: 38ch; margin: 0; color: #d4cabc; line-height: 1.55; }
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid #7b684e;
  color: var(--cream);
  font-size: .875rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.outline-button:hover { border-color: var(--gold); background: #392e20; }
.artwork-view.outline-button {
  position: absolute;
  z-index: 1;
  bottom: var(--walk-bottom);
  left: 50%;
  min-height: 48px;
  padding-inline: 24px;
  transform: translateX(-50%);
  border-color: var(--gold);
  background: #1b1510;
  touch-action: manipulation;
}
.dialog {
  width: min(calc(100vw - 36px), 580px);
  max-width: 1050px;
  max-height: calc(100dvh - 40px);
  margin: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4vw, 43px);
  border: 1px solid #534839;
  background: #1c1a16;
  color: var(--cream);
  box-shadow: 0 18px 75px #0a0806a6;
}
.dialog::backdrop { background: #0c0a08c9; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dialog h2 { font-size: clamp(2.2rem, 5vw, 3.65rem); }
.close-button {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #5b5143;
  color: var(--cream);
}
.close-button:hover { border-color: var(--gold); color: var(--gold); }
.close-button::before, .close-button::after {
  position: absolute;
  inset: calc(50% - .5px) 9px auto;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
  content: "";
}
.close-button::after { transform: rotate(-45deg); }
.view-close {
  position: absolute;
  z-index: 3;
  inset: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) auto auto;
  width: 48px;
  height: 48px;
  border-color: var(--gold);
  background: #1b1510;
  touch-action: manipulation;
}
.view-close::before, .view-close::after { inset-inline: 14px; }
.guide-list { display: grid; gap: 18px; margin: 26px 0; }
.guide-list dt { margin-bottom: 5px; font-weight: 600; }
.guide-list dd { margin: 0; color: #d1c8b9; line-height: 1.6; }
.index-dialog { width: min(calc(100vw - 36px), 900px); }
.index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.index-item { border-top: 1px solid var(--rule); }
.index-stop {
  width: 100%;
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 8px 0;
}
.index-stop:hover { color: var(--gold); }
.index-stop img { flex: none; width: 50px; height: 40px; object-fit: contain; background: #2c261e; }
.index-number { color: var(--gold); font-size: .75rem; font-variant-numeric: tabular-nums; }
.index-name { font: 400 1rem/1.3 var(--serif); }
.work-dialog { width: min(calc(100vw - 36px), 1050px); }
.work-dialog .dialog-header { position: sticky; z-index: 1; top: 0; background: #1c1a16; }
.work-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.work-layout img { display: block; width: 100%; height: auto; max-height: 68dvh; object-fit: contain; background: #14120f; }
.work-medium { color: var(--gold); font-size: .875rem; }
.work-description { margin: 23px 0; color: #d7cec0; line-height: 1.65; }
.work-price { margin: 0 0 23px; color: var(--gold); font-weight: 600; }
.book-dialog { max-width: 810px; }
.book-dialog-header { justify-content: flex-end; }
.book-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-graphic {
  display: grid;
  min-height: clamp(225px, 33vw, 360px);
  place-items: center;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  perspective: 640px;
  border: 1px solid #534232;
  background: radial-gradient(ellipse at 46% 44%, #62452d, #251b14 69%, #15110e);
}
.book-graphic::before {
  position: absolute;
  inset: 74% 17% 8%;
  content: '';
  background: radial-gradient(ellipse, #0d0905d9, transparent 69%);
  transform: rotate(-9deg);
}
.book-volume {
  --book-depth: 18px;
  position: relative;
  width: clamp(105px, 46%, 165px);
  aspect-ratio: 5 / 7;
  transform: rotateZ(-8deg) rotateX(11deg) rotateY(-29deg);
  transform-style: preserve-3d;
}
.book-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid #6f4c2b;
  border-radius: 5px 2px 2px 5px;
  box-shadow: inset 5px 0 10px #0e0906a0, inset 0 1px 0 #be8e5c45;
  background: repeating-linear-gradient(112deg, #ddb78c05 0 1px, transparent 2px 4px),
    linear-gradient(90deg, #211610 0 8%, #62402a 11%, #452c1d 14%, #4f3422 39%, #2e1d14);
}
.book-cover::before {
  position: absolute;
  inset: 12px 11px 12px 20px;
  border: 3px double #b38c56a8;
  content: '';
}
.book-cover::after {
  width: 24%;
  aspect-ratio: 1;
  border: 3px double #d3a976;
  margin-left: 7px;
  content: '';
  transform: rotate(45deg);
}
.book-volume::before, .book-volume::after {
  position: absolute;
  content: '';
  background: repeating-linear-gradient(90deg, #aa8b60 0 1px, #e0c5a1 1px 3px);
}
.book-volume::before {
  inset: 3px auto 3px 100%;
  width: var(--book-depth);
  border-right: 2px solid #67472d;
  transform-origin: left;
  transform: rotateY(90deg);
}
.book-volume::after {
  inset: 100% 2px auto 4px;
  height: var(--book-depth);
  border-bottom: 2px solid #67472d;
  background: repeating-linear-gradient(0deg, #977852 0 1px, #c5a77e 1px 3px);
  transform-origin: top;
  transform: rotateX(-90deg);
}
.book-release {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font: 650 .8rem/1.2 var(--sans);
  letter-spacing: .2em;
}
.book-price { margin: 12px 0 0; color: var(--gold); font: 600 1.4rem/1.25 var(--serif); }
.book-details .work-description { margin: 14px 0 20px; }
.book-amazon:disabled { background: #2e251c; border-color: #947650; color: #d4b88f; cursor: default; }
body.modal-open { overflow: hidden; }
noscript {
  position: fixed;
  z-index: 5;
  top: 55%;
  inset-inline: 20px;
  margin-inline: auto;
  width: fit-content;
  padding: 12px;
  background: var(--ink);
}
@media (max-width: 640px) and (orientation: portrait) {
  .finale-content { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(13px, 3svh, 26px); text-align: center; }
  .finale-frame { width: min(100%, 20rem, 39svh); }
  .finale-artist h2 { font-size: clamp(2rem, 9vw, 3.65rem); }
  .finale-artist h2 span { display: inline; }
  .finale-actions { justify-content: center; }
  .finale-ember { top: 30%; left: 45%; }
  .artist-finale::before { background-position: 35% 38%; }
}
@media (max-width: 480px) {
  .intro h1 { font-size: clamp(1.35rem, 8.15vw, 2.5rem); }
  .index-list, .work-layout { grid-template-columns: 1fr; }
  .work-layout img { max-height: 48dvh; }
}
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  .gallery-shortcuts #index-open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
