/* Exhibit 1178, after Exhibit 1177. The page is the scroll; the sky behind the object is a live 3D scene. */
:root {
  --ex-ink: #0b0f1a;
  --ex-bone: #ece6d9;
  --ex-gold: #f2b27c;
  --ex-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ex-mono: "IBM Plex Mono", ui-monospace, monospace;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ex-ink);
}
.ex-root {
  position: relative;
  color: var(--ex-bone);
  background: var(--ex-ink);
}

.ex-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  touch-action: pan-y;
  cursor: grab;
}
.ex-stage:active {
  cursor: grabbing;
}
.ex-stage__canvas,
.ex-stage__canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.ex-stage__loading {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font-family: var(--ex-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(236, 230, 217, 0.6);
}
.ex-stage__fallback {
  position: absolute;
  inset: 10% 15%;
  width: 70%;
  height: 80%;
  object-fit: contain;
}

/* Scroll sections float over the stage; empty space passes drags to the model. */
.ex-flow {
  position: relative;
  pointer-events: none;
}
.ex-flow > section {
  position: relative;
  z-index: 2;
}
.ex-card {
  pointer-events: auto;
}

/* Hero: the title above the floating object, over the night sky. */
.ex-hero {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: clamp(5rem, 14vh, 9rem) 1.25rem 0;
  text-align: center;
}
.ex-hero__title {
  margin: 0;
  font-family: var(--ex-serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  animation: ex-rise 1.4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.ex-hero__title em {
  font-style: italic;
  color: var(--ex-gold);
}
@keyframes ex-rise {
  from {
    transform: translateY(0.35em);
    letter-spacing: 0.04em;
  }
  to {
    transform: none;
  }
}

/* Sections: one word each, set where the camera is not looking. */
.ex-room {
  min-height: 115svh;
  display: flex;
  padding: 0 clamp(1.25rem, 6vw, 6rem);
}
.ex-room--left {
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 12vh;
}
.ex-room--right {
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 12vh;
}
.ex-room--bottom {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10vh;
}
.ex-tag {
  margin: 0;
  font-family: var(--ex-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Accession card: a catalogue entry */
.ex-room--card {
  align-items: center;
  justify-content: flex-end;
  min-height: 130svh;
}
.ex-card {
  width: min(30rem, 100%);
  padding: 2rem;
  background: var(--ex-bone);
  color: #1b2333;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.ex-card__label {
  margin: 0;
  font-family: var(--ex-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a4a26;
}
.ex-card__title {
  font-family: var(--ex-serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  margin: 0.5rem 0 1.25rem;
}
.ex-specs {
  display: grid;
  margin: 0;
}
.ex-specs div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(27, 35, 51, 0.16);
}
.ex-specs dt {
  font-family: var(--ex-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a6475;
  padding-top: 0.15rem;
}
.ex-specs dd {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .ex-room--left,
  .ex-room--right {
    align-items: flex-end;
    justify-content: center;
    padding: 0 1.25rem 8vh;
  }
  .ex-room--card {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ex-hero__title {
    animation: none;
  }
}

/* Collection navigation: back to the menu, and on to the next exhibit. */
.ex-nav {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1.1rem);
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  z-index: 3;
  font-family: var(--ex-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 230, 217, 0.78);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.ex-nav:hover,
.ex-nav:focus-visible {
  color: var(--ex-bone);
}
.ex-card__next {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(27, 35, 51, 0.16);
  font-family: var(--ex-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1b2333;
  text-decoration: none;
}
.ex-card__next:hover,
.ex-card__next:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
