/* ── The couple, the try-on (outfit dissolve + accessories worn on the body), the stage light on white paper, the cover type. Loaded after cover-line.css, so the stage/type rules below override its defaults. ── */

/* ── Stage light, re-tuned for white: a near-invisible warm daylight from the upper-left, a faint seamless-backdrop horizon, one soft pool under the pair ── */
.stage .light{background:radial-gradient(110% 80% at 14% -8%,rgba(246,240,228,.75),rgba(246,240,228,0) 58%)}
.stage .vignette{background:radial-gradient(85% 85% at 50% 45%,rgba(0,0,0,0) 64%,rgba(60,44,24,.045) 100%)}
.stage .glow{background:radial-gradient(50% 50% at 50% 62%,rgba(223,200,150,.2),rgba(223,200,150,0) 70%)}
.stage .floor{height:24svh;background:
  radial-gradient(min(36vw,520px) 9svh at 50% 100%,rgba(60,44,24,.1),rgba(60,44,24,0) 72%),
  linear-gradient(180deg,rgba(60,44,24,0) 0%,rgba(60,44,24,0) 60%,rgba(60,44,24,.022) 64%,rgba(60,44,24,.04) 100%)}

/* ── The couple: ONE photograph (img/couple.webp, 1154×1400, transparent) — she sits on the gold chair, he stands beside it.
   Large, horizontally centred, bottom-anchored on the stage floor, in front of the cord and the prints (z 400 > 300) and behind the headline (450). ── */
.figures{position:absolute;left:50%;bottom:clamp(6px,1.4svh,16px);z-index:400;height:min(74svh,900px);transform:translateX(-50%);pointer-events:none}
.fig.couple{position:relative;height:100%;aspect-ratio:1154/1400}
.fig .base{position:absolute;inset:0;width:100%;height:100%;z-index:1}
/* the floor contact: three soft pools in % of the photograph — under her feet, the chair's base, his shoes */
.fig .contact{position:absolute;z-index:0;border-radius:50%;pointer-events:none}
/* each contact: a tight dark core where the object meets the floor + a wide soft falloff (light from the upper left, so shadows lean right) */
.fig .contact::before,.fig .contact::after{content:"";position:absolute;border-radius:50%}
.fig .contact::before{inset:-60% -18% -60% -6%;background:radial-gradient(50% 50% at 50% 50%,rgba(40,28,14,.16),rgba(40,28,14,0) 70%);filter:blur(10px)}
.fig .contact::after{inset:20% 6%;background:radial-gradient(50% 50% at 50% 50%,rgba(30,20,10,.42),rgba(30,20,10,0) 75%);filter:blur(3px)}
.fig .contact.c-her{left:4%;width:12%;top:96.4%;height:3.6%}
.fig .contact.c-chair{left:37%;width:26%;top:92.6%;height:3.6%}
.fig .contact.c-him{left:66%;width:34%;top:87.6%;height:3.6%}
/* a soft wash of shadow behind the pair on the backdrop (a blurred shape, not a filter on the photograph) */
.figures::before{content:"";position:absolute;z-index:0;left:4%;right:-2%;top:6%;bottom:2%;border-radius:50%;pointer-events:none;
  background:radial-gradient(50% 50% at 52% 55%,rgba(40,28,14,.07),rgba(40,28,14,0) 72%);transform:translate(4%,3%);filter:blur(26px);opacity:0;transition:opacity 2s .5s ease}
.ready .figures::before{opacity:1}

/* an outfit photo (BOARDS[i].fig, same framing as the base), tried on: it dissolves in over the base photograph. Pure opacity: the renders share the base photo's framing and alpha, so a fully opaque layer sits exactly on the base and nothing doubles.
   Stacking rule (so the base never bleeds through between two looks): the incoming layer is always placed ABOVE (cover.js sets its z-index highest) and fades in over whatever is there; the outgoing layer stays opaque underneath and is dropped only once the incoming fade has ended — instantly (.cut). Only a revert to the base fades a layer out (.off). */
.fig .lyr{position:absolute;inset:0;opacity:0;z-index:2;background:center/contain no-repeat;will-change:opacity;transition:opacity .6s cubic-bezier(.45,0,.2,1);pointer-events:none}
.fig .lyr.on{opacity:1}
.fig .lyr.off{opacity:0}
.fig .lyr.cut{opacity:0;transition:none}

/* ── The accessories, worn (cover.js builds them from img/acc/manifest.json → `worn`): #worn is the photograph's own box, so every item scales with it.
   Each item: a full-box layer (.wz, optionally clipped below a trouser hem or masked to the floor behind a foot) holding one cut-out (.wi) placed by its anchor in %,
   rotated to the body. In: opacity 0→1 over 600ms with a 2px settle, 60ms apart. Out: 400ms fade. No flight, no float. ── */
.fig .worn{position:absolute;inset:0;z-index:60;pointer-events:none}
.wz{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .6s cubic-bezier(.4,0,.2,1) var(--d,0ms);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.wz.in{opacity:1}
.wz.out{opacity:0;transition:opacity .4s ease 0ms}
.wi{position:absolute;display:block}
.wi img{display:block;width:100%;height:auto;user-select:none;transform:translate3d(0,-2px,0);transition:transform .6s var(--ease) var(--d,0ms);
  filter:drop-shadow(0 1px 1.2px rgba(30,20,10,.28))}
.wz.in .wi img{transform:none}
.wz[data-kind="shoes"] .wi img{filter:drop-shadow(0 2px 2px rgba(30,20,10,.3))}
.wz[data-kind="necklace"] .wi img,.wz[data-kind="earrings"] .wi img{filter:drop-shadow(0 1px 1px rgba(30,20,10,.3))}
@media (prefers-reduced-motion:reduce){
  .wz{transition:opacity .3s ease}
  .wi img{transform:none;transition:none}
}

/* entrance */
.fig .base,.fig .contact{opacity:0;transition:opacity 1.6s .2s ease,transform 2.2s .2s var(--ease)}
.fig .base{transform:translate3d(0,26px,0)}
.fig .contact{transition-delay:1s}
.ready .fig .base{opacity:1;transform:none}
.ready .fig .contact{opacity:1}

/* ── Cover type on white: halos become white; the headline centred under the masthead, in front of everything ── */
.cover-line{text-shadow:0 0 34px rgba(255,255,255,1),0 0 14px rgba(255,255,255,.9),0 0 4px rgba(255,255,255,.9)}
.look-tag{text-shadow:0 0 24px rgba(255,255,255,1),0 0 10px rgba(255,255,255,.9)}
.look-tag .cap{transition:opacity 1.2s 1s ease,color .9s ease}
.look-tag .bar{transition:opacity .9s ease}
.look-tag:not(.active) .name,.look-tag:not(.active) .bar{opacity:0}
.look-tag:not(.active) .cap{color:var(--ink-45)}
.look-tag:not(.active) .cap .gold{color:inherit}

.hint{position:absolute;z-index:450;left:50%;bottom:clamp(40px,9svh,96px);transform:translateX(-50%);white-space:nowrap;pointer-events:none;opacity:0;transition:opacity 1.2s 1.6s ease;display:flex;align-items:center;gap:12px}
.hint i{display:block;width:1px;height:28px;background:linear-gradient(var(--champ),rgba(179,147,97,0));animation:drip 2.4s ease-in-out infinite}
@keyframes drip{0%{transform:scaleY(0);transform-origin:top}45%{transform:scaleY(1);transform-origin:top}55%{transform:scaleY(1);transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
.ready .hint{opacity:1}
.hint.off{opacity:0;transition-delay:0s;transition-duration:.5s}

.look-tag{display:none!important}

/* phone: headline on top, the cord below it, the couple ≈52svh tall, centred (these outrank the page's own phone rules, which load after this sheet) */
@media (max-width:860px){
  .stage .cover-line{left:50%;top:11svh;bottom:auto;max-width:92vw;transform:translateX(-50%)}
  .stage .cover-line h1{font-size:clamp(29px,8vw,42px)}
  .stage .figures{left:50%;bottom:clamp(6px,1.4svh,14px);height:min(52svh,560px);transform:translateX(-50%)}
  .wi img{filter:drop-shadow(0 1px 1px rgba(30,20,10,.26))}
}


/* while a look is on, the base photograph and the previous look fade out beneath the new one, so no edge of an earlier outfit shows */
.fig .lyr.leaving{opacity:0;transition:opacity .45s cubic-bezier(.4,0,.6,1) .3s}
.fig.couple.dressed .base{opacity:0;transition:opacity .45s cubic-bezier(.4,0,.6,1) .3s}
.ready .fig.couple.tried:not(.dressed) .base{transition:opacity .55s cubic-bezier(.45,0,.2,1)}
