:root {
  color-scheme: dark;
  --night: #09152a;
  --deep: #172c4b;
  --steel: #315781;
  --soft: #729ac7;
  --ice: #d8e8f8;
  --gold: #d9b985;
  --ivory: #f5f2e9;
  --hair: rgba(206,217,227,.2);
  font-family: "Helvetica Neue",Arial,sans-serif;
  background: #080f1b;
  color: var(--ivory);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 76px minmax(550px,1fr) 65px;
}

button,a {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

button:disabled {
  cursor: default;
  opacity: .35;
}

a {
  text-decoration: none;
}

button:focus-visible,a:focus-visible,[tabindex]:focus-visible {
  outline: 2px solid #b5d5ff;
  outline-offset: 4px;
}

button:active:not(:disabled) {
  translate: 0 1px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

header,footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px,4vw,72px);
  background: #0b1422;
}

header {
  border-bottom: 1px solid var(--hair);
}

.brand,.instagram,.utility,.footer-brand,.ornament,.outline,.primary,.scene-caption,.scene-count,.gallery-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 16px;
  padding: 0;
  font: 23px Georgia,serif;
  letter-spacing: .01em;
}

.diamond-brand {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  color: var(--gold);
}

.diamond-brand span {
  transform: rotate(-45deg);
  font: italic 14px Georgia,serif;
  letter-spacing: -2.5px;
  padding-right: 2px;
}

nav {
  display: flex;
  align-items: stretch;
  gap: 34px;
  position: absolute;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
}

nav button,.instagram,.utility button {
  font-size: 12px;
  letter-spacing: .045em;
}

nav button {
  position: relative;
  color: #bdc6d0;
  padding: 0 2px;
}

nav button[aria-current],nav button:hover {
  color: var(--ivory);
}

nav button[aria-current]:after {
  content: '';
  position: absolute;
  bottom: 17px;
  height: 1px;
  left: 20%;
  right: 20%;
  background: var(--gold);
}

.instagram {
  gap: 10px;
  color: #d2d8e0;
}

.instagram svg {
  width: 16px;
}

.instagram .tiny {
  width: 11px;
}

.instagram:hover,.utility button:hover,.text-link:hover {
  color: var(--gold);
}

main {
  position: relative;
  display: grid;
  min-width: 0;
}

.scene {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.scene[hidden] {
  display: none!important;
}

.hero,.editorial {
  display: grid;
  place-items: center;
  isolation: isolate;
  text-align: center;
}

.architecture,.mist {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.architecture {
  background: #101b2a url(assets/corridor.webp) center 54%/cover;
  transform-origin: 50% 57%;
}

.mist {
  background: linear-gradient(180deg,rgba(9,21,42,.15),transparent 45%,rgba(4,12,24,.72)),radial-gradient(ellipse 35% 66% at center,rgba(3,11,22,.83),rgba(4,13,26,.49) 65%,transparent 100%);
  box-shadow: inset 0 0 0 100vmax rgba(9,21,42,.14);
}

.invitation {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 45px 10px 65px;
}

.fox-mount {
  width: 90px;
  height: 76px;
  color: var(--gold);
  margin: 0 auto 22px;
}

.fox-mount svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.25;
  filter: drop-shadow(0 1px 4px #070e19);
}

.fox-mount path {
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
  animation: trace 2.1s cubic-bezier(.34,.1,.32,1) both;
}

@keyframes trace {
  from {
    stroke-dashoffset: 260;
    color: #9bb7d5;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.eyebrow,.scene-caption,.scene-count,.footer-brand,.primary,.outline {
  font: 500 10px/1.5 Arial,sans-serif;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.eyebrow {
  color: var(--gold);
  margin: 0;
}

.ornament {
  gap: 15px;
  justify-content: center;
}

.ornament i {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}

h1,h2,.signature,.motto {
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(58px,7.9vw,138px);
  line-height: 1.05;
  letter-spacing: .023em;
  margin: 18px 0 3px;
  text-shadow: 0 3px 20px #09101b55;
}

.signature {
  font-style: italic;
  color: #dbc7a7;
  font-size: clamp(22px,2.05vw,34px);
  margin: 0;
  line-height: 1.5;
}

.separator {
  width: 85px;
  height: 10px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 5px 1fr;
  gap: 8px;
  margin: 20px auto 12px;
}

.separator:before,.separator:after {
  content: '';
  height: 1px;
  background: #b9a58899;
}

.separator b,.small-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.motto {
  margin: 0 0 27px;
  font-size: clamp(16px,1.5vw,23px);
  font-style: italic;
  color: #e0e1df;
}

.primary,.outline {
  gap: 23px;
  padding: 18px 25px;
  min-height: 48px;
  border-radius: 3px;
  letter-spacing: .15em;
  font-weight: 600;
  font-size: 10px;
}

.primary {
  background: #e6d2ad;
  color: #152031;
  border: 1px solid #eddfc6;
  box-shadow: 0 4px 24px #070b1499;
  transition: background .25s,box-shadow .25s;
}

.primary svg {
  width: 18px;
  height: 15px;
  transition: transform .3s;
}

.primary:hover {
  background: #f3e4ca;
  box-shadow: 0 4px 26px #b99b642b;
}

.primary:hover svg {
  transform: translateX(4px);
}

.scene-caption,.scene-count {
  position: absolute;
  bottom: 28px;
  font-size: 9px;
  color: #e1e1dd;
  gap: 11px;
}

.scene-caption {
  left: 4vw;
}

.scene-count {
  right: 4vw;
  letter-spacing: .13em;
  color: #b9bdc3;
}

.scene-count i {
  height: 1px;
  width: 40px;
  background: #b5a286;
}

.scene-count b {
  font-weight: 400;
  color: var(--gold);
}

.statusdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9ba85;
  box-shadow: 0 0 9px #b78c52aa;
}

footer {
  border-top: 1px solid var(--hair);
  background: #0a1320;
}

.footer-brand {
  gap: 13px;
  color: #acb9c6;
  font-size: 9px;
}

.small-diamond {
  background: none;
  border: 1px solid var(--gold);
  width: 6px;
  height: 6px;
}

.utility {
  gap: 17px;
}

.utility button {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #cad2db;
  font-size: 11px;
  padding: 0;
}


.utility svg {
  width: 16px;
}

/* Both room faces pivot around the viewer, half a viewport from each wall. */
main.travelling {
  perspective: 50vw;
  overflow: hidden;
}
.travelling #entrance, .travelling #gallery {
  position: absolute;
  inset: 0;
  transform-origin: center center 50vw;
  backface-visibility: hidden;
  pointer-events: none;
  animation: corridor-turn 3.1s both;
}
.travelling #gallery {
  animation-name: gallery-turn;
}
@keyframes corridor-turn {
  0%, 40% { transform: rotateY(0deg); }
  70% { transform: rotateY(45deg) scaleY(1.42); }
  100% { transform: rotateY(90deg); }
}
@keyframes gallery-turn {
  0%, 40% { transform: rotateY(-90deg); }
  70% { transform: rotateY(-45deg) scaleY(1.42); }
  100% { transform: rotateY(0deg); }
}
.travelling #entrance, .travelling #gallery {
  animation-timing-function: linear;
}
.travelling .architecture {
  animation: corridor-walk 3.1s ease-out both;
}
@keyframes corridor-walk {
  0% { transform: scale(1); }
  52% { transform: scale(2.25); }
  100% { transform: scale(2.48); }
}
.travelling .invitation,.travelling .scene-caption,.travelling .scene-count {
  opacity: 0;
  transform: translateY(-8px);
  transition: .36s;
}
.travelling .mist {
  opacity: .3;
  transition: opacity 1.2s;
}
.travelling .gallery-heading,.travelling .gallery-controls {
  animation: reveal-labels 3.1s both;
}
@keyframes reveal-labels {
  0%, 78% { opacity: 0; }
  100% { opacity: 1; }
}
.gallery h2,.editorial h2,.detail-copy h2 {
  font-weight: 400;
  font-size: clamp(35px,4vw,64px);
  margin: 8px 0;
}

.gallery {
  background: #121923;
  --room: url(assets/museum-wall.webp);
}

.rail {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

/* Each bay carries its own stonework, lighting, frame and floor as one room. */
.bay {
  flex: 0 0 100%;
  position: relative;
  isolation: isolate;
  container-type: size;
  scroll-snap-align: center;
  background: var(--room) center / 100% 100% no-repeat;
}

.bay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 30% 45% at 50% 32%, #f7c68c30, transparent 96%);
  opacity: var(--prelight,.12);
  transition: opacity .9s ease;
}

.bay.active::before { opacity: 1; }

.lamp {
  position: absolute;
  top: 10%;
  left: 50%;
  width: clamp(44px,7cqw,106px);
  height: clamp(4px,.8cqh,8px);
  transform: translateX(-50%);
  border-radius: 5px;
  background: linear-gradient(#685139,#d1b281 35%,#665039 66%,#302418);
  box-shadow: 0 3px 5px #09070599;
}

.lamp::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 6px;
  background: #8a7456;
  left: 50%;
  bottom: 100%;
}

.lamp::after {
  content: '';
  position: absolute;
  inset: 70% 4% 0;
  background: #ffe4b4;
  opacity: .3;
  transition: opacity .9s, box-shadow .9s;
}

.active .lamp::after {
  opacity: .9;
  box-shadow: 0 3px 9px 2px #e6bb7b70;
  animation: awaken .85s ease-out;
}

@keyframes awaken {
  0% { opacity: .3; }
  40% { opacity: .8; }
  53% { opacity: .68; }
  100% { opacity: .9; }
}

.frame {
  position: absolute;
  left: 50%;
  top: 39%;
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  width: min(55cqw,calc(48cqh * var(--art-ratio)));
  aspect-ratio: var(--art-ratio);
  padding: clamp(6px,1.2cqh,15px);
  border: clamp(11px,2.7cqh,26px) solid #856746;
  border-image: url(assets/gilt-frame.webp) 54 49 65 81 / 1 stretch;
  background: #d7cab2;
  box-shadow: 2px 6px 10px #040406bb, 8px 17px 16px #08090977;
  transition: box-shadow .8s;
}

.frame:active:not(:disabled) { translate: none; }
.frame:hover { box-shadow: 3px 7px 14px #040406dd, 8px 18px 21px #08090999; }
.frame img,.detail-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
}
.placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  color: #68533a;
  background: radial-gradient(ellipse at 40% 25%,#eee6d4,#d7cab2);
  box-shadow: inset 0 0 0 1px #a39579, inset 0 2px 7px #967e5e40;
}
.placeholder::before {
  content: '';
  width: clamp(36px,5vw,64px);
  aspect-ratio: 104 / 86;
  background: #8a7153;
  mask: url(assets/fox.svg) center / contain no-repeat;
}
.placeholder small {
  font: italic clamp(13px,1.2vw,18px) Georgia,serif;
}
.caption {
  position: absolute;
  left: 50%;
  top: 78%;
  transform: translate(-50%,-50%);
  text-align: center;
  width: max-content;
  max-width: 76%;
  padding: 8px 19px;
  border: 1px solid #8d75504d;
  background: #151717ef;
  box-shadow: 1px 3px 5px #0008;
}
.caption h3 {
  font: 400 clamp(16px,1.55vw,24px)/1.15 Georgia,serif;
  margin: 0 0 4px;
  color: #e6d8be;
}
.caption p,.metadata,.note {
  font-size: 12px;
  color: #c4cbd0;
  margin: 0;
}
.caption p { font-size: 10px; letter-spacing: .06em; color: #c7bca9; }
.gallery-heading,.gallery-controls {
  position: absolute;
  bottom: max(10px,2.4%);
  z-index: 1;
  text-shadow: 0 1px 6px #000;
}
.gallery-heading { left: 4vw; pointer-events: none; }
.gallery-heading .eyebrow { font-size: 8px; }
.gallery .gallery-heading h2 { font-size: clamp(20px,2.2vw,32px); margin: 2px 0 0; }
.gallery-controls { right: 4vw; gap: 15px; align-items: center; }
.gallery-controls span { font-size: 11px; letter-spacing: .16em; }
.gallery-controls .round { background: #0b1019bd; }
@media (max-aspect-ratio: 4/5) {
  .gallery { --room: url(assets/museum-wall-mobile.webp); }
  .frame { width: min(58cqw,calc(44cqh * var(--art-ratio))); top: 40%; }
  .lamp { top: 13%; }
}
.round {
  width: 44px;
  height: 44px;
  border: 1px solid #bfc6ce66;
  border-radius: 50%;
  font-size: 20px;
}

.round:hover:not(:disabled),.outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.editorial {
  background: linear-gradient(90deg,#09152ae8,#09152aca),url(assets/corridor.webp) center/cover;
}

.artist-panel {
  padding: 50px 24px;
  max-width: 670px;
}

.artist-panel>p:not([class]),#artist-text p {
  font: 18px/1.7 Georgia,serif;
  color: #dae0e4;
}

.outline {
  display: inline-flex;
  border: 1px solid #bfaa88;
  margin: 15px 0;
  background: #0d1928;
}

.outline svg {
  width: 15px;
}

.text-link {
  display: block;
  margin: 0 auto;
  padding: 14px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

dialog {
  padding: clamp(25px,4vw,65px);
  width: min(880px,94vw);
  max-height: 91svh;
  border: 1px solid #536172;
  background: #101e2e;
  color: var(--ivory);
  text-align: center;
  border-radius: 3px;
}

dialog[open] {
  animation: enlarge .38s cubic-bezier(.22,.61,.36,1);
}

@keyframes enlarge {
  from {
    opacity: 0;
    transform: scale(.93);
  }
}

dialog::backdrop {
  background: #020711df;
  backdrop-filter: blur(6px);
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0d1723;
  z-index: 2;
}

.detail-art {
  height: min(48svh,450px);
  width: min(100%,600px);
  margin: 0 auto 20px;
}

.detail-art .placeholder {
  width: min(70%,320px);
  margin: auto;
}

.detail-copy h2 {
  font-size: 30px;
}

.detail-copy .note {
  line-height: 1.6;
  margin-top: 10px;
}

.fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: #182c43;
  font-size: 14px;
  background: #d9d1bf;
  padding: 15px;
}

@media(min-height:800px) {
  .invitation {
    padding-bottom: 8vh;
  }
  .fox-mount {
    width: 99px;
    height: 82px;
    margin-bottom: 26px;
  }
  .separator {
    margin-top: 24px;
    margin-bottom: 18px;
  }
  .motto {
    margin-bottom: 34px;
  }
}

@media(max-width:650px) {
  body {
    grid-template-rows: 62px minmax(520px,1fr) 57px;
  }
  header,footer {
    padding-left: 19px;
    padding-right: 19px;
  }
  .brand {
    font-size: 17px;
    gap: 12px;
  }
  .diamond-brand {
    width: 20px;
    height: 20px;
  }
  .diamond-brand span {
    font-size: 10px;
  }
  .instagram {
    display: none;
  }
  nav {
    position: static;
    transform: none;
    gap: 16px;
  }
  nav button {
    font-size: 11px;
    letter-spacing: 0;
  }
  nav button[aria-current]:after {
    bottom: 12px;
  }
  .architecture {
    background-position: 50% center;
  }
  .mist {
    background: linear-gradient(0deg,#030b18b3,transparent 24%,#09152a20),radial-gradient(ellipse at center,#050f1bbb,transparent 80%);
  }
  .invitation {
    padding: 35px 8px 64px;
  }
  h1 {
    font-size: clamp(40px,10.8vw,68px);
    margin: 20px 0 5px;
  }
  .fox-mount {
    width: 76px;
    height: 66px;
    margin-bottom: 23px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: .17em;
  }
  .ornament {
    gap: 12px;
  }
  .ornament i {
    width: 19px;
  }
  .signature {
    font-size: 24px;
  }
  .motto {
    font-size: 17px;
  }
  .scene-caption,.scene-count {
    bottom: 19px;
    font-size: 8px;
  }
  .footer-brand {
    font-size: 8px;
    letter-spacing: .12em;
    gap: 9px;
  }
  .utility {
    gap: 9px;
  }
  .utility button {
    font-size: 10px;
  }
  .artist-panel {
    padding: 36px 22px;
  }
  footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
    scroll-behavior: auto!important;
  }
}

[hidden] {
  display: none!important;
}

#identity:focus,h2[tabindex]:focus {
  outline: none;
}

/* Independent architectural planes travel past the camera during entry. */
.approach {
  position: absolute;
  inset: 0;
  perspective: 75vmin;
  perspective-origin: 50% 56%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.travelling .approach {
  opacity: 1;
}

.door {
  position: absolute;
  left: 25%;
  top: 6%;
  width: 50%;
  height: 100%;
  border: 2.3vmin solid #0b1726;
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  box-shadow: inset 1px 2px 2px #bb976f77,0 0 0 2px #0e1722;
  opacity: 0;
}

.travelling .door {
  animation: portal 2.4s cubic-bezier(.5,.02,.8,1) both;
}

.travelling .far {
  animation-delay: .3s;
}

@keyframes portal {
  0% {
    transform: translateZ(-140vmin);
    opacity: 0;
  }
  24% {
    opacity: .55;
  }
  84% {
    opacity: .9;
  }
  100% {
    transform: translateZ(72vmin);
    opacity: 0;
  }
}

.bay:not(.active):before {
  opacity: var(--prelight,.12);
}

.active .caption p {
  animation: caption-in .65s .12s both;
}

@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media(max-width:360px) {
  header,footer {
    padding-inline: 13px;
  }
  .brand {
    gap: 9px;
    font-size: 16px;
  }
  nav {
    gap: 11px;
  }
}

