:root {
  --cream: #f4f0e8;
  --ink: #191816;
  --muted: #716d64;
  --line: #26231d2b;
  --accent: #9a332c;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  overflow: hidden;
}
button,
a {
  font: inherit;
  color: inherit;
}
.gallery {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.topbar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 clamp(22px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#f4f0e8ee, transparent);
}
.signature {
  font:
    italic 31px Instrument Serif,
    serif;
  text-decoration: none;
  letter-spacing: -0.14em;
}
.signature span {
  color: var(--accent);
}
.topbar nav {
  display: flex;
  gap: 8px;
}
.topbar button,
.about button {
  border: 1px solid var(--line);
  background: #f4f0e8a8;
  border-radius: 99px;
  padding: 9px 14px;
  font-size: 10px;
  letter-spacing: 0.13em;
  cursor: pointer;
}
.room-status {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 3px;
}
.room-status small {
  font-size: 9px;
  letter-spacing: 0.21em;
  color: var(--muted);
}
.room-status strong {
  font:
    400 18px Instrument Serif,
    serif;
}
.viewport {
  position: absolute;
  z-index: 3;
  inset: 0 0 25%;
  overflow: hidden;
  cursor: grab;
}
.viewport:active {
  cursor: grabbing;
}
.wall-texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, #00000008 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, #00000005 0 1px, transparent 1px 4px),
    linear-gradient(#d9d3c7 0, #f8f5ee 7%, #f5f1e9 72%, #ded8cd);
  box-shadow: inset 0 -24px 36px #38312912;
}
.track {
  position: relative;
  z-index: 3;
  height: 100%;
  width: max-content;
  display: flex;
  align-items: center;
  gap: clamp(90px, 9vw, 170px);
  padding: 8vh 14vw 0;
}
.intro {
  flex: 0 0 clamp(330px, 38vw, 580px);
  margin-right: 2vw;
}
.intro > span,
.end-card > span,
.art-modal article > span,
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.intro h1,
.end-card h2 {
  font:
    400 clamp(55px, 7vw, 105px)/0.83 Instrument Serif,
    serif;
  letter-spacing: -0.045em;
  margin: 24px 0;
}
.intro h1 em,
.end-card em,
.about h2 em {
  font-weight: 400;
  color: var(--accent);
}
.intro p {
  width: min(410px, 90%);
  font-size: 15px;
  line-height: 1.75;
  color: #555047;
}
.instruction {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 36px;
  font-size: 10px;
  letter-spacing: 0.11em;
  color: var(--muted);
}
.instruction i {
  width: 46px;
  height: 1px;
  background: var(--ink);
  position: relative;
}
.instruction i:after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: rotate(45deg);
}
.art {
  flex: 0 0 auto;
  margin: 0;
  position: relative;
}
.art-1 {
  width: clamp(265px, 23vw, 410px);
  transform: translateY(-2vh);
}
.art-2 {
  width: clamp(280px, 25vw, 440px);
  transform: translateY(5vh);
}
.art-3 {
  width: clamp(250px, 21vw, 370px);
  transform: translateY(-6vh);
}
.art-4 {
  width: clamp(290px, 27vw, 470px);
  transform: translateY(3vh);
}
.frame {
  display: block;
  width: 100%;
  padding: 11px;
  border: 0;
  background: #fdfcf8;
  box-shadow: 0 30px 62px -31px #1b160d99;
  cursor: zoom-in;
  position: relative;
  transition:
    transform 0.55s cubic-bezier(0.16, 0.84, 0.24, 1),
    box-shadow 0.55s;
}
.frame:before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: -25vh;
  width: 180%;
  height: calc(100% + 32vh);
  transform: translateX(-50%);
  clip-path: polygon(48% 0, 52% 0, 91% 100%, 9% 100%);
  background: linear-gradient(#fff9e8a8, #fffdf724 54%, transparent);
  pointer-events: none;
}
.frame:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -25vh;
  transform: translateX(-50%);
  width: 36px;
  height: 11px;
  background: #252421;
  border-radius: 2px;
  box-shadow: 0 7px 17px #fff2c2;
}
.frame picture,
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #141311dd;
  color: #fff;
  padding: 9px 11px;
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.3s;
}
.frame:hover {
  transform: translateY(-12px) scale(1.025);
  box-shadow: 0 48px 75px -34px #1b160dbb;
}
.frame:hover .zoom {
  opacity: 1;
  transform: none;
}
.art figcaption {
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.art figcaption b {
  font:
    400 25px Instrument Serif,
    serif;
}
.art figcaption span {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.end-card {
  flex: 0 0 clamp(330px, 38vw, 560px);
  padding-right: 14vw;
}
.end-card h2 {
  font-size: clamp(55px, 6vw, 90px);
}
.end-card p {
  max-width: 38ch;
  color: var(--muted);
  line-height: 1.65;
}
.end-card button {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid;
  background: none;
  cursor: pointer;
}
.floor {
  position: absolute;
  inset: 75% 0 0;
  background: #bcae95;
  perspective: 480px;
  perspective-origin: 50% -45%;
  overflow: hidden;
}
.floor-plane {
  position: absolute;
  left: -50%;
  right: -50%;
  top: -170%;
  bottom: -15%;
  transform: rotateX(68deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(90deg, #ffffff0c, #0000000c),
    repeating-linear-gradient(90deg, transparent 0 90px, #564a353b 91px 92px),
    repeating-linear-gradient(0deg, transparent 0 28px, #564a353b 29px 30px);
  background-position: 0 0;
  background-color: #bbaa8d;
}
.floor-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#3b30243d, transparent 46%),
    radial-gradient(100% 110% at 50% 0, #fff3d830, transparent);
}
.reflections { display: none; }
.reflections > div,
.barrier > div {
  position: absolute;
  inset: 0;
}
.reflection {
  position: absolute;
  top: 0;
  opacity: 0.13;
  filter: blur(3px);
  transform: scaleY(-0.42);
  transform-origin: top;
}
.reflection img {
  width: 100%;
  display: block;
}
.reflection-1 {
  left: calc(14vw + clamp(330px, 38vw, 580px) + 11vw);
  width: clamp(265px, 23vw, 410px);
}
.reflection-2 {
  left: calc(
    14vw + clamp(330px, 38vw, 580px) + 11vw + clamp(265px, 23vw, 410px) + 9vw
  );
  width: clamp(280px, 25vw, 440px);
}
.barrier {
  position: absolute;
  z-index: 12;
  inset: 70% 0 0;
  overflow: hidden;
  pointer-events: none;
}
.barrier i {
  position: absolute;
  bottom: 25px;
  width: 8px;
  height: 105px;
  background: linear-gradient(
    90deg,
    #171512,
    #bdb8aa 42%,
    #f0ede5 58%,
    #292722
  );
  border-radius: 4px;
  box-shadow: 0 12px 18px #271e1454;
}
.barrier i:after {
  content: "";
  position: absolute;
  left: -17px;
  bottom: -7px;
  width: 42px;
  height: 12px;
  background: #4a4640;
  border-radius: 50%;
}
.rope {
  position: absolute;
  bottom: 106px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='34'%3E%3Cpath d='M0 2 Q130 52 260 2' fill='none' stroke='%23181613' stroke-width='4'/%3E%3C/svg%3E")
    repeat-x;
}
.vignette {
  position: absolute;
  z-index: 15;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(110% 95% at 50% 43%, transparent 55%, #17110a25);
}
.progress {
  position: absolute;
  z-index: 25;
  left: 30px;
  right: 30px;
  bottom: 21px;
  height: 1px;
  background: #1715123b;
}
.progress div {
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}
.controls {
  position: absolute;
  z-index: 26;
  right: 30px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}
.controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #eee8ddbb;
  cursor: pointer;
}
.controls span {
  letter-spacing: 0.1em;
}
.enter {
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  border: 0;
  background: #181714;
  color: #fff;
  padding: 16px 20px 16px 25px;
  display: flex;
  gap: 45px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: 0.55s;
}
.enter i {
  font-style: normal;
  font-size: 18px;
}
.entered .enter {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}
.art-modal,
.about {
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: #f4f0e8f7;
  color: var(--ink);
}
dialog::backdrop {
  background: #1714118c;
}
.modal-close {
  position: fixed;
  z-index: 3;
  right: 26px;
  top: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}
.modal-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 6vw;
  padding: 7vh 8vw;
}
.modal-layout figure {
  margin: 0;
  max-height: 86vh;
  display: grid;
  place-items: center;
}
.modal-layout figure img {
  display: block;
  max-width: 100%;
  max-height: 83vh;
  width: auto;
  height: auto;
  box-shadow: 0 40px 80px -35px #231b13b8;
}
.art-modal h2,
.about h2 {
  font:
    400 clamp(48px, 6vw, 88px)/0.9 Instrument Serif,
    serif;
  margin: 18px 0 36px;
}
.art-modal dl {
  border-top: 1px solid var(--line);
  margin: 0;
}
.art-modal dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.art-modal dt {
  color: var(--muted);
}
.art-modal dd {
  margin: 0;
  text-align: right;
}
.art-modal article > p {
  font-size: 16px;
  line-height: 1.75;
  color: #565149;
  margin-top: 30px;
}
.about > div {
  max-width: 930px;
  margin: auto;
  padding: 12vh 8vw;
}
.about h2 {
  font-size: clamp(53px, 7vw, 104px);
}
.about p:not(.eyebrow) {
  max-width: 700px;
  font:
    400 20px/1.75 Instrument Serif,
    serif;
}
.about .note {
  font:
    400 13px/1.7 Manrope,
    sans-serif !important;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.about a {
  display: inline-block;
  margin-top: 22px;
  text-decoration: none;
  border-bottom: 1px solid;
}
.reduced-motion * {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}
@media (max-width: 760px) {
  html,
  body {
    overflow: auto;
  }
  .gallery {
    position: relative;
    min-height: 100vh;
    overflow: visible;
  }
  .topbar {
    position: fixed;
    height: 64px;
  }
  .topbar nav button:nth-child(2),
  .room-status {
    display: none;
  }
  .viewport {
    position: relative;
    inset: auto;
    height: auto;
    overflow: visible;
    cursor: auto;
  }
  .wall-texture {
    position: fixed;
  }
  .track {
    width: 100%;
    height: auto;
    display: block;
    padding: 110px 7vw 100px;
    transform: none !important;
  }
  .intro {
    margin: 0 0 18vh;
  }
  .intro h1 {
    font-size: 18vw;
  }
  .art {
    width: 100%;
    transform: none;
    margin: 0 0 18vh;
  }
  .frame:before,
  .frame:after {
    display: none;
  }
  .art figcaption {
    align-items: start;
  }
  .end-card {
    padding: 0;
    margin-bottom: 80px;
  }
  .floor,
  .reflections,
  .barrier,
  .progress,
  .controls,
  .enter {
    display: none;
  }
  .vignette {
    position: fixed;
  }
  .modal-layout {
    display: block;
    padding: 80px 20px 45px;
  }
  .modal-layout figure img {
    max-height: 62vh;
  }
  .art-modal article {
    padding: 35px 5px;
  }
  .art-modal h2 {
    font-size: 52px;
  }
  .zoom {
    opacity: 1;
    transform: none;
  }
  .about > div {
    padding: 100px 25px;
  }
  .about h2 {
    font-size: 16vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
