/* PREVIEW ONLY: Lab v3, "Welcome to the Lab". The pink world of the rest of the site, seen from inside the lab. */
body[data-lab3] { background: #f6dfe1; color: #4a0a17; }
body[data-lab3] .footer { background: #f6dfe1; }
.lb { position: relative; overflow-x: clip; }
/* site.css has a lightbox dialog also called .lb (one screen tall, dark): undo it on the Lab main */
main.lb { width: auto; height: auto; background: none; color: inherit; }

/* labels: embossed label-maker tape */
.lb-dymo { display: inline-block; margin: 0; padding: .55em 1em .5em; border-radius: 2px; background: #e46c97; color: #fff; font-family: "Courier Prime", ui-monospace, monospace; font-weight: 700; font-size: clamp(10px, .85vw, 12px); letter-spacing: .26em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 -1px 0 rgba(0, 0, 0, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 18px -10px rgba(60, 0, 20, .6); }
.lb-dymo[data-tint="pink"] { background: #e46c97; }

/* 1. the entrance: the glass tank, scrubbed by scroll */
.lb-in { position: relative; height: 160vh; }
.lb-in__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #f3d6d6; }
.lb-in__poster, .lb-in__cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lb-in__cv { opacity: 0; transition: opacity .4s ease; }
.lb-in.is-ready .lb-in__cv { opacity: 1; }
.lb-in__h { position: absolute; left: 0; right: 0; bottom: clamp(40px, 9vh, 110px); margin: 0; text-align: center; color: #fff; font-family: var(--serif, "Bodoni Moda", serif); font-weight: 400; line-height: .86;
  text-shadow: 0 2px 40px rgba(120, 20, 50, .35); opacity: var(--ho, 1); transform: translateY(var(--hy, 0)); }
.lb-in__h span { display: block; font-size: clamp(16px, 1.6vw, 24px); letter-spacing: .5em; text-transform: uppercase; margin-bottom: .6em; font-family: inherit; }
.lb-in__h em { display: block; font-size: clamp(110px, 21vw, 340px); letter-spacing: -.02em; }
.lb-in__hint { position: absolute; top: calc(var(--nav-h, 60px) + 24px); left: 0; right: 0; margin: 0; text-align: center; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(74, 10, 23, .7); opacity: var(--ho, 1); }
.lb-in__hint::after { content: " \2193"; }
/* the cloud that carries you in: soft billows rise from below and become the room's own pink, so there is no seam */
.lb-in__pour { display: none; }
.lb-in__pour::before, .lb-in__pour::after { content: ""; position: absolute; left: -25%; right: -25%; height: 240%; will-change: transform; }
.lb-in__pour::before { top: 100%; transform: translate3d(calc(var(--w, 0) * -4%), calc(var(--w, 0) * -26%), 0); filter: blur(22px);
  background:
    radial-gradient(14% 7% at 10% 8%, #fff 40%, transparent 100%), radial-gradient(12% 8% at 24% 5%, #fbeaed 45%, transparent 100%),
    radial-gradient(16% 8% at 40% 9%, #fff 40%, transparent 100%), radial-gradient(11% 7% at 55% 4%, #f7d9de 45%, transparent 100%),
    radial-gradient(15% 8% at 70% 8%, #fdf2f4 40%, transparent 100%), radial-gradient(12% 7% at 86% 5%, #fff 45%, transparent 100%),
    radial-gradient(9% 5% at 33% 2%, #f3c9d1 40%, transparent 100%), radial-gradient(9% 5% at 78% 2%, #f8dde2 40%, transparent 100%),
    linear-gradient(to bottom, transparent 7%, #fcf0f2 14%, #f6dfe1 34%); }
.lb-in__pour::after { top: 100%; transform: translate3d(calc(var(--w, 0) * 5%), calc(var(--w, 0) * -21%), 0); filter: blur(30px); opacity: .85;
  background:
    radial-gradient(13% 9% at 16% 9%, #f3c2cc 40%, transparent 100%), radial-gradient(15% 9% at 46% 6%, #fff 40%, transparent 100%),
    radial-gradient(13% 8% at 74% 9%, #f6d1d8 40%, transparent 100%), radial-gradient(10% 6% at 94% 6%, #fff 40%, transparent 100%),
    radial-gradient(1.2% .5% at 30% 3%, #fff 60%, transparent 100%), radial-gradient(1% .4% at 62% 1%, #fff 60%, transparent 100%),
    linear-gradient(to bottom, transparent 10%, #fbe9ec 20%, #f6dfe1 40%); }
.lb-in__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16vh; background: linear-gradient(to bottom, rgba(246, 223, 225, 0), #f6dfe1); pointer-events: none; }

/* 2. inside the lab */
.lb-room { position: relative; margin-top: -2px; }
.lb-room__bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; background: url("art/lab3/lab.webp") 50% 40% / cover no-repeat; }
.lb-room__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #f6dfe1, rgba(246, 223, 225, .35) 30%, rgba(246, 223, 225, .5) 70%, #f6dfe1); }
.lb-intro { position: relative; min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 18vh 24px 8vh; }
.lb-intro__h { margin: 0; font-family: var(--serif, "Bodoni Moda", serif); font-size: clamp(44px, 7vw, 110px); line-height: .95; color: #4a0a17; }
.lb-intro__h em { display: block; }
.lb-intro__p { margin: 0; max-width: 40ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.65; color: #5c1a2a; }

.lb-sp { position: relative; padding: 6vh 0; }
.lb-sp--full .lb-sp__media { position: relative; width: 100%; height: 100vh; height: 100svh; cursor: zoom-in; }
.lb-sp--full video { width: 100%; height: 100%; object-fit: cover; display: block; background: #e9b9c2;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); }
.lb-sp--soft video { -webkit-mask-image: radial-gradient(130% 110% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(130% 110% at 50% 50%, #000 62%, transparent 100%); }
.lb-sp__tag { position: absolute; left: clamp(20px, 4vw, 64px); bottom: calc(6vh + clamp(24px, 5vh, 56px)); display: grid; justify-items: start; gap: 10px; }
.lb-sp__tool { margin: 0; font-family: "Caveat", cursive; font-size: clamp(20px, 1.8vw, 28px); color: #fff; text-shadow: 0 1px 14px rgba(80, 0, 30, .45); }
.lb-sp--pair { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(16px, 3vw, 48px); align-items: center; padding: 10vh clamp(20px, 6vw, 110px); min-height: 100vh; }
.lb-sp--flip { grid-template-columns: .85fr 1.15fr; }
.lb-pic { position: relative; margin: 0; cursor: zoom-in; }
.lb-sp, .lb-intro, .lb-end { isolation: isolate; }
.lb-pic img { display: block; width: 100%; height: auto; }
.lb-sp--pair .lb-pic:nth-child(2) { margin-top: 18vh; }

/* notes */
.lb-n { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)) translateY(calc(var(--py, 0) * 1px)); z-index: 3; }
.lb-n p { margin: 0; }
.lb-n--pad { padding: 14px 22px 16px 38px; color: #2c2a4a; box-shadow: 0 24px 40px -24px rgba(60, 0, 20, .6);
  background: linear-gradient(90deg, transparent 26px, rgba(220, 80, 100, .5) 26px, rgba(220, 80, 100, .5) 27px, transparent 27px), repeating-linear-gradient(to bottom, #fbf8f1 0, #fbf8f1 29px, rgba(110, 150, 200, .45) 29px, rgba(110, 150, 200, .45) 30px); }
.lb-n--pad p { font-family: "Caveat", cursive; font-size: clamp(22px, 1.9vw, 28px); line-height: 30px; white-space: nowrap; }
.lb-n--postit { width: clamp(110px, 10vw, 150px); aspect-ratio: 1; padding: 14px; background: #9fe0d6; color: #1d2b33; box-shadow: 0 18px 26px -14px rgba(60, 0, 20, .6); border-bottom-right-radius: 18% 6%; }
.lb-n--postit[data-tint="pink"] { background: #f7b6cf; color: #3d0d22; }
.lb-n--postit p { font-family: "Caveat", cursive; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.lb-n--type { padding: .55em .9em; background: #fbf8f1; color: #1b1418; box-shadow: 0 16px 24px -14px rgba(60, 0, 20, .6); }
.lb-n--type p { font-family: "Courier Prime", ui-monospace, monospace; font-size: clamp(12px, 1vw, 15px); white-space: nowrap; }

/* 3. the bench: one controlled mess on the marble */
.lb-bench { position: relative; padding: 12vh clamp(16px, 4vw, 64px) 16vh; text-align: center; }
.lb-bench__in { position: relative; height: clamp(900px, 120vw, 1500px); max-width: 1500px; margin: 6vh auto 0; text-align: left; }
.lb-b { position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * 1%); margin: 0; cursor: zoom-in; transform: rotate(var(--r)) translateY(calc(var(--py, 0) * 1px)); transition: filter .3s ease; }
.lb-b img { display: block; width: 100%; height: auto; }
/* every picture floats on its own soft cloud, with a little dust: no hard frame */
.lb-b--img { isolation: isolate; }
.lb-pic::before, .lb-b--img::before { content: ""; position: absolute; inset: -20% -18% -24%; z-index: -1; pointer-events: none; filter: blur(24px);
  background: radial-gradient(56% 52% at 50% 50%, rgba(255, 255, 255, .95) 55%, transparent 100%), radial-gradient(26% 22% at 8% 12%, #fff 30%, transparent 100%), radial-gradient(24% 22% at 94% 90%, #fff 30%, transparent 100%), radial-gradient(42% 38% at 30% 30%, #fff 30%, transparent 100%), radial-gradient(40% 40% at 72% 36%, #fdf1f3 30%, transparent 100%),
    radial-gradient(46% 36% at 50% 72%, #fbe6ea 30%, transparent 100%), radial-gradient(30% 30% at 16% 70%, #fff 20%, transparent 100%), radial-gradient(30% 28% at 88% 74%, #f8dce2 20%, transparent 100%); }
.lb-pic::after, .lb-b--img::after { content: ""; position: absolute; inset: -10%; z-index: 2; pointer-events: none; opacity: .9;
  background: radial-gradient(circle at 6% 22%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 94% 12%, #fff 0 2px, transparent 3px), radial-gradient(circle at 97% 64%, #fff 0 1.2px, transparent 2px),
    radial-gradient(circle at 3% 82%, #fff 0 2px, transparent 3px), radial-gradient(circle at 40% 97%, #fff 0 1.4px, transparent 2.4px), radial-gradient(circle at 70% 3%, #fff 0 1.2px, transparent 2px),
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, .7) 0 1px, transparent 2px), radial-gradient(circle at 86% 95%, rgba(255, 255, 255, .8) 0 1.5px, transparent 2.5px); }
.lb-pic img, .lb-b--img img { border-radius: clamp(10px, 1.4vw, 20px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 30px 60px -34px rgba(150, 50, 90, .45);
  animation: lb-float 7s ease-in-out infinite alternate; }
.lb-pic:nth-child(2n) img, .lb-b--img:nth-child(3n) img { animation-duration: 9s; animation-delay: -3s; }
.lb-b--img:nth-child(3n+1) img { animation-duration: 8s; animation-delay: -5s; }
@keyframes lb-float { from { translate: 0 -6px; } to { translate: 0 8px; } }
.lb-b--obj img, .lb-b--l3 img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .5)) drop-shadow(0 22px 22px rgba(90, 10, 40, .3)); }

/* 4. the end */
.lb-end { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 70px); padding: 6vh clamp(20px, 6vw, 110px) 12vh; background: linear-gradient(to bottom, #f6dfe1, #fbf3f3 40%, #fbf3f3); }
.lb-end__girl { width: 100%; height: auto; max-height: 92vh; object-fit: contain; -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 62%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 45%, #000 62%, transparent 100%); mix-blend-mode: multiply; }
.lb-end__copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: 22px; }
.lb-end__h { margin: 0; font-family: var(--serif, "Bodoni Moda", serif); font-size: clamp(48px, 6.5vw, 110px); line-height: .95; color: #4a0a17; }
.lb-end__h em { display: block; }
.lb-end__p { margin: 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: #5c1a2a; }
.lb-end__credit { margin: 18px 0 0; max-width: 44ch; font-size: 12px; line-height: 1.7; color: rgba(74, 10, 23, .5); }

/* the pin-up face beside the intro: she came out of the glass as the doll */
.lb-intro--duo { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); place-content: center; align-items: center; gap: clamp(24px, 5vw, 90px); max-width: 1400px; margin: 0 auto; text-align: left; justify-items: stretch; }
.lb-intro__txt { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.lb-intro__pic { max-width: 560px; justify-self: end; }
/* notes written on the pictures */
.lb-anno { position: absolute; right: -4%; bottom: 7%; z-index: 3; padding: .3em .7em .35em; background: #fff7f9; color: #c2185b; font-family: "Caveat", cursive; font-size: clamp(20px, 1.7vw, 28px); line-height: 1; transform: rotate(-4deg); box-shadow: 0 14px 22px -14px rgba(90, 10, 40, .55); white-space: nowrap; }
.lb-anno--l { right: auto; left: -3%; bottom: 10%; transform: rotate(3deg); }
/* the end: the doll on a beige card, floating like the rest */
.lb-end__pic { max-width: 520px; justify-self: center; }

/* reveal */
.lb-pic, .lb-sp__media, .lb-b, .lb-intro > * { opacity: 0; transition: opacity 1s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.lb-sp__media, .lb-pic { transform: translateY(40px) scale(.97); }
.is-in, .lb-intro.is-in > * { opacity: 1; }
.lb-pic.is-in, .lb-sp__media.is-in { transform: none; }

/* picked up */
.lb-open { position: fixed; inset: 0; z-index: 60; cursor: zoom-out; background: rgba(60, 10, 30, 0); transition: background .5s ease, backdrop-filter .5s ease; }
.lb-open.is-on { background: rgba(60, 10, 30, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb-open__pic { position: fixed; display: block; object-fit: contain; border-radius: 18px; box-shadow: 0 50px 90px -30px rgba(40, 0, 15, .8); will-change: transform; }
.lb-open__cap { position: fixed; left: 0; right: 0; margin: 0; padding: 0 20px; text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .4s ease .25s; }
.lb-open__cap span { display: block; margin-top: 8px; font-size: 9px; letter-spacing: .3em; opacity: .7; }
.lb-open.is-on .lb-open__cap { opacity: 1; }
.lb-open__x { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(74, 10, 23, .35); color: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 760px) {
  .lb-in { height: 150vh; }
  .lb-intro { min-height: 0; padding: 4vh 20px 4vh; }
  .lb-intro--duo { grid-template-columns: 1fr; }
  .lb-intro__pic { width: 72%; justify-self: center; }
  .lb-room__bg::after { background: linear-gradient(to bottom, #f6dfe1, rgba(246, 223, 225, .35) 18%, rgba(246, 223, 225, .5) 70%, #f6dfe1); }
  .lb-in__poster, .lb-in__cv { inset: 14svh 0 auto; height: 56svh; object-position: 50% 30%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent); }
  .lb-in__stage { background: radial-gradient(120% 60% at 50% 42%, #f6dcdc, #f0cdd0 70%, #ecc3c8); }
  .lb-in__h { bottom: 19svh; }
  .lb-sp--pair, .lb-sp--flip { grid-template-columns: 1fr; padding: 8vh 20px; }
  .lb-sp--pair .lb-pic:nth-child(2) { margin-top: 0; width: 78%; justify-self: end; }
  .lb-sp--full .lb-sp__media { height: 78svh; }
  .lb-bench__in { height: auto; columns: 2; column-gap: 16px; padding: 0 4px; }
  .lb-b, .lb-n { position: relative; left: auto; top: auto; display: inline-block; width: 100%; margin: 0 0 22px; break-inside: avoid; }
  .lb-n { width: auto; }
  .lb-n--postit { width: 128px; }
  .lb-sp--pair .lb-pic + .lb-pic { margin-top: 8vh; }
  .lb-bench { padding-bottom: 24vh; }
  .lb-anno { font-size: 18px; right: -2%; }
  .lb-anno--l { left: -2%; }
  .lb-b:nth-of-type(n+13) { display: none; }
  .lb-n--pad p { font-size: 20px; }
  .lb-end { grid-template-columns: 1fr; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .lb-pic, .lb-sp__media, .lb-b, .lb-intro > * { opacity: 1; transform: none; transition: none; } .lb-pic img, .lb-b--img img { animation: none; } }
/* the lab fades into the ending: no straight edge */
.lb-end::before { content: ""; position: absolute; left: 0; right: 0; top: -18vh; height: 18vh; background: linear-gradient(to bottom, rgba(246, 223, 225, 0), #f6dfe1); pointer-events: none; }
/* the end: the lollipop floats beside the last words */
.lb-end__lolly { margin: 0; justify-self: center; width: min(72%, 440px); }
.lb-end__lolly img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(150, 50, 90, .28)); animation: lb-float 6s ease-in-out infinite alternate; }
@media (max-width: 760px) { .lb-end__lolly { width: 58%; } }
