/* ---------- focus: close (×) back to the cabinet, top-right under the nav ---------- */
.focus-x { position: absolute; top: clamp(84px, 11vh, 108px); right: clamp(16px, 3.4vw, 48px); z-index: 2;
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(10,9,7,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory);
  opacity: 0; transform: translateY(-8px); transition: opacity .6s var(--ease) .25s, transform .6s var(--ease) .25s, border-color .3s; }
.focus.show .focus-x { opacity: 1; transform: none; pointer-events: auto; }
.focus-x:hover { border-color: #fff; }
.focus-x i { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); }
.focus-x i::before, .focus-x i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.focus-x i::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 860px) { .focus-x { top: 70px; padding: 0 8px; } .focus-x span { display: none; } }

/* ---------- product panel: the photographed niche instead of a 3D model ---------- */
.panel-visual canvas { display: none; }
.panel-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.bag-item img { object-fit: contain; background: radial-gradient(circle at 50% 40%, #2a2219, #110e0a 70%); padding: 4px; }

/* ---------- PERSONA, UP CLOSE (scroll-scrubbed film) ---------- */
.pf { position: relative; height: 760vh; background: var(--black); }
.pf-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#pfCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* the film melts into the page above and below instead of ending on a hard edge */
  -webkit-mask-image: linear-gradient(transparent, rgba(0,0,0,.35) 6%, rgba(0,0,0,.8) 13%, #000 20%, #000 66%, rgba(0,0,0,.8) 76%, rgba(0,0,0,.35) 88%, transparent); mask-image: linear-gradient(transparent, rgba(0,0,0,.35) 6%, rgba(0,0,0,.8) 13%, #000 20%, #000 66%, rgba(0,0,0,.8) 76%, rgba(0,0,0,.35) 88%, transparent); }

/* the ghosted word drifting behind the details */
.pf-word { position: absolute; left: 50%; top: 50%; transform: translate(0, -50%); white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 300; font-size: clamp(140px, 26vw, 460px); letter-spacing: .06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.9); opacity: 0; translate: -50% 0; }

/* opening title, before the film begins */
.pf-intro { position: absolute; left: 0; right: 0; top: 50%; margin-top: -120px; text-align: center; pointer-events: none; }
.pf-big { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 11vw, 190px); line-height: .9; letter-spacing: .05em; margin-top: 18px; }
.pf-intro { --p: 0; }
.pf-intro .pf-big { letter-spacing: calc(.05em + var(--p) * .45em); filter: blur(calc(var(--p) * 8px)); }
.pf-intro .eyebrow::after { content: ""; display: block; width: 1px; height: 38px; margin: 18px auto 0; background: rgba(255,255,255,.5); }
.pf-scroll { margin-top: 30px; font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--ivory-dim); }
.pf-scroll::after { content: ""; display: block; width: 1px; height: 54px; margin: 16px auto 0; background: linear-gradient(#fff, transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }

/* chapters: everything is driven by --v (0 → 1 → 0) set from the scroll */
.pf-ch { --v: 0; position: absolute; top: 50%; width: min(460px, 36vw); transform: translateY(-50%); pointer-events: none; visibility: hidden; }
.pf-ch.on { visibility: visible; }
.pf-ch[data-side="left"] { left: clamp(20px, 7vw, 120px); }
.pf-ch[data-side="right"] { right: clamp(90px, 10vw, 170px); text-align: right; }
.pf-tag { display: inline-flex; align-items: center; gap: 14px; font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase;
  opacity: var(--v); transform: translateX(calc((1 - var(--v)) * -30px)); }
.pf-ch[data-side="right"] .pf-tag { flex-direction: row-reverse; transform: translateX(calc((1 - var(--v)) * 30px)); }
.pf-tag { gap: 16px; color: rgba(244,239,230,.75); }
.pf-tag b { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 26px; letter-spacing: .02em; color: #fff; }
.pf-tag b::after { content: ""; display: inline-block; vertical-align: middle; width: calc(var(--v) * 46px); height: 1px; margin-left: 16px; background: rgba(255,255,255,.55); }
.pf-title { font-family: var(--serif); font-weight: 300; font-size: clamp(50px, 6.2vw, 104px); line-height: .98; letter-spacing: -.005em; margin: 22px 0 24px; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.pf-title .it i { font-style: italic; font-weight: 300; }
.pf-title .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
/* letters rise one after another as you scroll in, and fall away as you scroll out */
.pf-title i { --k: 0; display: inline-block; font-style: normal;
  --l: clamp(0, calc(var(--v) * 2.2 - var(--k) * .07), 1);
  transform: translateY(calc((1 - var(--l)) * 105%)) rotate(calc((1 - var(--l)) * 8deg)); opacity: var(--l); }
.pf-text { font-size: 16px; line-height: 1.85; letter-spacing: .01em; color: rgba(244,239,230,.74); max-width: 24em;
  opacity: clamp(0, calc(var(--v) * 1.6 - .5), 1); transform: translateY(calc((1 - var(--v)) * 24px)); }
.pf-ch[data-side="right"] .pf-text { margin-left: auto; }
.pf-ch::after { content: ""; display: block; height: 1px; margin-top: 26px; background: rgba(255,255,255,.5); width: calc(var(--v) * 80px); }
.pf-ch[data-side="right"]::after { margin-left: auto; }

/* marker on the detail */
.pf-spot { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.pf-spot.on { opacity: 1; }
.pf-spot i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); }
.pf-spot i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.55); }
.pf-spot i::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: spot 2.2s var(--ease) infinite; }
@keyframes spot { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.pf-spot span { position: absolute; left: 22px; top: -7px; white-space: nowrap; padding-left: 64px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.pf-spot span::before { content: ""; position: absolute; left: 6px; top: 50%; width: 48px; height: 1px; background: rgba(255,255,255,.7); }

/* the closing card: Persona, notes, price */
.pf-end { --v: 0; position: absolute; left: clamp(20px, 7vw, 120px); top: 50%; width: min(440px, 34vw); transform: translateY(calc(-50% + (1 - var(--v)) * 40px)); opacity: var(--v); visibility: hidden; }
.pf-end.on { visibility: visible; }
.pf-end .pf-big { font-size: clamp(56px, 6.4vw, 110px); margin: 16px 0 20px; }
.pf-end .notes { margin: 26px 0; }
.pf-buy { display: flex; align-items: center; gap: 28px; }
.pf-buy .price { font-weight: 300; font-size: 32px; letter-spacing: .02em; }
.pf-perks { margin-top: 26px; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,239,230,.55); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pf-perks i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.45); }
.pf-end .eyebrow::after { content: ""; display: block; width: 46px; height: 1px; margin-top: 18px; background: rgba(255,255,255,.5); }

/* chapter rail + overall progress */
.pf-rail { position: absolute; right: clamp(16px, 3.4vw, 48px); top: 50%; transform: translateY(-50%); display: grid; gap: 4px; justify-items: end; z-index: 2; }
.pf-rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 28px; padding-left: 16px; color: rgba(255,255,255,.4); transition: color .5s var(--ease); }
.pf-rail button::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .6s var(--ease); }
.pf-rail b { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 14px; }
.pf-rail span { position: absolute; right: 100%; margin-right: 6px; white-space: nowrap; font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.pf-rail button:hover, .pf-rail button.on { color: #fff; }
.pf-rail button:hover span, .pf-rail button.on span { opacity: 1; transform: none; }
.pf-rail button.on::after { width: 42px; }
.pf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: none; }   /* no track: a resting line read as the film's hard edge */
.pf-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

@media (max-width: 860px) {
  .pf { height: 680vh; }
  .pf-ch, .pf-ch[data-side="right"] { left: 20px; right: 70px; width: auto; top: auto; bottom: 64px; transform: none; text-align: left; }
  .pf-ch[data-side="right"] .pf-tag { flex-direction: row; }
  .pf-ch[data-side="right"] .pf-text, .pf-ch[data-side="right"]::after { margin-left: 0; }
  .pf-title { font-size: 44px; margin: 16px 0 12px; }
  .pf-text { font-size: 14.5px; line-height: 1.65; }
  .pf-end { left: 20px; right: 20px; width: auto; top: auto; bottom: 40px; transform: translateY(calc((1 - var(--v)) * 40px)); }
  .pf-end .pf-big { font-size: 56px; margin: 10px 0 12px; }
  .pf-end .notes { display: none; }
  .pf-rail { right: 12px; gap: 8px; }
  .pf-rail button { height: 24px; }
  .pf-perks { display: none; }
  .pf-tag b { font-size: 22px; }
  .pf-rail span, .pf-spot span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pf-spot i::after, .pf-scroll::after { animation: none; } }


/* the nav steps aside while the Persona film plays */
.nav.pf-hide { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* ---------- THE COLLECTION, refined (overrides styles.css) ---------- */
.collection { position: relative; padding-top: clamp(110px, 12vw, 180px); }
/* the 3D collection table (iframe of collection.html?embed): full-bleed, a screen tall */
.coll-table { position: relative; width: 100vw; left: 50%; margin-left: -50vw; margin-top: clamp(24px, 4vw, 56px);
  height: min(92vh, 920px); min-height: 520px; background: var(--black); }
.coll-table iframe { display: block; width: 100%; height: 100%; border: 0; }
.collection::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 90vw); height: 70%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(236,222,196,.06), transparent 70%); }
.sec-head .display { font-size: clamp(48px, 6vw, 96px); letter-spacing: .01em; }
.sec-head .display em { font-style: italic; font-weight: 300; }
.sec-head .body { max-width: 30em; color: rgba(244,239,230,.68); }
.coll-grid { gap: clamp(20px, 2.6vw, 44px); align-items: start; }
@media (min-width: 1021px) { .coll-card:nth-child(even) { margin-top: 72px; } }
.coll-card { position: relative; }
.coll-stage { position: relative; width: 100%; perspective: 1100px; }
/* soft pool of light on the floor beneath each arch */
.coll-stage::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -22px; height: 70px; z-index: -1; border-radius: 50%; filter: blur(24px);
  background: radial-gradient(ellipse at center, rgba(var(--c), .34), transparent 70%); opacity: .55; transition: opacity .8s var(--ease); }
.coll-card:hover .coll-stage::before { opacity: 1; }
.coll-media { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; display: block; border: 0; border-radius: 999px 999px 4px 4px; background: #050403;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(0); transform-style: preserve-3d;
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.14), 0 0 60px -20px rgba(var(--c), .25); }
.coll-card:hover .coll-media { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px); box-shadow: 0 60px 100px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.28), 0 0 90px -16px rgba(var(--c), .4); transition: transform .25s linear, box-shadow .9s var(--ease); }
.coll-media img { transform: scale(1.18); object-position: 50% 64%; filter: brightness(.92) contrast(1.04); }
.coll-card:hover .coll-media img { transform: scale(1.23); filter: brightness(1.06) contrast(1.04); }
/* fine inner double hairline, like a jeweller's case */
.coll-media::after { inset: 0; box-shadow: inset 0 0 0 7px rgba(5,4,3,.92), inset 0 0 0 8px rgba(255,255,255,.2), inset 0 0 0 13px rgba(5,4,3,.0), inset 0 0 0 14px rgba(255,255,255,.07); }
/* light on the glass that follows the cursor */
.coll-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 42%); }
.coll-card:hover .coll-sheen { opacity: 1; }
/* a faint reflection on a black lacquer floor */
.coll-refl { display: none; position: absolute; left: 0; right: 0; top: 100%; height: 34%; overflow: hidden; pointer-events: none; opacity: .22;
  border-radius: 4px 4px 999px 999px / 4px 4px 60px 60px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%); }
.coll-refl img { width: 100%; height: 300%; object-fit: cover; object-position: 50% 63%; transform: scaleY(-1) scale(1.5); transform-origin: 50% 33%; filter: blur(2px); }
.coll-no { margin-top: clamp(44px, 4.6vw, 64px); display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(244,239,230,.62); }
.coll-no i { width: 22px; height: 1px; background: rgba(255,255,255,.35); }
.coll-name { font-size: clamp(22px, 1.9vw, 30px); font-weight: 300; letter-spacing: .34em; margin: 14px 0 0 .34em; }
.coll-line { font-size: 13.5px; color: rgba(244,239,230,.6); margin-top: 14px; max-width: 22em; }
.coll-foot { width: 100%; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.coll-price { font-weight: 300; font-size: 20px; letter-spacing: .02em; }
.coll-acts { display: inline-flex; align-items: center; gap: 12px; }
.coll-acts i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.4); }
.coll-link { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,230,.8); padding: 4px 0; background: linear-gradient(#fff, #fff) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.coll-link:hover { color: #fff; background-size: 100% 1px; }
@media (max-width: 520px) {
  .coll-no { margin-top: 44px; font-size: 13px; } .coll-no i, .coll-no span:last-child { display: none; }
  .coll-name { font-size: 18px; letter-spacing: .24em; margin-left: .24em; }
  .coll-foot { flex-direction: column; gap: 10px; }
  .coll-acts i, .coll-acts .coll-link[data-open] { display: none; }
  .coll-refl { display: none; }
}
