/* showcase.css · the unlisted preview's two additions (2026-11-20, for Adrian to review): Lucia's before and after,
   first in the work section, and the toy box's vinyl stickers stuck around the page (showcase.js). */

/* ------------------------------------------------------------------------------- Lucia's: before and after */
.tone-lucia { --tone: #d3241c; }
[data-lucia] { --split: 50%; }
.lu-bar-tag { flex: none; font: 700 10.5px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: rgba(0, 0, 0, .45); }
.lu-bar-b { margin-left: 6px; }
.lu-view { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lu-view .lu-img { pointer-events: none; -webkit-user-drag: none; }
.lu-scroll-stub { display: none; }                         /* (the site's window scrolling expects one: nothing to scroll here) */
.lu-before { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.lu-pizza { position: absolute; display: block; object-fit: cover; pointer-events: none;      /* (its edges melt into the page's red) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect; }
.lu-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(20, 14, 30, .18), 0 0 18px rgba(20, 14, 30, .35); pointer-events: none; }
.lu-knob { position: absolute; top: 14%; left: var(--split); width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid;   /* (between the new site's header pills and its tag; clear of the little phone) */
  place-items: center; border-radius: 50%; background: #fff; color: #17151c; touch-action: none;
  box-shadow: 0 1px 2px rgba(20, 14, 30, .25), 0 8px 24px rgba(20, 14, 30, .28); transition: transform .18s; }
.lu-knob svg { width: 26px; height: 26px; }
.lu-view.dragging .lu-knob { transform: scale(1.08); }
.lu-knob.lu-hint::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff;
  animation: lu-pulse 1.2s cubic-bezier(.2, .7, .3, 1) 2; pointer-events: none; }
@keyframes lu-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.lu-knob:focus-visible { outline: 3px solid #7a63ff; outline-offset: 3px; }
.lu-phone { overflow: hidden; pointer-events: none; }
.lu-phone .lu-line { width: 2px; margin-left: -1px; }
.lu-phone .lu-knob { display: none; }
.js:not(.no-cursor) .lu-view, .js:not(.no-cursor) .pst-hit, html.js:not(.no-cursor).pst-dragging * { cursor: url(/assets/cursor-up.svg) 5 5, pointer; }
@media (max-width: 860px) {
  .lu-knob { top: 20%; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .lu-knob svg { width: 22px; height: 22px; }
  .lu-bar-tag { font-size: 9.5px; letter-spacing: .1em; }
}

/* ------------------------------------------------------------------------------------------------ stickers */
.pst-hits { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 46; }
.pst-hit { position: absolute; left: 0; top: 0; touch-action: none; -webkit-tap-highlight-color: transparent; }
html.pst-dragging { -webkit-user-select: none; user-select: none; }

/* --------------------------------------------- websites you can touch: four live pieces from the toy box (11-21) */
.touch { padding: clamp(40px, 8vw, 110px) 0 clamp(20px, 4vw, 40px); }
.tch-lead { margin-top: 18px; max-width: 560px; font: 400 clamp(17px, 1.5vw, 20px)/1.5 var(--ui); color: var(--ink-2); }
.tch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.tch-card { min-width: 0; }
.tch-stage { position: relative; aspect-ratio: 360 / 560; max-width: 100%; border-radius: 22px; overflow: hidden; background: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px rgba(0, 0, 0, .45); -webkit-tap-highlight-color: transparent; }
.tch-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tch-tip { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 12px; border-radius: 99px;
  background: rgba(20, 18, 28, .72); color: #fff; font: 600 12.5px/1 var(--ui); white-space: nowrap; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .4s; }
.tch-card.played .tch-tip { opacity: 0; }
.tch-h { margin-top: 18px; font: 700 clamp(19px, 1.6vw, 22px)/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.tch-p { margin-top: 8px; font: 400 15px/1.5 var(--ui); color: var(--ink-2); }
.tch-fits { margin-top: 10px; font: 700 11.5px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--violet-2); }
.tch-cta { margin-top: clamp(36px, 5vw, 60px); display: flex; justify-content: center; }
@media (max-width: 1060px) { .tch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 600px) {     /* (phones: one under another, narrower than the screen: the sides stay free to scroll) */
  .tch-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .tch-card { width: 78%; margin-inline: auto; }
  .tch-card:nth-child(even) { transform: translateX(6%); } .tch-card:nth-child(odd) { transform: translateX(-6%); }
}

/* ------------------------------------------------- on a phone, the phone version leads (Adrian, 2026-11-21: "on mobile,
   shouldnt the mobile version of the sites be bigger than the desktop version?"): the phone big in front, the computer
   window smaller behind it, sides alternating (Lucia's phone on the "before" side, so the new site shows in the window) */
@media (max-width: 860px) {
  .project-media { padding-bottom: calc(61% - 36px); }      /* (room for the phone hanging below the window) */
  .project-media .window { width: 80%; }
  .project.flip .project-media .window { margin-left: auto; }
  .project .phone-mini, .project.flip .phone-mini { width: 44%; min-width: 0; top: auto; bottom: 0; right: 0; left: auto; border-radius: 26px; border-width: 5px; }
  .project.flip .phone-mini, .project.flip .phone-mini.lu-phone { right: auto; left: 0; }
  .project-copy { margin-top: 26px; }
  .lu-window .window-url { display: none; }                  /* (no room beside Before and After) */
  .lu-phone { pointer-events: auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
  .lu-phone img { pointer-events: none; -webkit-user-drag: none; }
  .lu-phone .lu-knob { display: grid; top: 44%; width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .lu-phone .lu-knob svg { width: 20px; height: 20px; }
}
