/* ==========================================================================
   SHOP — THE ARCHIVE (js/shop/shop.js, config js/config/shop.js)
   off-white / black / dark grey, red only for what you can take
   The scene is the background's own 1672 × 941 frame, scaled as one piece:
   --sw is its width, --u one background pixel (labels are sized in --u).
   ========================================================================== */
.shop { position: fixed; inset: 0; z-index: 30; overflow: hidden; color: var(--offwhite); background: #050505;
  font-family: var(--font-grotesk); opacity: 0; transition: opacity .4s ease; }
.shop[hidden] { display: none; }
.shop.is-open { opacity: 1; }
body.in-shop .brand { top: clamp(22px, 5vh, 56px); }
body.shop-viewing .brand { opacity: 0 !important; pointer-events: none; }

.shop__view { position: absolute; inset: 0; overflow: hidden; }
/* 16:9, fitted to the screen; it may overflow by 6% at most, so nothing important is ever cut */
.shop__scene { --sw: min(max(100vw, 177.78vh), calc(min(100vw, 177.78vh) * 1.06)); --u: calc(var(--sw) / 1672);
  position: absolute; left: 50%; top: 50%; width: var(--sw); height: calc(var(--sw) * 941 / 1672); transform: translate(-50%, -50%); }
.shop__layer { position: absolute; inset: 0; will-change: transform; }
.shop__bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none;
  opacity: 0; transition: opacity .4s ease; }
.shop.is-open .shop__bg { opacity: 1; }
.shop__vignette { position: absolute; inset: -1px; pointer-events: none;
  background: linear-gradient(to bottom, #050505 0, rgba(5,5,5,0) 6%, rgba(5,5,5,0) 95%, #050505 100%),
              linear-gradient(to right, #050505 0, rgba(5,5,5,0) 3%, rgba(5,5,5,0) 97%, #050505 100%); }
.shop__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ALIX ASTOR on the crate (the lid is drawn: the background shows the crate's top edge-on) */
.shop__lid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.shop.is-open .shop__lid { opacity: 1; }
.shop__alix, .shop__seat { position: absolute; opacity: 0; transition: opacity .5s ease; }
.shop__alix { display: block; }
.shop__seat { background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.shop.is-open .shop__alix, .shop.is-open .shop__seat { opacity: 1; transition-delay: .7s; }

/* the spotlight over ALIX (config: spot) — gradients only, no filters */
.shop__beam, .shop__pool, .shop__spill, .shop__lamp, .shop__motes { position: absolute; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.shop__beam { background: conic-gradient(from 0deg at 50% 0%, rgba(255,248,236,0) 0 157deg, rgba(255,248,236,.11) 168deg,
    rgba(255,248,236,.17) 180deg, rgba(255,248,236,.11) 192deg, rgba(255,248,236,0) 203deg 360deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 55%, rgba(0,0,0,.35) 100%); }
.shop__pool { background: radial-gradient(closest-side, rgba(255,248,236,.26), rgba(255,248,236,.09) 60%, rgba(255,248,236,0)); }
.shop__spill { background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255,248,236,.14), rgba(255,248,236,0) 72%); }
.shop__lamp { inset: 0; width: 100%; height: 100%; overflow: visible; }
.shop__motes { inset: 0; }
.shop__mote { position: absolute; width: max(1.5px, calc(var(--u) * 2.2)); height: max(1.5px, calc(var(--u) * 2.2)); border-radius: 50%;
  background: rgba(255,248,236,.8); opacity: .2; animation: shop-mote var(--d) ease-in-out var(--o) infinite alternate; }
@keyframes shop-mote { from { transform: translate3d(0, 0, 0); opacity: .12; }
  50% { opacity: .55; } to { transform: translate3d(calc(var(--dx) * var(--u)), calc(var(--u) * -26), 0); opacity: .15; } }
.shop.is-open .shop__beam, .shop.is-open .shop__pool, .shop.is-open .shop__spill,
.shop.is-open .shop__lamp, .shop.is-open .shop__motes { opacity: 1; transition-delay: .55s; }
.shop.is-open .shop__beam--haze { opacity: .35; }

/* ---------- titles + filters (the front layer) ---------- */
.shop__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.shop__head { position: absolute; left: clamp(20px, 4vw, 64px); top: clamp(22px, 5vh, 56px); }
.shop__head > * { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s var(--ease-out); }
.shop.is-open .shop__title { opacity: 1; transform: none; transition-delay: .3s; }
.shop.is-open .shop__kicker, .shop.is-open .shop__line { opacity: 1; transform: none; transition-delay: .5s; }
.shop__title { margin: 0; font: 400 clamp(52px, 6.4vw, 116px)/.84 var(--font-display); letter-spacing: .02em; outline: none; }
.shop__kicker { margin: 14px 0 0; font: 600 clamp(13px, 1.15vw, 19px)/1 var(--font-grotesk); letter-spacing: .32em; }
.shop__line { margin: 10px 0 0; font: 500 var(--fs-meta)/1 var(--font-grotesk); letter-spacing: .32em; color: var(--grey); }
.shop__line::after { content: ''; display: block; width: 56px; height: 2px; margin-top: 14px; background: var(--red); }

.shop__nav { position: absolute; right: clamp(16px, 3.2vw, 40px); top: calc(clamp(22px, 5vh, 56px) + clamp(40px, 4vw, 60px)); text-align: right;
  opacity: 0; transition: opacity .5s ease; }
.shop.is-open .shop__nav { opacity: 1; transition-delay: .5s; }
.shop__nav ul { display: flex; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.shop__nav li + li::before { content: '/'; padding: 0 clamp(12px, 1.6vw, 26px); color: rgba(241,237,228,.35);
  font: 500 clamp(11px, .82vw, 13px)/1 var(--font-grotesk); }
.shop__nav button { position: relative; padding: 8px 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  font: 500 clamp(11px, .82vw, 13px)/1 var(--font-grotesk); letter-spacing: .3em; margin-right: -.3em; color: rgba(241,237,228,.66);
  transition: color .25s ease; }
.shop__nav button::after { content: ''; position: absolute; left: 0; right: .3em; bottom: 2px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.shop__nav button:hover, .shop__nav button:focus-visible { color: var(--offwhite); outline: none; }
.shop__nav button:focus-visible::after { transform: scaleX(1); background: var(--offwhite); }
.shop__nav button[aria-pressed="true"] { color: var(--offwhite); }
.shop__nav button[aria-pressed="true"]::after { transform: scaleX(1); background: var(--red); }
.shop__note { margin: 8px 0 0; min-height: 1em; font: 500 11px/1 var(--font-grotesk); letter-spacing: .24em; text-transform: uppercase;
  color: var(--grey); opacity: 0; transition: opacity .3s ease; }
.shop__note.is-on { opacity: 1; }

/* ---------- the objects in their niches ---------- */
.exhibit { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.shop.is-open .exhibit { opacity: 1; transition-delay: calc(.9s + var(--k) * .08s); }
.shop.is-settled .exhibit { transition-delay: 0s; transition-duration: .35s; }
/* filtered out: the object and its label fade, the plinth and the glass stay */
.exhibit__object, .exhibit__label { transition: opacity .35s ease; }
.shop .exhibit[inert] .exhibit__object, .shop .exhibit[inert] .exhibit__label { opacity: .14; }
.shop .exhibit[inert] .exhibit__light { opacity: .12; }
.exhibit__stand { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.exhibit__light { position: absolute; pointer-events: none; opacity: .5; transition: opacity .45s ease;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255,248,236,.16), rgba(255,248,236,.05) 55%, rgba(255,248,236,0) 80%); }
.exhibit__object { position: absolute; display: flex; justify-content: center; align-items: center; padding: 0; border: 0; background: none;
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.exhibit__object.is-bottom { align-items: flex-end; }
.exhibit__object img { display: block; max-width: 100%; max-height: 100%; user-select: none;
  transition: transform .45s var(--ease-out); transform-origin: 50% 40%; }
.exhibit__object.is-bottom img { transform-origin: 50% 100%; }

.exhibit__label { position: absolute; pointer-events: auto; white-space: nowrap; }
.exhibit__label p { margin: 0; }
.exhibit__no { font: 500 max(8px, calc(var(--u) * 7.5))/1 var(--font-grotesk); letter-spacing: .3em; color: rgba(241,237,228,.42); }
.exhibit__title { margin-top: calc(var(--u) * 7) !important; font: 600 max(9px, calc(var(--u) * 10.5))/1 var(--font-grotesk); letter-spacing: .22em; }
.exhibit__rule { display: block; width: calc(var(--u) * 12); height: 1px; margin: calc(var(--u) * 8) 0 calc(var(--u) * 7); background: var(--red);
  transition: width .4s var(--ease-out); }
.exhibit__type { font: 500 max(8px, calc(var(--u) * 8.5))/1 var(--font-grotesk); letter-spacing: .26em; color: var(--grey); }
.exhibit__price { margin-top: calc(var(--u) * 6) !important; font: 600 max(9px, calc(var(--u) * 9.5))/1 var(--font-grotesk); letter-spacing: .14em; }
.exhibit__label .take { margin-top: calc(var(--u) * 11); }
.exhibit__record { position: absolute; margin: 0; white-space: nowrap; pointer-events: none;
  font: 500 max(8px, calc(var(--u) * 8))/1.75 var(--font-grotesk); letter-spacing: .26em; color: rgba(241,237,228,.55);
  opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .4s var(--ease-out); }
.exhibit__record::before { content: ''; display: block; width: calc(var(--u) * 10); height: 1px; margin-bottom: calc(var(--u) * 6); background: var(--red); }

.exhibit:hover .exhibit__light, .exhibit:focus-within .exhibit__light { opacity: 1; }
.exhibit:hover .exhibit__object img { transform: scale(1.02); }
.exhibit:hover .exhibit__rule, .exhibit:focus-within .exhibit__rule { width: calc(var(--u) * 30); }
.exhibit:hover .exhibit__record, .exhibit:focus-within .exhibit__record { opacity: 1; transform: none; }

/* TAKE IT: the only red you can press */
.take { display: inline-block; padding: max(5px, calc(var(--u) * 6)) max(10px, calc(var(--u) * 11)); border: 1px solid var(--red); background: transparent;
  color: var(--red-light); cursor: pointer; font: 600 max(9px, calc(var(--u) * 9))/1 var(--font-grotesk); letter-spacing: .3em;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.take:hover, .take:focus-visible { background: var(--red); color: var(--offwhite); outline: none; }
.take:focus-visible { box-shadow: 0 0 0 2px #050505, 0 0 0 3px var(--offwhite); }
.take:disabled { border-color: rgba(241,237,228,.2); color: var(--grey); background: none; cursor: default; }
.take--big { --u: 1.6px; padding: 15px 36px; font-size: 13px; }

/* ---------- the object's view ---------- */
.sview { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.sview[hidden] { display: none; }
.sview.is-open { opacity: 1; }
.sview__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.sview__box { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: clamp(32px, 5vw, 88px); align-items: center;
  width: min(1080px, 88vw); max-height: 88vh; padding: clamp(28px, 4vw, 60px); background: #0a0a0a; box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
  transform: scale(.97); transition: transform .3s var(--ease-out); overflow: auto; }
.sview.is-open .sview__box { transform: none; }
.sview__art { display: flex; align-items: center; justify-content: center; margin: 0; min-height: 0; height: min(64vh, 620px);
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255,248,236,.07), rgba(255,248,236,0) 70%); }
.sview__art img { display: block; max-width: 86%; max-height: 90%; object-fit: contain; }
.sview__text p { margin: 0; }
.sview__no { font: 600 11px/1 var(--font-grotesk); letter-spacing: .34em; color: var(--red-light); }
.sview__title { margin: 16px 0 0; font: 400 clamp(30px, 3vw, 48px)/1 var(--font-display); letter-spacing: .03em; outline: none; }
.sview__type { margin-top: 12px !important; font: 500 var(--fs-meta)/1 var(--font-grotesk); letter-spacing: .3em; color: var(--grey); }
.sview__rule { display: block; width: 48px; height: 2px; margin: 24px 0; background: var(--red); }
.sview__desc { max-width: 38ch; font: 400 var(--fs-body)/1.6 var(--font-body); color: #d6d1c8; }
.sview__record { margin-top: 18px !important; font: 500 11px/1.8 var(--font-grotesk); letter-spacing: .26em; color: rgba(241,237,228,.5); }
.sview__sizes { margin: 26px 0 0; padding: 0; border: 0; }
.sview__sizes[hidden] { display: none; }
.sview__sizes legend { padding: 0; margin-bottom: 12px; font: 500 11px/1 var(--font-grotesk); letter-spacing: .32em; color: var(--grey); }
.sview__sizes div { display: flex; flex-wrap: wrap; gap: 8px; }
.sview__size { position: relative; cursor: pointer; }
.sview__size input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sview__size span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid rgba(241,237,228,.22);
  font: 600 12px/1 var(--font-grotesk); letter-spacing: .14em; color: rgba(241,237,228,.8); transition: border-color .2s ease, color .2s ease; }
.sview__size:hover span { border-color: rgba(241,237,228,.6); }
.sview__size input:checked + span { border-color: var(--red); color: var(--offwhite); box-shadow: inset 0 -2px 0 var(--red); }
.sview__size input:focus-visible + span { outline: 1px solid var(--offwhite); outline-offset: 3px; }
.sview__price { margin: 26px 0 18px !important; font: 600 22px/1 var(--font-grotesk); letter-spacing: .1em; }
.sview__msg { min-height: 1.4em; margin-top: 14px !important; font: 400 14px/1.4 var(--font-body); color: #bdb8b0; }
.sview__close { position: absolute; top: clamp(16px, 3vw, 34px); left: clamp(16px, 3.2vw, 40px); display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 4px; border: 0; background: none; color: var(--offwhite); cursor: pointer; font: 500 var(--fs-meta)/1 var(--font-grotesk); letter-spacing: .3em; }
.sview__close span:first-child { font-size: 22px; letter-spacing: 0; }
.sview__close:focus-visible { outline: 1px solid rgba(241,237,228,.6); outline-offset: 4px; }

/* the editorial column (mobile / portrait) is hidden on the desktop scene */
.shop__list { display: none; }

/* ---------- mobile / portrait: an editorial column ---------- */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .shop { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .shop__view { position: relative; inset: auto; height: 100vh; height: 100svh; min-height: 540px; }
  /* the left part of the scene: the crate, ALIX, the first niche */
  .shop__scene { --sw: calc(70svh * 1672 / 941); left: -4vw; top: auto; bottom: 0; width: var(--sw); height: 70%; transform: none; }
  .shop__exhibits { display: none; }
  .shop__vignette { background: linear-gradient(to bottom, #050505 0, rgba(5,5,5,0) 14%, rgba(5,5,5,0) 86%, #050505 100%); }
  .shop__ui { bottom: auto; height: 100svh; }
  .shop__head { left: 20px; top: 64px; }
  .shop__title { font-size: clamp(64px, 19vw, 112px); }
  .shop__nav { left: 20px; right: auto; top: auto; bottom: calc(70% + 8px); text-align: left; }
  .shop__nav ul { justify-content: flex-start; }
  .shop__nav button { padding: 12px 0; }
  .shop__nav li + li::before { padding: 0 14px; }
  .shop__list { display: block; padding: 24px 20px 88px; }
  .lot { margin: 0 0 76px; }
  .lot[hidden] { display: none; }
  .lot__stage { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 5; padding: 12%; border: 0; cursor: pointer;
    background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255,248,236,.1), rgba(255,248,236,0) 70%), #080808; }
  .lot__stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
  .lot__no { margin: 22px 0 0; font: 600 11px/1 var(--font-grotesk); letter-spacing: .34em; color: var(--red-light); }
  .lot__title { margin: 12px 0 0; font: 400 clamp(30px, 9vw, 44px)/1 var(--font-display); letter-spacing: .03em; }
  .lot__meta { margin: 12px 0 20px; font: 500 12px/1 var(--font-grotesk); letter-spacing: .28em; color: var(--grey); }
  .lot .take { --u: 1.4px; padding: 13px 26px; font-size: 12px; }
  .sview { align-items: stretch; }
  .sview__box { grid-template-columns: 1fr; width: 100vw; max-height: none; height: 100%; align-content: start; gap: 22px; padding: 76px 20px 40px; }
  .sview__art { height: auto; aspect-ratio: 1 / 1; }
}

.rm .shop, .rm .shop *, .rm .sview, .rm .sview__box { transition: none !important; }
.rm .shop__mote { animation: none; }
