/* joanpass.com/concept and /concept/features: the story cards and their pictures (STORIES-FINAL.md, Luka 2026-10-17:
   "sharp / industrial / collage"). Hard edges, black and white with the badge's red and yellow, cut paper and tape used
   sparingly. Every picture is drawn here in HTML and CSS around the real badge renders (assets/feat-*.webp,
   gallery-*.webp: tools/showcase-pages.mjs) and app screens (assets/app-*.webp: tools/app-shots.mjs); no photos.
   A picture (.sv) is a size container: everything inside is sized in cqw, so it scales as one piece. */

.sv { --ink: #17111e; position: relative; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size; background: #fff;
  border: 2px solid var(--ink); isolation: isolate; }
.sv * { box-sizing: border-box; }

/* ---- The badge: a sharp holder on the purple lanyard printed JOAN, with a taped PROTOTYPE label ---- */
.bdg { --w: 30cqw; position: absolute; z-index: 2; width: var(--w); }
.bdg-holder { position: relative; z-index: 1; background: #fff; padding: calc(var(--w) * 0.13) calc(var(--w) * 0.06) calc(var(--w) * 0.07);
  border: max(1.5px, calc(var(--w) * 0.008)) solid #17111e; box-shadow: calc(var(--w) * 0.045) calc(var(--w) * 0.045) 0 #17111e; }
.bdg-holder img { display: block; width: 100%; height: auto; aspect-ratio: 528 / 768; box-shadow: 0 0 0 1px rgba(23, 17, 30, 0.25); }
.bdg-clip { position: absolute; top: calc(var(--w) * 0.04); width: calc(var(--w) * 0.11); height: calc(var(--w) * 0.045); background: #17111e; }
.bdg-clip.l { left: 21%; } .bdg-clip.r { right: 21%; }
.bdg-strap { position: absolute; z-index: 0; bottom: calc(100% - var(--w) * 0.07); width: calc(var(--w) * 0.14); height: calc(var(--w) * 2.2);
  background: #4205dd; overflow: hidden; display: flex; justify-content: center; transform-origin: 50% 100%; }
.bdg-strap.l { left: 17%; transform: rotate(4deg); } .bdg-strap.r { right: 17%; transform: rotate(-4deg); }
.bdg-strap i { writing-mode: vertical-rl; white-space: nowrap; font: normal 800 calc(var(--w) * 0.085) / 1 var(--display, system-ui);
  letter-spacing: 0.22em; color: #fff; padding-top: calc(var(--w) * 0.08); }
.bdg.flat .bdg-strap, .bdg.flat .bdg-clip { display: none; }
.bdg.flat .bdg-holder { padding: calc(var(--w) * 0.06); }

.tape { position: absolute; z-index: 4; display: inline-block; padding: 0.42em 1.1em 0.38em; background: rgba(255, 213, 0, 0.94); color: #17111e;
  font: 700 calc(var(--w, 30cqw) * 0.068) / 1 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: 0.16em; white-space: nowrap;
  transform: rotate(-9deg); box-shadow: 0 1px 0 rgba(23, 17, 30, 0.18);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 2%, 86% 2%, 91% 9%, 96% 0, 100% 10%, 98% 50%, 100% 92%, 95% 100%, 90% 91%, 85% 100%, 15% 98%, 9% 90%, 4% 100%, 0 90%, 2% 50%); }
.bdg > .tape { bottom: calc(var(--w) * 0.12); right: calc(var(--w) * -0.14); }

/* Torn paper: a white sheet with ragged edges. */
.torn { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(23, 17, 30, 0.08);
  clip-path: polygon(0 3%, 6% 0, 14% 2%, 22% 0, 31% 3%, 40% 0, 50% 2%, 61% 0, 70% 3%, 80% 0, 90% 2%, 100% 0, 99% 25%, 100% 50%, 98% 75%, 100% 100%, 90% 97%, 80% 100%, 69% 98%, 58% 100%, 47% 97%, 36% 100%, 25% 98%, 14% 100%, 5% 97%, 0 100%, 2% 70%, 0 40%); }
.halftone { position: absolute; inset: 0; background-image: radial-gradient(circle at center, var(--dot, rgba(23, 17, 30, 0.22)) 0 32%, transparent 34%);
  background-size: var(--ds, 1.6cqw) var(--ds, 1.6cqw); pointer-events: none; }

/* ---- The phone: an app screen (assets/app-*.webp) in a plain black phone ---- */
.phone { --p: 160px; position: relative; width: var(--p); margin: 0; padding: calc(var(--p) * 0.04); border-radius: calc(var(--p) * 0.13); background: #17111e;
  box-shadow: calc(var(--p) * 0.04) calc(var(--p) * 0.04) 0 rgba(23, 17, 30, 0.22); flex: none; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; border-radius: calc(var(--p) * 0.095); background: #f4f3f7; }
.phone::before { content: ''; position: absolute; top: calc(var(--p) * 0.06); left: 50%; width: calc(var(--p) * 0.07); height: calc(var(--p) * 0.07);
  margin-left: calc(var(--p) * -0.035); border-radius: 50%; background: #17111e; z-index: 1; }

/* ---- The pictures, one per story (story key in the class) ---- */

/* gate: the badge over a torn, halftone strip of a split-flap departures board. */
.sv-gate { background: #f4f3f7; }
.sv-gate .board { left: -4cqw; right: -4cqw; top: 15cqw; height: 44cqw; background: #17111e; transform: rotate(-4deg); padding: 6cqw 8cqw 0; }
.sv-gate .board .halftone { --dot: rgba(255, 255, 255, 0.07); --ds: 1.4cqw; }
.flap { position: relative; display: grid; grid-template-columns: 9fr 14fr 5fr 7fr; gap: 0 1.6cqw; margin: 0 0 1.6cqw; font: 700 2.9cqw / 1 ui-monospace, 'SFMono-Regular', Menlo, monospace;
  letter-spacing: 0.08em; color: #fff; text-transform: uppercase; }
.flap span { padding: 0.9cqw 0.6cqw; background: #2b2531; box-shadow: inset 0 -0.15cqw 0 rgba(0, 0, 0, 0.6); background-image: linear-gradient(to bottom, transparent 48%, #120e16 48% 54%, transparent 54%); }
.flap.head { color: #ffd500; font-size: 2.2cqw; }
.flap.head span { background: transparent; box-shadow: none; padding-left: 0; }
.flap.on span { color: #ffd500; }
.sv-gate .bdg { --w: 31cqw; left: 58cqw; top: 20cqw; }

/* show-now: the app's page list with a Show button per page, a hard arrow, and the badge showing the page picked, under
   a torn entrance sign. */
.sv-show { background: #f4f3f7; }
.sv-show .sign { z-index: 0; left: 39cqw; top: 5cqw; width: 26cqw; padding: 2.6cqw 3cqw 3cqw; background: #17111e; transform: rotate(2deg);
  font: 700 3cqw / 1.15 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.sv-show .sign span, .sv-show .sign b { display: block; }
.sv-show .sign b { color: #ffd500; font-size: 4.6cqw; }
.sv-show .phone { --p: 29cqw; position: absolute; z-index: 2; left: 7cqw; top: 5cqw; transform: rotate(-4deg); }
.sv-show svg.arrow { position: absolute; z-index: 3; left: 38cqw; top: 36cqw; width: 18cqw; height: auto; fill: #17111e; transform: rotate(-6deg); }
.sv-show .bdg { --w: 28cqw; left: 61cqw; top: 22cqw; }

/* bar: the privacy page over a dark, grainy bar counter. */
.sv-bar { background: #15111b; }
.sv-bar .glow { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 0, 0.32), rgba(255, 213, 0, 0) 70%); }
.sv-bar .halftone { --dot: rgba(255, 255, 255, 0.06); --ds: 1.1cqw; }
.sv-bar .shelf { position: absolute; left: 0; right: 0; height: 0.8cqw; background: #2f2836; }
.sv-bar svg.bottles { position: absolute; left: 0; width: 100%; height: auto; }
.sv-bar .counter { position: absolute; left: -2cqw; right: -2cqw; bottom: 0; height: 17cqw; background: #0b090e; border-top: 0.8cqw solid #3a3140; }
.sv-bar .bdg { --w: 29cqw; left: 35.5cqw; top: 14cqw; }
.sv-bar .bdg-holder { box-shadow: calc(var(--w) * 0.045) calc(var(--w) * 0.045) 0 #000; border-color: #000; }

/* details: a cut-out hand holds a phone over the badge; the contact page it opened is pasted beside. */
.sv-details { background: #f4f3f7; }
.sv-details .bdg { --w: 30cqw; left: 6cqw; top: 12cqw; }
.sv-details .hand { position: absolute; z-index: 3; left: 21cqw; top: 41cqw; width: 30cqw; transform: rotate(-14deg); filter: drop-shadow(0.8cqw 0.8cqw 0 rgba(23, 17, 30, 0.9)); }
.sv-details .cut { left: 58cqw; top: 9cqw; width: 34cqw; padding: 4cqw 3.4cqw 5cqw; transform: rotate(3deg); z-index: 1; }
.sv-details .cut > .tape { --w: 30cqw; top: -1.2cqw; left: 10cqw; transform: rotate(-4deg); color: transparent; padding: 1.2cqw 5cqw; background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 1px rgba(23, 17, 30, 0.12); }
.mini-cp { font-family: var(--text, system-ui); color: #17111e; }
.mini-cp .av { display: flex; align-items: center; justify-content: center; width: 9cqw; height: 9cqw; border-radius: 50%; background: #17111e; color: #fff; font: 800 3.4cqw / 1 var(--display, system-ui); }
.mini-cp b { display: block; margin: 2.2cqw 0 0; font: 800 3.6cqw / 1.05 var(--display, system-ui); letter-spacing: -0.02em; }
.mini-cp small { display: block; margin: 0.8cqw 0 0; font-size: 1.9cqw; color: #6b6577; }
.mini-cp i { display: block; margin: 1.6cqw 0 0; padding: 1.4cqw 0; font-style: normal; font-weight: 700; font-size: 2cqw; text-align: center; border: 0.3cqw solid #17111e; }
.mini-cp i.p { background: #4205dd; border-color: #4205dd; color: #fff; margin-top: 2.6cqw; }

/* demo: a strip of paper with the visitor's name taped over the owner's name. */
.sv-demo { background: #ffd500; }
.sv-demo .halftone { --dot: rgba(23, 17, 30, 0.12); --ds: 1.5cqw; }
.sv-demo .bdg { --w: 30cqw; left: 56cqw; top: 13cqw; }
.sv-demo .strip { position: absolute; z-index: 3; left: -10%; width: 104%; top: calc(var(--w) * 0.6); min-height: calc(var(--w) * 0.2); padding: calc(var(--w) * 0.035) calc(var(--w) * 0.08);
  transform: rotate(-3deg); font: 800 calc(var(--w) * 0.12) / 1 var(--display, system-ui); letter-spacing: -0.02em; color: #17111e; box-shadow: calc(var(--w) * 0.02) calc(var(--w) * 0.025) 0 rgba(23, 17, 30, 0.35); }
.sv-demo .strip-tape { position: absolute; z-index: 4; top: calc(var(--w) * 0.55); left: calc(var(--w) * 0.78); width: calc(var(--w) * 0.22); height: calc(var(--w) * 0.11);
  background: rgba(255, 255, 255, 0.7); transform: rotate(14deg); box-shadow: 0 0 0 1px rgba(23, 17, 30, 0.12); }
.sv-demo .label { position: absolute; z-index: 1; left: 6cqw; top: 22cqw; max-width: 44cqw; margin: 0; font: 700 2.2cqw / 1.3 ui-monospace, Menlo, monospace; letter-spacing: 0.1em; color: #17111e; text-transform: uppercase; }
.sv-demo .label b { display: block; font: 800 6.4cqw / 1 var(--display, system-ui); letter-spacing: -0.03em; text-transform: none; margin-top: 1cqw; }

/* me: a video-call tile next to the badge: the same initials twice, cut hard. */
.sv-me { background: #f4f3f7; }
.sv-me .tile { position: absolute; z-index: 1; left: 5cqw; top: 15cqw; width: 50cqw; aspect-ratio: 16 / 10; background: #2a2433; transform: rotate(-3deg);
  clip-path: polygon(0 0, 100% 3%, 97% 100%, 2% 96%); }
.sv-me .tile .av { position: absolute; left: 50%; top: 46%; width: 15cqw; height: 15cqw; margin: -7.5cqw 0 0 -7.5cqw; border-radius: 50%; background: #4205dd; color: #fff;
  display: flex; align-items: center; justify-content: center; font: 800 5.6cqw / 1 var(--display, system-ui); }
.sv-me .tile .who { position: absolute; left: 3cqw; bottom: 2.6cqw; padding: 0.8cqw 1.4cqw; background: rgba(0, 0, 0, 0.5); color: #fff; font: 600 2.1cqw / 1 var(--text, system-ui); }
.sv-me .tile .rec { position: absolute; right: 3cqw; top: 2.6cqw; width: 2cqw; height: 2cqw; border-radius: 50%; background: #f2271c; }
.sv-me .bdg { --w: 28cqw; left: 62cqw; top: 14cqw; }

/* ticket: the badge beside a torn paper ticket stub, crossed out with one hard black line. */
.sv-ticket { background: #f4f3f7; }
.sv-ticket .stub { left: 6cqw; top: 18cqw; width: 46cqw; height: 50cqw; transform: rotate(-6deg); padding: 4cqw 4cqw; background: #fffdf4; }
.stub-in { height: 100%; border: 0.4cqw dashed #b9b6c4; padding: 3cqw; display: flex; flex-direction: column; gap: 1.6cqw;
  font: 700 2.1cqw / 1.2 ui-monospace, Menlo, monospace; letter-spacing: 0.08em; color: #3f3a48; text-transform: uppercase; }
.stub-in b { font: 800 4.8cqw / 1 var(--display, system-ui); letter-spacing: -0.02em; text-transform: none; color: #17111e; }
.stub-in .bars { flex: 1; min-height: 6cqw; background: repeating-linear-gradient(90deg, #17111e 0 0.5cqw, transparent 0.5cqw 0.9cqw, #17111e 0.9cqw 1.6cqw, transparent 1.6cqw 2cqw); }
.sv-ticket .cross { position: absolute; z-index: 2; left: 2cqw; top: 41cqw; width: 58cqw; height: 2.6cqw; background: #17111e; transform: rotate(-38deg); }
.sv-ticket .bdg { --w: 28cqw; left: 63cqw; top: 13cqw; }

/* contact-change: the old title struck through in marker; the same QR on the badge. */
.sv-change { background: #f4f3f7; }
.sv-change .card { left: 5cqw; top: 20cqw; width: 50cqw; padding: 5cqw 5cqw 6cqw; transform: rotate(-4deg); font-family: var(--text, system-ui); color: #17111e; }
.sv-change .card b { display: block; font: 800 5cqw / 1 var(--display, system-ui); letter-spacing: -0.02em; }
.sv-change .card s { position: relative; display: inline-block; margin: 2.6cqw 0 0; font-size: 3.4cqw; text-decoration: none; color: #6b6577; }
.sv-change .card s::after { content: ''; position: absolute; left: -1cqw; right: -1cqw; top: 46%; height: 1.4cqw; background: #17111e; transform: rotate(-3deg); }
.sv-change .card em { display: block; margin: 1.6cqw 0 0; font: italic 800 4.4cqw / 1 var(--display, system-ui); color: #f2271c; transform: rotate(-3deg); }
.sv-change .card small { display: block; margin: 2.4cqw 0 0; font-size: 2.3cqw; color: #3f3a48; }
.sv-change .bdg { --w: 28cqw; left: 63cqw; top: 13cqw; }

/* image: a sticky-note sketch taped next to the badge, which shows the same picture. */
.sv-image { background: #f4f3f7; }
.sv-image .note { position: absolute; z-index: 1; left: 8cqw; top: 20cqw; width: 38cqw; aspect-ratio: 1; padding: 3cqw; background: #ffe866; transform: rotate(-5deg);
  box-shadow: 1cqw 1.2cqw 0 rgba(23, 17, 30, 0.18); }
.sv-image .note svg { display: block; width: 100%; height: 100%; }
.sv-image .note > .tape { --w: 30cqw; top: -2cqw; left: 11cqw; transform: rotate(3deg); background: rgba(255, 255, 255, 0.75); color: transparent; padding: 1.4cqw 4cqw; }
.sv-image .bdg { --w: 28cqw; left: 60cqw; top: 13cqw; }

/* update: top-down, phone and badge on a hotel breakfast tray, a coffee ring on the paper. */
.sv-update { background: #d9d5df; }
.sv-update .tray { position: absolute; left: 5cqw; right: 5cqw; top: 6cqw; bottom: 6cqw; background: #f6f5f1; box-shadow: 1.2cqw 1.2cqw 0 #17111e; border: 2px solid #17111e; }
.sv-update .ring { position: absolute; z-index: 1; left: 10cqw; top: 38cqw; width: 20cqw; height: 20cqw; border-radius: 50%; border: 1.3cqw solid rgba(122, 82, 40, 0.28);
  box-shadow: inset 0 0 0 0.5cqw rgba(122, 82, 40, 0.12); transform: scaleY(0.94); }
.sv-update .phone { --p: 25cqw; position: absolute; z-index: 2; left: 22cqw; top: 10cqw; transform: rotate(-7deg); }
.sv-update .bdg { --w: 24cqw; left: 58cqw; top: 15cqw; transform: rotate(5deg); }
.sv-update .napkin { left: 52cqw; top: 9cqw; width: 36cqw; height: 52cqw; transform: rotate(-3deg); background: #fff; }

/* ---- Idea pictures: grey line drawings only (no renders) ---- */
.idea-art { position: relative; aspect-ratio: 4 / 3; margin: 0; background: #fff; border: 1.5px dashed #b9b6c4; display: flex; align-items: center; justify-content: center; }
.idea-art svg { width: 86%; height: 86%; stroke: #8c8797; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.idea-art svg text { fill: #8c8797; stroke: none; font: 600 13px var(--text, system-ui); }
.idea-art svg .fill { fill: #e9e7ee; stroke: none; }
.idea-art svg .paper { fill: #fff; }
