/* APHERO — boutique experience
   Type: Cormorant Garamond (display) + Jost (UI). Two themes: dark (entrance,
   salon, Men) and light (Women, over the ivory boutique). */

:root {
  --bg: #0a0908;
  --ink: #f3ece0;
  --ink-2: rgba(243, 236, 224, .76);
  --ink-3: rgba(243, 236, 224, .56);
  --gold: #c9a56b;
  --gold-hi: #ecd5a3;
  --gold-lo: #8c6c3c;
  --line: rgba(236, 213, 163, .24);
  --line-2: rgba(236, 213, 163, .44);
  --glass: rgba(16, 13, 11, .58);
  --glass-edge: rgba(236, 213, 163, .16);
  --glass-hi: rgba(255, 244, 222, .08);
  --scrim: rgba(6, 5, 4, .55);
  --spot: rgba(255, 214, 150, .16);
  --veil: rgba(8, 7, 6, .62);
  --spot-core: rgba(255, 226, 172, .30);
  --beam: rgba(255, 222, 168, .10);
  --mark: rgba(236, 213, 163, .055);
  --shadow-garment: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)) drop-shadow(0 3px 6px rgba(0, 0, 0, .4));
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --head-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #1d1915;
  --ink-2: rgba(29, 25, 21, .78);
  --ink-3: rgba(29, 25, 21, .6);
  --gold: #8a6631;
  --gold-hi: #a67c3f;
  --gold-lo: #6b4d22;
  --line: rgba(110, 80, 38, .26);
  --line-2: rgba(110, 80, 38, .5);
  --glass: rgba(250, 245, 237, .64);
  --glass-edge: rgba(255, 255, 255, .6);
  --glass-hi: rgba(255, 255, 255, .5);
  --scrim: rgba(40, 32, 24, .32);
  --spot: rgba(255, 246, 228, .55);
  --veil: rgba(246, 239, 228, .78);
  --spot-core: rgba(255, 252, 244, .85);
  --beam: rgba(255, 252, 244, .32);
  --mark: rgba(110, 80, 38, .075);
  --shadow-garment: drop-shadow(0 26px 24px rgba(60, 42, 20, .28)) drop-shadow(0 3px 5px rgba(40, 28, 14, .25));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color .8s var(--ease-io);
  touch-action: manipulation;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--gold-hi); outline-offset: 4px; border-radius: 2px; }
:root[data-theme="light"] :focus-visible { outline-color: var(--gold); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: 13px;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.eyebrow {
  margin: 0;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
:root[data-theme="light"] .eyebrow { color: var(--gold); }

/* ---------- Stage ---------- */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.stage-fallback {
  position: fixed; inset: 0; z-index: 0; display: none;
  background: #0a0908 center/cover no-repeat;
}
.no-webgl .stage { display: none; }
.no-webgl .stage-fallback { display: block; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 28px;
  background: #0a0908; color: #f3ece0;
  transition: opacity 1s var(--ease-io), visibility 1s;
}
.loader__mark { margin: 0; font: 400 clamp(30px, 4vw, 44px)/1 var(--serif); letter-spacing: .5em; padding-left: .5em; display: flex; }
.loader__mark span { opacity: 0; transform: translateY(14px); animation: rise 1.2s var(--ease-out) forwards; }
.loader__mark span:nth-child(2) { animation-delay: .07s; }
.loader__mark span:nth-child(3) { animation-delay: .14s; }
.loader__mark span:nth-child(4) { animation-delay: .21s; }
.loader__mark span:nth-child(5) { animation-delay: .28s; }
.loader__mark span:nth-child(6) { animation-delay: .35s; }
.loader__line { width: 160px; height: 1px; background: rgba(236, 213, 163, .18); overflow: hidden; }
.loader__line i { display: block; height: 100%; background: linear-gradient(90deg, #8c6c3c, #ecd5a3); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease-out); }
.loader__note { margin: 0; font: 400 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 236, 224, .55); }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Chrome ---------- */
.chrome {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--head-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
/* scroll-edge veil: keeps the chrome legible over whatever the stage shows */
.chrome::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--veil) 0%, transparent 100%);
  opacity: 0; transition: opacity .8s var(--ease-out);
}
body[data-scene="house"] .chrome::before, body[data-scene="category"] .chrome::before, body[data-scene="piece"] .chrome::before { opacity: .85; }
.chrome__mark {
  font: 500 17px/1 var(--serif); letter-spacing: .52em; padding-left: .52em; text-decoration: none;
  color: var(--ink); transition: color .8s var(--ease-io), opacity .6s;
}
.chrome__left { justify-self: start; }
.chrome__right { justify-self: end; }
.chrome__back, .chrome__bag {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px;
  font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .8s var(--ease-io);
}
.chrome__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .4s var(--ease-out); }
.chrome__back:hover svg { transform: translateX(-4px); }
.chrome__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  border: 1px solid var(--line-2); font-size: 10px; letter-spacing: .05em;
  transition: background .3s, color .3s, transform .5s var(--ease-out);
}
.chrome__count.bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.35); background: var(--gold); color: #0a0908; } }
body[data-scene="entrance"] .chrome__back,
body[data-scene="salon"] .chrome__back,
body[data-scene="entrance"] .chrome__bag { opacity: 0; transform: translateY(-8px); pointer-events: none; }
body[data-scene="entrance"] .chrome__mark { opacity: 0; }

/* ---------- Entrance ---------- */
.entrance { position: fixed; inset: 0; z-index: 20; overflow: hidden; background: #0a0908; }
.entrance__film { position: absolute; inset: 0; transform-origin: 54% 46%; }
.entrance__film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.entrance__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(6, 5, 4, .86) 0%, rgba(6, 5, 4, .35) 45%, transparent 70%),
    linear-gradient(180deg, rgba(6, 5, 4, .45) 0%, transparent 18%);
}
.entrance__seam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px;
  background: linear-gradient(180deg, transparent, #ecd5a3 20%, #fff6e0 50%, #ecd5a3 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(236, 213, 163, .45);
  transform: scaleY(0); opacity: 0; pointer-events: none;
}
.entrance__content {
  position: absolute; left: 0; right: 0; bottom: max(9vh, 72px);
  display: grid; justify-items: center; text-align: center; gap: 22px; padding: 0 var(--gutter);
}
.entrance__title {
  margin: 0; font: 300 clamp(44px, 7.2vw, 108px)/.95 var(--serif); letter-spacing: -.012em; color: #f6efe3;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.entrance__title em { font-style: italic; color: #ecd5a3; }
.entrance__foot {
  position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; display: flex; justify-content: center; align-items: center; gap: 14px;
  font: 500 10px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: rgba(243, 236, 224, .62);
}
.entrance__foot i { width: 28px; height: 1px; background: rgba(236, 213, 163, .5); }
.reveal { opacity: 0; transform: translateY(18px); }
body.is-ready .reveal { opacity: 1; transform: none; transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); }
body.is-ready .entrance__content .reveal:nth-child(2) { transition-delay: .15s; }
body.is-ready .entrance__content .reveal:nth-child(3) { transition-delay: .35s; }
body.is-ready .entrance__foot { transition-delay: .6s; }

.btn-enter {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 44px; margin-top: 8px; overflow: hidden;
  font: 500 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: #f6efe3;
  border: 1px solid rgba(236, 213, 163, .55);
  background: rgba(10, 9, 8, .28);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  transition: color .6s var(--ease-out), border-color .6s, transform .5s var(--ease-out);
  will-change: transform;
}
.btn-enter::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, #8c6c3c, #ecd5a3 50%, #b48d55);
  transform: translateY(101%); transition: transform .7s var(--ease-out);
}
.btn-enter::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 246, 224, .35), transparent);
  animation: sheen 5.5s 2.5s var(--ease-io) infinite;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-enter:hover { color: #0a0908; border-color: #ecd5a3; }
.btn-enter:hover::before { transform: none; }
.btn-enter:active { transform: scale(.97); transition-duration: .1s; }
.btn-enter__label { position: relative; padding-left: .34em; }

/* ---------- Salon ---------- */
.salon { position: fixed; inset: 0; z-index: 30; pointer-events: none; visibility: hidden; }
body[data-scene="salon"] .salon { visibility: visible; }
.salon__prompt {
  position: absolute; top: calc(var(--head-h) + 6px); left: 0; right: 0; text-align: center;
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.salon.is-in .salon__prompt { opacity: .9; }
.salon__seam {
  position: absolute; top: 0; bottom: 0; width: 1px; left: 50%;
  background: linear-gradient(180deg, transparent, rgba(236, 213, 163, .8) 30%, rgba(236, 213, 163, .8) 70%, transparent);
  pointer-events: none; transform-origin: 50% 50%;
}
.door {
  position: absolute; left: 0; top: 0; width: 50%; height: 100%;
  display: grid; align-content: end; justify-items: start; gap: 12px;
  padding: 0 clamp(24px, 5vw, 72px) clamp(40px, 9vh, 96px);
  text-align: left; pointer-events: auto; color: #f6efe3; overflow: hidden;
  opacity: 0; transition: opacity .9s var(--ease-out);
}
.salon.is-in .door { opacity: 1; transition-delay: .55s; }
.door > * { white-space: nowrap; }
.door::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 7, 6, .72) 0%, rgba(8, 7, 6, .18) 38%, transparent 60%);
}
.door[data-house="femme"]::before { background: linear-gradient(0deg, rgba(30, 22, 14, .62) 0%, rgba(30, 22, 14, .14) 38%, transparent 60%); }
.door__eyebrow { color: #ecd5a3; }
.door__name { font: 300 clamp(56px, 8vw, 128px)/.9 var(--serif); letter-spacing: -.015em; transition: transform .8s var(--ease-out), letter-spacing .8s var(--ease-out); }
.door__go {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 6px;
  font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #f6efe3;
  opacity: .8; transition: opacity .5s, gap .6s var(--ease-out);
}
.door__go i { width: 34px; height: 1px; background: #ecd5a3; transform-origin: left; transition: transform .6s var(--ease-out); }
.door:hover .door__go, .door:focus-visible .door__go { opacity: 1; gap: 20px; }
.door:hover .door__go i, .door:focus-visible .door__go i { transform: scaleX(1.6); }
.door:hover .door__name { letter-spacing: 0; }
.salon.is-leaving .door, .salon.is-leaving .salon__prompt { opacity: 0; transition-duration: .45s; transition-delay: 0s; }

/* ---------- Boutique / rail ---------- */
.boutique { position: fixed; inset: 0; z-index: 30; visibility: hidden; outline: none; }
body[data-scene="house"] .boutique,
body[data-scene="category"] .boutique,
body[data-scene="piece"] .boutique { visibility: visible; }
.boutique__head {
  position: absolute; top: calc(var(--head-h) + 8px); left: var(--gutter); max-width: min(560px, 80vw);
  pointer-events: none;
}
/* soft light pool behind the heading and the label row so type always sits on a calm field */
.boutique::before, .boutique::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  transition: opacity .8s var(--ease-out);
}
.boutique::before {
  left: 0; top: 0; width: min(900px, 90vw); height: 380px;
  background: radial-gradient(70% 70% at 18% 32%, var(--veil) 0%, transparent 72%);
}
.boutique::after {
  left: 0; right: 0; bottom: 0; height: 260px;
  background: linear-gradient(0deg, var(--veil) 0%, transparent 100%);
}
body[data-scene="piece"] .boutique::before, body[data-scene="piece"] .boutique::after { opacity: 0; }
.boutique__head > * { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.boutique__head.is-out > * { opacity: 0; transform: translateY(-14px); transition-duration: .35s; }
.boutique__head.is-pre > * { opacity: 0; transform: translateY(18px); transition: none; }
.boutique__title { margin: 10px 0 6px; font: 300 clamp(40px, 5.2vw, 76px)/.95 var(--serif); letter-spacing: -.012em; }
.boutique__title em { font-style: italic; }
.boutique__line { margin: 0; font: 300 italic clamp(17px, 1.5vw, 21px)/1.4 var(--serif); color: var(--ink-2); }
body[data-scene="piece"] .boutique__head { opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }

.hanger__dot, .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: -.02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }

/* ---------- The carousel rack ---------- */
.rack { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.rack.is-grabbing { cursor: grabbing; }
.rack[data-mode="off"], .rack[data-mode="piece"] { cursor: default; }
.rack__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .4s; }
.ring__body { fill: #a8804a; }
.ring__hi { fill: none; stroke: #fbe9bd; stroke-width: 1.2; stroke-linecap: round; }
.ring__lo { fill: none; stroke: rgba(48, 32, 12, .65); stroke-width: 1; }
.rack__track { position: absolute; inset: 0; }

/* spotlight: a narrow beam from the ceiling and a pool of light around the
   piece at the front of the rack */
.rack__light {
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
.rack__light::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: calc(var(--lh, 500px) * 1.5); height: calc(var(--lh, 500px) * 1.18);
  transform: translate(-50%, -6%);
  background: radial-gradient(closest-side, var(--spot-core) 0%, var(--spot) 42%, transparent 100%);
}
.rack__light::after {
  /* a soft shaft of light from the ceiling, no hard edges */
  content: ""; position: absolute; left: 0; bottom: -8%; width: calc(var(--lh, 500px) * .62); height: 115vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 100%, var(--beam) 0%, transparent 100%);
  filter: blur(24px);
}
.rack__mark {
  position: absolute; left: 0; right: 0; top: 38%; margin: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font: italic 300 clamp(120px, 19vw, 320px)/1 var(--serif); letter-spacing: -.02em; color: var(--mark);
  transition: opacity .6s var(--ease-out), filter .6s var(--ease-out);
}
.rack__mark.is-swap { opacity: 0; filter: blur(8px); transition-duration: .25s; }
.rack[data-mode="piece"] .rack__mark, .rack[data-mode="off"] .rack__mark { opacity: 0; }

.pc {
  position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; transform-origin: 0 0;
  will-change: transform, opacity; -webkit-tap-highlight-color: transparent;
}
.pc:focus-visible { outline: none; }
.pc:focus-visible .pc__body { outline: 1px solid var(--gold-hi); outline-offset: 10px; }
.pc__swing { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pc__body { position: absolute; display: block; will-change: filter; transition: transform .8s var(--ease-out); }
.pc__img {
  width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none;
  filter: var(--shadow-garment);
}
.pc__hw { position: absolute; overflow: visible; pointer-events: none; }
.pc[aria-selected="true"]:hover .pc__body { transform: translateY(-4px); }
.pc.is-arriving { cursor: default; }

/* caption for the piece at the front of the rack */
.focus {
  position: absolute; left: 0; right: 0; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 64px);
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 var(--gutter);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.focus > * { transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), filter .45s var(--ease-out); }
.focus.is-swap > * { opacity: 0; transform: translateY(8px); filter: blur(4px); transition-duration: .18s; }
.focus__count { margin: 0 0 4px; display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--sans); letter-spacing: .32em; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .focus__count { color: var(--gold); }
.focus__count i { width: 26px; height: 1px; background: currentColor; opacity: .6; }
.focus__name { margin: 0; font: 300 clamp(32px, 3.3vw, 50px)/1.02 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.focus__row { margin: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.focus__meta { font: 400 13px/1.3 var(--sans); letter-spacing: .1em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.focus__meta .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: -.05em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 0 1px var(--line); }
.focus__cta {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px;
  font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
}
.focus__cta i { position: relative; width: 30px; height: 1px; background: var(--gold-hi); transition: width .5s var(--ease-out); }
.focus__cta i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--gold-hi); border-right: 1px solid var(--gold-hi); transform: rotate(45deg); }
:root[data-theme="light"] .focus__cta i, :root[data-theme="light"] .focus__cta i::after { background: var(--gold); border-color: var(--gold); }
:root[data-theme="light"] .focus__cta i::after { background: none; }
.focus__cta:hover i { width: 46px; }
.focus__cta[hidden] { display: none; }

/* scrubber: a hairline with a tick per piece and a gold thumb */
.scrub {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  transition: opacity .5s var(--ease-out);
}
.scrub.is-single { opacity: .0; pointer-events: none; }
.scrub__btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.scrub__btn:hover { border-color: var(--line-2); background: var(--glass-hi); }
.scrub__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.scrub__track { position: relative; width: clamp(180px, 22vw, 340px); height: 32px; cursor: pointer; touch-action: none; outline-offset: 6px; }
.scrub__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.scrub__ticks i { position: absolute; top: 50%; width: 1px; height: 7px; margin: -3px 0 0 -.5px; background: var(--line-2); }
.scrub__thumb {
  position: absolute; top: 50%; width: 30px; height: 2px; margin: -1px 0 0 -15px; border-radius: 1px;
  background: linear-gradient(90deg, #a07a44, #f6e2b0 50%, #a07a44);
  box-shadow: 0 0 12px rgba(236, 200, 140, .55);
  transition: width .3s var(--ease-out), margin .3s var(--ease-out);
}
.scrub__track.is-active .scrub__thumb, .scrub__track:hover .scrub__thumb { width: 44px; margin-left: -22px; }
.rack[data-mode="piece"] ~ .focus, .rack[data-mode="piece"] ~ .scrub,
.rack[data-mode="off"] ~ .focus, .rack[data-mode="off"] ~ .scrub { opacity: 0; pointer-events: none; transform: translateY(10px); }
.rack[data-mode="piece"] ~ .scrub, .rack[data-mode="off"] ~ .scrub { transform: translate(-50%, 10px); }

/* ---------- Piece (product) ---------- */
.piece { position: fixed; inset: 0; z-index: 40; pointer-events: none; visibility: hidden; }
body[data-scene="piece"] .piece { visibility: visible; }
.piece__panel {
  position: absolute; top: calc(var(--head-h) + 4px); right: var(--gutter); bottom: 24px; width: min(440px, 36vw);
  pointer-events: auto;
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 40px 80px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateX(28px) scale(.985); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out);
}
.piece.is-in .piece__panel { opacity: 1; transform: none; filter: none; }
.piece__scroll { height: 100%; overflow-y: auto; padding: 34px 34px 40px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
#p-name:focus { outline: none; }
.piece__name { margin: 12px 0 10px; font: 300 clamp(36px, 3.4vw, 50px)/1 var(--serif); letter-spacing: -.01em; }
.piece__price { margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; font: 400 18px/1 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.piece__price small { font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.piece__blurb { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; line-height: 1.7; max-width: 38em; }
.opt { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.opt__label { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 12px; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.opt__label span { color: var(--ink); letter-spacing: .12em; text-transform: none; font-size: 13px; }
.opt__error { margin: 8px 0 0; min-height: 1.2em; font-size: 13px; color: #e8a08a; }
:root[data-theme="light"] .opt__error { color: #a3361f; }
.linkbtn { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); min-height: 32px; }
.linkbtn:hover { text-decoration-color: currentColor; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  position: relative; width: 36px; height: 36px; border-radius: 50%; padding: 0;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .4s var(--ease-out);
}
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold-hi); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--ease-out); }
:root[data-theme="light"] .swatch::after { border-color: var(--gold); }
.swatch[aria-pressed="true"]::after { opacity: 1; transform: none; }
.swatch:hover { transform: scale(1.08); }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.size {
  min-height: 46px; border: 1px solid var(--line); font: 400 13px/1 var(--sans); letter-spacing: .08em;
  transition: border-color .3s, background .3s, color .3s;
}
.size:hover { border-color: var(--line-2); }
.size[aria-pressed="true"] { border-color: var(--gold-hi); background: var(--gold-hi); color: #0d0b09; }
:root[data-theme="light"] .size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #f6efe3; }
.opt.is-invalid .size { border-color: rgba(232, 160, 138, .6); }

.btn-primary {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; overflow: hidden; isolation: isolate;
  font: 500 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #0d0b09;
  background: linear-gradient(100deg, #b48d55, #ecd5a3 55%, #c9a56b);
  transition: transform .2s var(--ease-out), filter .3s;
}
:root[data-theme="light"] .btn-primary { background: #1d1915; color: #f6efe3; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease-out); z-index: -1; }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: scale(.985); }
.btn-primary__label { padding-left: .3em; }
.btn-primary.is-done .btn-primary__label::before { content: "✓  "; }
.btn-quiet {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px;
  font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--line); transition: border-color .3s, background .3s;
}
.btn-quiet:hover { border-color: var(--line-2); background: var(--glass-hi); }
.acc { margin-top: 26px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 9px; height: 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease-out); }
.acc details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.acc ul, .acc p { margin: 0 0 18px; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.acc li { padding-left: 16px; position: relative; }
.acc li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--gold-hi); }
:root[data-theme="light"] .acc li::before { background: var(--gold); }

.piece__views {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; pointer-events: auto;
  opacity: 0; transition: opacity .7s .3s var(--ease-out);
}
.piece.is-in .piece__views { opacity: 1; }
.view-tab {
  position: relative; width: 62px; height: 78px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line); background: var(--glass); transition: border-color .3s, transform .4s var(--ease-out);
}
.view-tab img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.view-tab.is-cover img { object-fit: cover; padding: 0; }
.view-tab[aria-selected="true"] { border-color: var(--gold-hi); }
:root[data-theme="light"] .view-tab[aria-selected="true"] { border-color: var(--ink); }
.view-tab:hover { transform: translateX(3px); }
.view-tab__label { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transition: opacity .3s; pointer-events: none; }
.view-tab:hover .view-tab__label, .view-tab:focus-visible .view-tab__label { opacity: 1; }

.piece__stage { position: absolute; inset: 0; pointer-events: none; }
.look {
  position: absolute; pointer-events: auto;
  opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.look.is-on { opacity: 1; transform: none; }
.look--model img { height: 100%; width: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .35)); }
.look--model::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -8px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); z-index: -1; }
.look--frame { padding: 10px; background: linear-gradient(135deg, #d9bd86, #8c6c3c 40%, #e8cf98 60%, #7a5a2c); box-shadow: 0 40px 70px rgba(0, 0, 0, .4); cursor: zoom-in; }
.look--frame img { width: 100%; height: 100%; object-fit: cover; background: #f2efea; }
.look__cap {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); margin: 0; white-space: nowrap;
  font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2);
}
.look--model .look__cap { bottom: auto; top: -26px; }
.loupe {
  position: fixed; z-index: 45; width: 180px; height: 180px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(236, 213, 163, .7); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(10, 9, 8, .25);
  background-repeat: no-repeat; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease-out);
}
.loupe.is-on { opacity: 1; transform: none; }

/* ---------- Bag, sheet, lightbox ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 79; background: var(--scrim);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.scrim.is-on { opacity: 1; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100vw);
  display: grid; grid-template-rows: auto 1fr auto; outline: none;
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
  border-left: 1px solid var(--glass-edge);
  transform: translateX(104%); transition: transform .7s var(--ease-out);
  visibility: hidden;
}
.bag.is-on { transform: none; visibility: visible; }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.bag__head h2 { margin: 0; font: 300 30px/1 var(--serif); }
.bag__list { list-style: none; margin: 0; padding: 8px 28px; overflow-y: auto; }
.bag__item { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag__item img { width: 74px; height: 92px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.bag__item h3 { margin: 0 0 4px; font: 400 21px/1.1 var(--serif); }
.bag__item p { margin: 0; font-size: 13px; color: var(--ink-2); }
.bag__item .price { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink); text-align: right; }
.bag__remove { display: block; margin-top: 8px; min-height: 28px; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.bag__remove:hover { color: var(--ink); }
.bag__empty { margin: 0; padding: 32px 28px; color: var(--ink-2); font: 300 italic 20px/1.5 var(--serif); }
.bag__foot { padding: 22px 28px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.bag__total { display: flex; justify-content: space-between; margin: 0 0 16px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.bag__total strong { font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: 18px; text-transform: none; }
.bag__note { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.iconbtn:hover { background: var(--glass-hi); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }

.sheet {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  visibility: hidden; pointer-events: none;
}
.sheet.is-on { visibility: visible; pointer-events: auto; }
.sheet__card {
  position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 40px clamp(22px, 5vw, 48px) 36px; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(34px) saturate(160%); backdrop-filter: blur(34px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 50px 120px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(24px) scale(.97); filter: blur(8px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), filter .6s var(--ease-out);
}
.sheet.is-on .sheet__card { opacity: 1; transform: none; filter: none; }
.sheet__close { position: absolute; top: 12px; right: 12px; }
.sheet__title { margin: 10px 0 8px; font: 300 clamp(34px, 4vw, 46px)/1 var(--serif); }
.sheet__lede { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.reserve__summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.reserve__summary span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 0;
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--line-2); transition: border-color .3s, background .3s;
  cursor: text;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-hi); background: var(--glass-hi); }
:root[data-theme="light"] .field input:focus, :root[data-theme="light"] .field textarea:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field.is-invalid input { border-color: #e8a08a; }
:root[data-theme="light"] .field.is-invalid input { border-color: #a3361f; }
.field__err { margin: 6px 0 0; min-height: 1em; font-size: 13px; color: #e8a08a; }
:root[data-theme="light"] .field__err { color: #a3361f; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips label { margin: 0; letter-spacing: .1em; text-transform: none; font: 400 14px/1 var(--sans); color: var(--ink); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--gold-hi); border-color: var(--gold-hi); color: #0d0b09; }
:root[data-theme="light"] .chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #f6efe3; }
.chips input:focus-visible + span { outline: 1.5px solid var(--gold-hi); outline-offset: 3px; }
.reserve .btn-primary { margin-top: 10px; }
.reserve-done { text-align: left; }

.lightbox {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 64px 16px 24px;
  background: rgba(6, 5, 4, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility .5s;
}
.lightbox.is-on { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; object-fit: contain; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); transform: scale(.96); transition: transform .7s var(--ease-out); }
.lightbox.is-on img { transform: none; }
.lightbox__close { position: absolute; top: 14px; right: 14px; color: #f3ece0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 96; transform: translate(-50%, 20px); opacity: 0;
  padding: 14px 22px; font: 500 11px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 110; pointer-events: none; display: none; mix-blend-mode: normal; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-hi); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(236, 213, 163, .55);
  display: grid; place-items: center; transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .45s, border-color .45s;
}
:root[data-theme="light"] .cursor__dot { background: var(--gold); }
:root[data-theme="light"] .cursor__ring { border-color: rgba(110, 80, 38, .5); }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(236, 213, 163, .14); border-color: rgba(236, 213, 163, .8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
:root[data-theme="light"] .cursor.is-hover .cursor__ring { background: rgba(255, 250, 240, .35); border-color: rgba(110, 80, 38, .6); }
.cursor__label { font: 500 9px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; padding-left: .24em; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .piece__views { top: calc(var(--head-h) + 8px); transform: none; left: 12px; gap: 8px; }
  .view-tab { width: 46px; height: 58px; }
  .view-tab__label { display: none; }
  .focus { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 58px); }
  .scrub { gap: 12px; }
  .rack__mark { top: 34%; font-size: 30vw; }
  .door { width: 100%; height: 50%; padding-bottom: 28px; }
  .door__name { font-size: clamp(48px, 14vw, 72px); }
  .salon__seam { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(236, 213, 163, .8) 30%, rgba(236, 213, 163, .8) 70%, transparent); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chrome__mark { font-size: 15px; letter-spacing: .44em; padding-left: .44em; }
  .chrome__back-label { display: none; }
}
@media (max-width: 900px) {
  /* heading: tighter, and a calm field behind it so the tagline always reads */
  .boutique__head { top: calc(var(--head-h) + 2px); left: 18px; right: 18px; max-width: none; }
  .boutique__title { font-size: clamp(34px, 10vw, 44px); margin: 6px 0 4px; }
  .boutique__line { font-size: 16px; line-height: 1.35; color: var(--ink); opacity: .82; max-width: 34ch; }
  .boutique::before {
    width: 100%; height: 300px;
    background: linear-gradient(180deg, var(--veil) 0%, var(--veil) 45%, transparent 100%);
  }

  /* piece: the page itself scrolls; the panel is a sheet that slides up over the hero */
  .piece { top: var(--head-h); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .piece::-webkit-scrollbar { display: none; }
  body[data-scene="piece"] .piece { pointer-events: auto; }
  .piece__views, .piece__stage { position: fixed; }
  .piece__panel {
    position: relative; top: auto; right: auto; bottom: auto; left: auto; width: auto; max-height: none;
    margin-top: calc(50dvh - var(--head-h)); min-height: calc(50dvh + 24px); border-left: 0; border-right: 0; border-bottom: 0;
    border-radius: 22px 22px 0 0; transform: translateY(40px);
  }
  .piece__panel::before {
    content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px;
    border-radius: 2px; background: var(--line-2);
  }
  .piece__scroll { height: auto; overflow: visible; padding: 30px 20px calc(36px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .entrance__title { font-size: 44px; }
  .btn-enter { padding: 0 30px; letter-spacing: .28em; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal, .look, .piece__panel, .sheet__card { transform: none !important; filter: none !important; }
  .btn-enter::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .piece__panel, .bag, .sheet__card, .btn-enter, .toast { -webkit-backdrop-filter: none; backdrop-filter: none; background: #14110e; }
  :root[data-theme="light"] .piece__panel, :root[data-theme="light"] .bag, :root[data-theme="light"] .sheet__card { background: #f6f0e6; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: rgba(243, 236, 224, .92); --line: rgba(236, 213, 163, .6); }
  :root[data-theme="light"] { --ink-2: rgba(29, 25, 21, .92); --line: rgba(110, 80, 38, .7); }
}
