/* Vault candidate (hero-trial.html #vault only; NOT accepted).
   _38: 32/68 composition. _40: inline disclosure (no dialog, no page-wide fade, no scroll lock, nothing on scroll).
   _41 (SYRX4HER_VAULT_GOLD_HANDOFF_FULL_WIDTH_41): the resting image is a photoreal architectural vault (Cycles render of original geometry,
   vault-lock/plate.jpg) with the gold wheel as a separate aligned sprite. On activation the wall, door and left column fade, only the gold
   wheel stays and turns, and the five cards come out of its centre into a full-width gallery (vault-motion.js). Without JavaScript (or GSAP)
   the vault is a plain image and the five cards show below as a static gallery.
   _42 (SYRX4HER_VAULT_PHOTO_AND_GALLERY_FIT_42): the resting vault is a real photograph shown alone (the gold wheel is hidden until
   activation, then dissolves in over the photographed wheel), and on desktop the open gallery is sized by vault-motion.js to fit the
   viewport below the sticky header (--vm-img-h). */

.page--fashion .fashion-vault-motion {
  position: relative; display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); column-gap: clamp(2rem, 3.5vw, 4rem);
  align-items: center; min-height: calc(100svh - var(--fashion-header-height)); padding: clamp(2.5rem, 7vh, 4.5rem) var(--pad-x);
  background: var(--black); border-top: 1px solid var(--hairline); overflow: clip; color: var(--paper);
}

/* Left column */
.page--fashion .vm__copy { position: relative; z-index: 2; min-width: 0; }
.page--fashion .vm__copy .eyeline { margin: 0 0 1rem; }
.page--fashion .vm__copy h2 {
  margin: 0 0 1.25rem; max-width: 13ch; font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2rem, 2.9vw, 3.1rem); line-height: 1.02; letter-spacing: .005em; color: var(--paper);
}
.page--fashion .vm__copy > p:not(.eyeline) { margin: 0 0 .6rem; max-width: 30rem; font-size: .92rem; line-height: 1.6; color: var(--soft); }
.page--fashion .vm__names { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.page--fashion .vm__names li { border-bottom: 1px solid var(--hairline); }
.page--fashion .vm__names a {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; min-height: 44px;
  color: var(--paper); text-decoration: none; font-size: .86rem; letter-spacing: .02em;
}
.page--fashion .vm__names .vm__n { font-size: .68rem; letter-spacing: .14em; color: var(--soft); }
.page--fashion .vm__names .vm__arrow { color: var(--soft); transition: transform .2s ease, color .2s ease; }
.page--fashion .vm__names a:hover .vm__arrow, .page--fashion .vm__names a:focus-visible .vm__arrow { color: var(--paper); transform: translate(2px, -2px); }
.page--fashion .vm__names a:focus-visible, .page--fashion .vm__all:focus-visible, .page--fashion .vm__explore:focus-visible, .page--fashion .vm-lock:focus-visible,
.page--fashion .vm-tile a:focus-visible, .page--fashion .vm-panel__close:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.page--fashion .vm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.page--fashion .vm__book {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border: 1px solid var(--paper);
  background: var(--paper); color: var(--black); text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.page--fashion .vm__book:hover, .page--fashion .vm__book:focus-visible { background: transparent; color: var(--paper); outline-offset: 4px; }
.page--fashion .vm__explore {
  min-height: 44px; padding: 0; border: 0; background: none; color: var(--paper); cursor: pointer; font: inherit; font-size: .72rem;
  font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .55em;
}
.page--fashion .vm__explore[hidden], .page--fashion .vm-panel__close[hidden] { display: none; }
.page--fashion .vm__all { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .75rem; color: var(--soft); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.page--fashion .vm__all:hover { color: var(--paper); }

/* Right column: the vault. The plate and the wheel sprite share one frame (--vm-ar), scaled to cover the stage around the door;
   the wheel window comes from vault-lock/layout.json (--vm-wl/-wt/-ww/-wh). */
.page--fashion .vm__stage { position: relative; min-width: 0; height: min(660px, calc(100svh - var(--fashion-header-height) - 2 * clamp(2.5rem, 7vh, 4.5rem))); }
.page--fashion .vm-lock { position: absolute; inset: 0; overflow: hidden; background: #000; border: 0; padding: 0; }
.page--fashion .vm-lock__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
  /* _44: the owner-selected image is shown as supplied (no tone filter); object-position comes from build.py */
}
.page--fashion .vm-lock__wheel {
  position: absolute; left: 50%; top: 50%; width: var(--vm-cover-w, 100%); height: auto; aspect-ratio: var(--vm-ar); transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; visibility: hidden; /* at rest the photograph stands alone; the script reveals the gold wheel */
}
.page--fashion .vm-lock__wheel::before {
  content: ''; position: absolute; left: var(--vm-wl); top: var(--vm-wt); width: var(--vm-ww); height: var(--vm-wh);
  background: none 0 0 / 1200% 100% no-repeat; background-position-x: var(--vm-frame, 0%);
}
/* _46: the 12-frame sprite downloads only once vault-motion.js prepares the wheel (section about a viewport away, hover/focus, or activation),
   as AVIF where supported (427 KB) with the original PNG (2.4 MB) as fallback. */
.page--fashion .vm-lock--wheel .vm-lock__wheel::before {
  background-image: url('vault-lock/wheel-strip.png');
  background-image: image-set(url('vault-lock/wheel-strip.avif') type('image/avif'), url('vault-lock/wheel-strip.png') type('image/png'));
}
.page--fashion .vm-lock::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 85% at 50% 50%, #05060700 60%, #050607 100%), linear-gradient(90deg, #050607 0%, #05060700 8%);
}
html.vm-js .page--fashion .vm-lock { cursor: pointer; }
html.vm-js .page--fashion .vm-lock__vignette-off::after { opacity: 0; }

/* The full-width gallery. Without JavaScript it simply follows the vault in normal flow; with JavaScript it is a hidden layer across the
   whole section (left column included) that the script reveals. */
.page--fashion .vm-panel { grid-column: 1 / -1; margin-top: 2.5rem; }
html.vm-js .page--fashion .vm-panel {
  position: absolute; left: var(--pad-x); right: var(--pad-x); top: clamp(2.5rem, 7vh, 4.5rem); margin: 0; visibility: hidden; z-index: 3;
}
.page--fashion .vm-panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.5rem; }
.page--fashion .vm-panel__head .eyeline { margin: 0 0 .6rem; }
.page--fashion .vm-panel__title {
  margin: 0; font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: clamp(1.6rem, 2.2vw, 2.3rem); line-height: 1.05; outline: none;
}
.page--fashion .vm-panel__actions { display: flex; align-items: center; gap: 1.5rem; }
.page--fashion .vm-panel__close {
  min-height: 44px; padding: 0 .25rem; border: 0; background: none; color: var(--paper); cursor: pointer; font: inherit;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .5em;
}
.page--fashion .vm-panel__grid {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem clamp(1.75rem, 2.6vw, 3rem); perspective: 1400px;
}
.page--fashion .vm-tile { width: calc((100% - 2 * clamp(1.75rem, 2.6vw, 3rem)) / 3); transform-style: preserve-3d; }
.page--fashion .vm-tile a { display: block; color: var(--paper); text-decoration: none; }
.page--fashion .vm-tile__img { display: block; aspect-ratio: 3 / 2; height: auto; overflow: hidden; background: #111; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); transition: opacity .15s cubic-bezier(.2, 0, .2, 1); }
.page--fashion .vm-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page--fashion .vm-tile a:hover .vm-tile__img { opacity: .8; }
.page--fashion .vm-tile__cap { display: grid; gap: .3rem; padding-top: .85rem; max-width: 34rem; }
.page--fashion .vm-tile__n { font-size: .62rem; letter-spacing: .16em; color: var(--soft); }
.page--fashion .vm-tile__cap strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.1; }
.page--fashion .vm-tile__tag { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #c9a86a; }
.page--fashion .vm-tile__desc { font-size: .86rem; line-height: 1.55; color: var(--soft); }
.page--fashion .vm-tile__cta { margin-top: .35rem; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .4em; }

/* The opened reveal fits below the sticky header using measured image heights.
   Short viewports / enlarged text can grow naturally rather than clipping content. */
html.vm-js .page--fashion #vault.vm-open {
  min-height: calc(100svh - var(--vm-header-h, var(--fashion-header-height)));
  padding-block: clamp(16px, 3svh, 32px);
}
.page--fashion #vault .vm-panel--fit .vm-panel__grid { row-gap: 24px; }
.page--fashion .vm-panel--fit .vm-tile__img { aspect-ratio: auto; height: var(--vm-img-h); }
@media (min-width: 761px) and (max-height: 820px) {
  html.vm-js .page--fashion #vault.vm-open { padding-block: 16px; }
  .page--fashion #vault .vm-panel--fit .vm-panel__grid { row-gap: 12px; }
  .page--fashion #vault .vm-panel--fit .vm-panel__head { margin-bottom: 16px; }
}

/* Phone: copy, then the vault; the gallery stacks in one column over the whole section when open. */
@media (max-width: 760px) {
  .page--fashion .fashion-vault-motion { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; align-content: start; min-height: 0; padding: 2.75rem var(--pad-x) 2.5rem; } /* rows stay put while the section grows */
  .page--fashion .vm__copy h2 { max-width: 12ch; font-size: 2rem; }
  .page--fashion .vm__book { flex: 1 1 100%; }
  .page--fashion .vm__stage { height: min(60svh, 420px); }
  html.vm-js .page--fashion .vm-panel { top: 2.75rem; }
  .page--fashion .vm-panel__actions { width: 100%; }
  .page--fashion .vm-tile { width: 100%; }
}

/* Vault mobile clarity + finite disclosure, 2026-10-19 local owner review. */
html.vm-js .fashion-vault-motion .vm-panel{pointer-events:none}
html.vm-js .fashion-vault-motion.vm-open .vm-panel{pointer-events:auto}
html.vm-js .fashion-vault-motion.vm-open .vm__copy,html.vm-js .fashion-vault-motion.vm-open .vm__stage{pointer-events:none}
.page--fashion .fashion-vault-motion.vm-open .vm-lock__photo{filter:brightness(.72)}
.page--fashion .fashion-vault-motion.vm-open .vm-lock__wheel{will-change:transform,opacity}
@media(max-width:760px){
  html.vm-js .page--fashion .fashion-vault-motion{display:grid;grid-template-columns:1fr;gap:0;padding-block:2.4rem}
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy,html.vm-js .page--fashion .fashion-vault-motion .vm__actions{display:contents}
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy>.eyeline{order:1;margin:0 0:.7rem}
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy>h2{order:2;margin:0 0:1rem}
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy>p:not(.eyeline){order:3;margin-bottom:.45rem}
  html.vm-js .page--fashion .fashion-vault-motion .vm__names--visible{display:none}
  html.vm-js .page--fashion .fashion-vault-motion [data-vm-open]{order:4;display:flex;width:100%;min-height:56px;margin:1rem 0 1.25rem;background:var(--paper);color:var(--black)}
  html.vm-js .page--fashion .fashion-vault-motion .vm__stage{order:5;width:100%;height:min(52svh,320px);margin:0 0:1.1rem}
  html.vm-js .page--fashion .fashion-vault-motion .vm__book{order:6;width:100%;min-height:44px;background:transparent;color:var(--paper)}
  html.vm-js .page--fashion .fashion-vault-motion .vm__all{order:7;margin:.6rem 0 0}
  html.vm-js .page--fashion .fashion-vault-motion.vm-open .vm__names--visible{display:block}
}
@media(prefers-reduced-motion:reduce){
  .page--fashion .fashion-vault-motion .vm__explore,.page--fashion .fashion-vault-motion .vm__names .vm__arrow{transition:none}
}

/* Task15 focused repair: mobile ordering and panel flow. */
@media(max-width:760px){
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy>.eyeline{grid-row:1}
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy>h2{grid-row:2}
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy>p:nth-of-type(2){grid-row:3}
  html.vm-js .page--fashion .fashion-vault-motion .vm__copy>p:nth-of-type(3){grid-row:4}
  html.vm-js .page--fashion .fashion-vault-motion [data-vm-open]{order:unset;grid-row:5}
  html.vm-js .page--fashion .fashion-vault-motion .vm__stage{order:unset;grid-row:6}
  html.vm-js .page--fashion .fashion-vault-motion .vm__book{order:unset;grid-row:7}
  html.vm-js .page--fashion .fashion-vault-motion .vm__all{order:unset;grid-row:8}
  html.vm-js .page--fashion .fashion-vault-motion.vm-open{overflow:visible}
  html.vm-js .page--fashion .fashion-vault-motion.vm-open .vm__copy>*,html.vm-js .page--fashion .fashion-vault-motion.vm-open .vm__stage{display:none}
  html.vm-js .page--fashion .fashion-vault-motion.vm-open .vm-panel{position:relative;inset:auto;left:auto;right:auto;top:auto;grid-column:1;grid-row:1;margin:0;visibility:visible}
}
/* Open catalogue stays in document flow at every width; no clipped second row. */
html.vm-js .page--fashion #vault.vm-open{overflow:visible;align-content:start}
html.vm-js .page--fashion #vault.vm-open .vm__copy,
html.vm-js .page--fashion #vault.vm-open .vm__copy>*,
html.vm-js .page--fashion #vault.vm-open .vm__stage{display:none}
html.vm-js .page--fashion #vault.vm-open .vm-panel{position:relative;inset:auto;grid-column:1/-1;grid-row:1;margin:0;visibility:visible}
.page--fashion #vault .vm-panel__close{white-space:nowrap;flex-shrink:0;display:inline-flex;align-items:center;gap:.5rem}
@media(max-width:760px){.page--fashion #vault .vm-panel__actions{gap:1rem}.page--fashion #vault .vm-panel__actions .vm__book{flex:1;min-width:0;width:auto}}
