/* The vault (3D): earlier collections on pull-out racks */
body.vault { background: #08090a; color: #fff; overflow: hidden; height: 100vh; height: 100svh; overscroll-behavior: none; }
.v-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: default; }
.v-loading { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; background: #08090a; transition: opacity .6s ease, visibility .6s; }
.v-loading.done { opacity: 0; visibility: hidden; }
.v-loading p { font-size: clamp(2rem, 4vw, 3rem); font-style: italic; margin: 0; }

.v-intro {
  position: fixed; left: var(--gutter); bottom: clamp(24px, 6vh, 64px); z-index: 10; max-width: 560px; pointer-events: none;
  text-shadow: 0 2px 24px rgba(0,0,0,.8); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.1,1);
  animation: v-in 1.1s cubic-bezier(.2,.7,.1,1) 2s both;
}
@keyframes v-in { from { opacity: 0; transform: translateY(18px); } }
.v-intro__title { font-size: clamp(3.2rem, 7vw, 6.2rem); font-style: italic; margin: 0 0 8px; }
.v-intro__lead { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4; margin: 0; }
.is-open .v-intro { opacity: 0; transform: translateY(14px); animation: none; }

/* bay picker: numbers down the right edge, names on hover or focus */
.v-bays { position: fixed; z-index: 12; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.v-bay {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; flex-direction: row-reverse;
  min-height: 44px; padding: 2px 4px; color: rgba(255,255,255,.62); transition: color .2s;
}
.v-bay__n { font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 70; width: 2.2ch; text-align: right; }
.v-bay__name { font-size: 1.125rem; font-weight: 500; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; white-space: nowrap; text-shadow: 0 1px 12px #000; }
.v-bay:hover, .v-bay:focus-visible, .v-bay[aria-current="true"] { color: #fff; }
.v-bay:hover .v-bay__name, .v-bay:focus-visible .v-bay__name, .v-bay[aria-current="true"] .v-bay__name { opacity: 1; transform: none; }
.v-bay[aria-current="true"] .v-bay__n { color: var(--gold); }
.v-bay:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.v-panel {
  position: fixed; z-index: 11; left: var(--gutter); bottom: clamp(20px, 4vh, 44px); width: min(460px, calc(100vw - 2 * var(--gutter)));
  opacity: 0; transform: translateY(18px); pointer-events: none; visibility: hidden;
  transition: opacity .45s ease .25s, transform .6s cubic-bezier(.2,.7,.1,1) .25s, visibility 0s .7s;
  background: #fbfbf9; color: #111; padding: 22px 24px 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8);
}
.v-panel .v-btn { border-color: #111; color: #111; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.v-panel .v-btn:hover, .v-panel .v-btn--solid { background: #111; color: #fff; }
.v-panel .v-btn--solid:hover { background: var(--teal); border-color: var(--teal); }
.v-panel .v-btn--text { border-color: transparent; }
.v-panel .v-btn--text:hover { background: none; color: var(--teal); }
.is-open .v-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: .25s, .25s, 0s; }
.v-panel__name { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 4px; }
.v-panel__when { margin: 0 0 8px; color: #555; font-weight: 600; }
.v-panel__story { margin: 0 0 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v-panel__count { margin: 0; font-weight: 700; font-variation-settings: "wdth" 75; }
.v-panel__cap { margin: 2px 0 16px; font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.25; min-height: 2.5em; }
.v-panel__btns, .v-table__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v-btn {
  min-width: 52px; min-height: 52px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.6); background: rgba(10,10,10,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; padding: 0 20px; font-weight: 600;
  display: inline-grid; place-items: center; text-shadow: none; transition: background .2s, color .2s;
}
.v-btn:hover { background: #fff; color: #000; border-color: #fff; }
.v-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v-btn--solid { background: #fff; color: #000; border-color: #fff; }
.v-btn--solid:hover { background: var(--gold); border-color: var(--gold); }
.v-btn--text { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 5px; padding: 0 10px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.v-btn--text:hover { background: none; color: var(--gold); }

.v-next { position: fixed; z-index: 10; right: var(--gutter); bottom: clamp(20px, 4vh, 44px); margin: 0; font-weight: 600; display: flex; align-items: center; gap: 14px; }
.v-next a { text-underline-offset: 5px; text-shadow: 0 1px 12px #000; }

/* a piece taken off the rack, on the viewing table */
.v-table { border: 0; padding: 0; background: #f4f2ed; color: #111; width: min(1200px, 94vw); max-height: 92vh; max-height: 92svh; box-shadow: 0 60px 120px rgba(0,0,0,.7); }
.v-table::backdrop { background: rgba(4,4,5,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.v-table[open] { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); animation: v-lift .55s cubic-bezier(.2,.7,.1,1); }
@keyframes v-lift { from { opacity: 0; transform: translateX(-6%) rotate(-1.5deg) scale(.9); } }
.v-table__img { background: #e3e0d9; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); min-height: 0; }
.v-table__img img { max-width: 100%; max-height: calc(92svh - 80px); width: auto; height: auto; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
.v-table__text { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; }
.v-table__code { margin: 0 0 6px; font-weight: 700; font-variation-settings: "wdth" 75; }
.v-table__name { margin: 0 0 12px; font-size: clamp(2rem, 3vw, 2.8rem); }
.v-table__cap { margin: 0 0 24px; font-size: 1.25rem; line-height: 1.45; }
.v-table .v-btn { border-color: #111; color: #111; background: none; }
.v-table .v-btn:hover, .v-table .v-btn--solid { background: #111; color: #fff; }
.v-table .v-btn--solid:hover { background: var(--teal); border-color: var(--teal); }

.v-plain { position: relative; z-index: 2; padding: 110px var(--gutter) 80px; }
.no-webgl body.vault { overflow: auto; height: auto; }
.no-webgl .v-canvas, .no-webgl .v-bays, .no-webgl .v-panel, .no-webgl .v-intro { display: none; }
.v-plain__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 18px 0 60px; }
.v-plain__grid figure { margin: 0; } .v-plain__grid img { width: 100%; height: auto; }

@media (max-width: 760px) {
  .v-bays { top: 76px; transform: none; right: 10px; gap: 0; }
  .v-bay { min-height: 40px; } .v-bay__name { display: none; }
  .v-panel { padding: 16px 18px; } .v-panel__story, .v-panel__when { display: none; }
  .v-panel__cap { font-size: 1.3rem; min-height: 0; }
  .v-table[open] { grid-template-columns: 1fr; overflow: auto; }
  .v-table__img img { max-height: 52svh; }
  .is-open .v-next { display: none; }
}

/* phone: the intro sits clear of the Sound and Meet André links under it */
@media (max-width: 760px) { .v-intro { bottom: 78px; right: var(--gutter); } }

/* ---------- Phone: the rack card is one line of glass; raise it for the caption and the rack buttons ---------- */
.v-panel__more { display: none; }
@media (max-width: 760px) {
  .v-panel {
    left: 10px; right: 10px; width: auto; bottom: 12px; padding: 6px 6px 6px 18px; color: #fff;
    background: rgba(16,16,16,.56); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.26); border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px -16px rgba(0,0,0,.7);
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 6px; align-items: center;
    grid-template-areas: "name prev next more" "count prev next more" "cap cap cap cap" "pull pull pull pull" "back back back back";
  }
  .v-panel__btns { display: contents; }
  .v-panel__name { grid-area: name; margin: 4px 0 0; font-size: 1.35rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v-panel__count { grid-area: count; margin: 0 0 4px; font-size: 1.125rem; font-weight: 600; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #roll-prev { grid-area: prev; } #roll-next { grid-area: next; }
  .v-panel .v-btn { border-color: rgba(255,255,255,.34); color: #fff; background: rgba(255,255,255,.12); min-width: 44px; height: 44px; padding: 0 10px; }
  .v-panel__more { grid-area: more; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
  .v-panel__more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: rotate .35s cubic-bezier(.2,.7,.1,1); }
  .v-panel.is-raised .v-panel__more svg { rotate: 180deg; }
  .v-panel__cap { grid-area: cap; margin: 8px 12px 12px 0; font-size: 1.3rem; min-height: 0; }
  .v-panel #pull { grid-area: pull; margin: 0 12px 0 0; background: #fff; color: #000; border-color: #fff; height: 48px; }
  .v-panel #back { grid-area: back; margin: 4px 12px 8px 0; color: #fff; text-decoration: underline; background: none; border-color: transparent; }
  .v-panel:not(.is-raised) .v-panel__cap, .v-panel:not(.is-raised) #pull, .v-panel:not(.is-raised) #back { display: none; }
}
/* phone, rack open: the bay numbers step aside so nothing sits on the art (push the rack back to pick another bay) */
@media (max-width: 760px) { .is-open .v-bays { opacity: 0; pointer-events: none; transition: opacity .3s; } }
