@import url("./fonts.css");
:root {
  color-scheme: dark;
  --cream: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "DM Sans", sans-serif;
  background: #101010;
  color: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
.entry-hint {
  position: fixed;
  z-index: 5;
  top: max(22px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  transition:
    opacity 0.65s var(--ease),
    visibility 0s 0.65s;
}
.entry-hint svg {
  flex: 0 0 23px;
  width: 23px;
  height: 26px;
}
.entry-hint.dismissed {
  opacity: 0;
  visibility: hidden;
}
.hint-touch {
  display: none;
}
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .hint-pointer {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
}
button {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}
button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 6px;
}
.experience {
  height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.scene-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #101010;
}
.scene {
  width: min(100vw, 179.178svh);
  aspect-ratio: 2048/1143;
  position: relative;
}
.photograph {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}
.scene-shade {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.experience:has(.hotspot.active) .scene-shade {
  opacity: 0;
}
.hotspots {
  position: absolute;
  inset: 0;
}
.hotspot {
  position: absolute;
  pointer-events: none;
  transition: filter 0.4s;
  z-index: 1;
}
.hotspot.active {
  filter: drop-shadow(0 12px 10px #0004);
  z-index: 20;
}
.hotspot .hit-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background: transparent;
  padding: 0;
}
.hotspot .art {
  opacity: 0;
}
.hotspot.active .art {
  opacity: 1;
}
.art {
  width: 100%;
  height: 100%;
  position: relative;
  pointer-events: none;
}
.art-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.art img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
}
.hotspot:has(:focus-visible) {
  filter: drop-shadow(0 0 5px var(--cream));
}
.hotspot .art,
.hotspot .expansion-hit {
  transform-origin: center;
  transition:
    transform 0.52s var(--ease),
    opacity 0.18s;
}
.hotspot .expansion-hit {
  pointer-events: none;
}
.hotspot.active .art,
.hotspot.active .expansion-hit {
  transform: translateY(-3px) scale(1.055);
}
.hotspot.active .expansion-hit {
  pointer-events: auto;
}
dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--cream);
  overflow: hidden;
  outline: none;
}
dialog::backdrop {
  background: transparent;
}
.viewer-shade {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.34);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
dialog.ready .viewer-shade {
  opacity: 1;
}
.close-button {
  position: absolute;
  right: 28px;
  top: 25px;
  z-index: 4;
  background: none;
  padding: 0;
  opacity: 0;
  transition: opacity 0.35s;
}
.ready .close-button,
.ready .item-rail {
  opacity: 1;
}
.close-icon {
  width: 35px;
  height: 35px;
  border: 1px solid #f4f0e52b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
}
.close-button:hover .close-icon {
  background: #f4f0e516;
}
.gallery {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  outline: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.item-section {
  height: 100%;
  min-height: 430px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 6%;
  padding: 85px max(90px, 8vw);
  overflow: hidden;
}
.art-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  align-self: stretch;
  position: relative;
}
.detail-art {
  height: auto;
  aspect-ratio: var(--aspect);
  width: min(100%, var(--art-width));
  filter: drop-shadow(0 20px 24px #0004);
  z-index: 1;
  flex: 0 0 auto;
}
.item-copy {
  max-width: 400px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.25s,
    transform 0.325s var(--ease);
}
.ready .item-copy {
  opacity: 1;
  transform: none;
}
.item-copy h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.item-description {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  text-wrap: pretty;
}
.item-rail {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.35s;
}
.rail-button {
  width: 24px;
  height: 20px;
  background: none;
  padding: 0;
  display: grid;
  place-items: center;
}
.rail-button::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 3px;
  background: #eff1e83d;
  transition:
    height 0.3s,
    background 0.3s;
}
.rail-button[aria-current="true"]::after {
  height: 15px;
  background: var(--cream);
}
.rail-button:hover::after {
  background: var(--cream);
}
.flying-art {
  position: fixed;
  z-index: 10;
  transform-origin: top left;
  pointer-events: none;
  filter: drop-shadow(0 16px 18px #0004);
}
.announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.closing .item-copy,
.closing .close-button,
.closing .item-rail {
  opacity: 0;
  transition-duration: 0.21s;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}
.closing .gallery {
  pointer-events: none;
  overflow-y: hidden;
}
@media (max-width: 760px) {
  .scene-frame {
    display: block;
    place-items: start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }
  .scene-frame::-webkit-scrollbar {
    display: none;
  }
  .scene {
    width: 179.178svh;
    height: 100%;
  }
  .close-button {
    top: 18px;
    right: 18px;
  }
  .item-section {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(110px, 1.1fr) minmax(0, 0.9fr);
    gap: 30px;
    padding: 75px 38px 60px;
    min-height: 540px;
  }
  .art-stage {
    max-height: 360px;
  }
  .item-copy {
    align-self: center;
    max-width: 450px;
    margin: auto;
  }
  .item-copy h2 {
    font-size: 38px;
    margin-bottom: 19px;
  }
  .item-description {
    font-size: 12px;
    line-height: 1.8;
  }
  .item-rail {
    right: 6px;
  }
}
@media (max-height: 650px) and (min-width: 761px) {
  .item-section {
    padding-top: 65px;
    padding-bottom: 65px;
    min-height: 400px;
  }
  .item-copy h2 {
    font-size: 40px;
  }
  .item-description {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .hotspot.active .art,
  .hotspot.active .expansion-hit {
    transform: none;
  }
  .gallery {
    scroll-snap-type: none;
  }
  .item-copy {
    transform: none;
  }
}

.item-description a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ffffff40;
}
.item-description a:hover {
  border-color: #fff;
}
.source-link {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  color: #ffffffa6;
  text-decoration: none;
  font-size: 17px;
}
.source-link:hover {
  color: #fff;
}
.product-art img {
  object-fit: contain;
}
.photo-credit {
  font-size: 10px;
  line-height: 1.5;
  color: #fffc;
  margin-top: 15px;
}
.photo-credit a {
  color: inherit;
}
