/* Pop-ups for voicecraft.io: the eight designs (a proposal, 26 Nov 2026; docs/19-popups-flows.md §6). Loaded by
   vcpop.js into a page that already has tokens/voicecraft.css and site/assets/site.css, whose variables it uses.

   Doc 05 holds here: no pill radius (controls 6.4px, chips 4px, pictures 0), no coloured rails down a side, no faded
   capitals above a heading, hover a change of colour only. Arrival is the ink settle (soft-to-sharp, dim-to-full;
   nothing moves). Only design 7 covers the page, and only on a window at least 900 px wide; otherwise on a laptop
   information sits bottom-left, the ask bottom-right, the top bar under the header; on a phone each is one small
   sheet or strip. */

@keyframes vp-ink { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }

.vp {
  position: fixed; z-index: 45; bottom: calc(16px + var(--proto-h, 0px));
  color: var(--soft); font-family: var(--f-body); font-weight: 300; font-size: 15px; line-height: 1.45; text-align: left;
  animation: vp-ink 560ms cubic-bezier(.3, .1, .2, 1) both;
  transition: opacity 260ms var(--ease-light), visibility 0s linear 260ms;
}
.vp--left { left: 16px; }
.vp--right { right: 16px; }
.vp.is-out, .vp.is-away { opacity: 0; visibility: hidden; }
.vp [hidden] { display: none !important; }
html[data-motion="reduce"] .vp { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .vp { animation: none; transition: none; } }
/* never over the player: above the docked bar while it is open */
html.has-dock .vp { bottom: calc(var(--dock-h, 96px) + 12px); }
.vp p { margin: 0; }
.vp a { color: inherit; }
.vp__x {
  position: absolute; top: 4px; right: 4px; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: var(--r-control); background: transparent; color: var(--meta); font: 300 26px/1 var(--f-body); cursor: pointer;
  transition: color var(--dur-out) var(--ease-light);
}
.vp__x:hover { color: var(--txt); transition-duration: var(--dur-in); }
.vp__x:focus-visible { outline: 2px solid var(--txt); outline-offset: -4px; }

/* the words, shared */
.vp__pre { font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--vc); }
.vp__note { font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--gold); }
.vp__was { color: var(--soft); font-size: 14.5px; line-height: 1.35; }
.vp__t {
  font-family: var(--f-display); font-weight: var(--heading-weight, 700); font-style: var(--display-style);
  letter-spacing: -.012em; color: var(--txt); font-size: 19px; line-height: 1.22; text-wrap: balance;
}
.vp__t--s { font-size: 16.5px; }
.vp__when { font-size: 13.5px; font-weight: 500; color: var(--vc); font-variant-numeric: tabular-nums; }
.vp__line { color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.vp__nl { color: var(--meta); font-size: 13.5px; line-height: 1.4; }
.vp__nl [data-fact]:first-child { color: var(--vc); font-weight: 500; }
.vp__ft { font-weight: 500; color: var(--txt); font-size: 15px; line-height: 1.35; }
.vp .more { min-height: 40px; font-size: 15px; }
.vp__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.vp__coming { display: grid; gap: 2px; }

/* the form: the site's field and white button (.field, .btn), the ticks of Home §9 */
.vp__f { display: grid; gap: 10px; }
.vp__row { display: flex; flex-wrap: wrap; gap: 8px; }
.vp__row .field { flex: 1 1 10rem; min-height: 46px; font-size: 16px; }
.vp__row .btn { min-height: 46px; flex: none; }
.vp__ticks { margin: 0; padding: 0; border: 0; display: grid; gap: 0; min-width: 0; }
.vp__ticks legend { padding: 0; margin: 2px 0 2px; font-size: 13px; line-height: 1.4; color: var(--meta); }
.vp__tick { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14.5px; color: var(--soft); cursor: pointer; transition: color var(--dur-out) var(--ease-light); }
.vp__tick small { font-size: 13px; color: var(--meta); }
.vp__tick small::before { content: "· "; }
.vp__tick input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--vc); }
.vp__tick:hover { color: var(--txt); }
.vp__fixed { font-size: 13px; color: var(--meta); line-height: 1.4; }
/* every list the button joins: shown in every design and at every size (the outside review, finding 3) */
.vp__join { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--meta); }
.vp__join a { color: var(--soft); text-underline-offset: .2em; }
.vp--8 .vp__join { flex-basis: 100%; font-size: 12px; }
.vp--4 .vp4 .vp__join { color: var(--on-vc); }
/* the two bars never take more than 40% of the window, zoomed in or on a phone held sideways (WCAG 1.4.10) */
.vp--5, .vp--8 { max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; }
.vp__status { font-size: 14px; color: var(--meta); }
.vp__status:empty { display: none; }
.vp__done { color: var(--ok); font-weight: 500; font-size: 15.5px; }
.vp__no {
  justify-self: start; min-height: 32px; padding: 0; border: 0; background: none; color: var(--meta); font: inherit; font-size: 14px; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--line);
}
.vp__no:hover { color: var(--txt); text-decoration-color: currentColor; }

/* the archive's list: the footer's gold play mark (.site-foot__play), gold for what is published */
.vp__items { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.vp__item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; text-decoration: none; color: var(--txt); font-size: 14.5px; line-height: 1.35; transition: color var(--dur-out) var(--ease-light); }
.vp__item b { font-weight: 500; color: var(--gold); }
.vp__item:hover { color: var(--gold); }
.vp__play { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 0; border: 1px solid color-mix(in oklab, var(--gold) 70%, transparent); border-radius: 50%; }
.vp__play::before { content: ""; width: 7px; height: 8px; margin-left: 2px; background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ═══ 1 · Poster: the programme wall's poster (.evTile), small, in the corner ═══ */
.vp--1 { width: 14.5rem; }
.vp1 { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-control); overflow: hidden; box-shadow: 0 18px 50px rgb(0 0 0 / .45); transition: border-color .3s cubic-bezier(.25, .6, .3, 1); }
.vp1:hover { border-color: color-mix(in oklab, var(--vc) 60%, transparent); }
.vp--gold .vp1:hover { border-color: color-mix(in oklab, var(--gold) 42%, transparent); }
.vp1__note { display: grid; gap: 2px; padding: 12px 48px 12px 14px; background: color-mix(in oklab, var(--gold) 7%, var(--bg-2)); }
.vp1__poster { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate; color: var(--txt); text-decoration: none; background: var(--bg-3); }
.vp1__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp1__poster::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(30, 33, 43, 0) 34%, rgba(30, 33, 43, .95) 100%); }
.vp1__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 4px; padding: 14px; }
.vp--1 .vp__t { font-size: 19px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.vp--1 .vp--k-signup .vp1__txt .vp__line, .vp--k-signup .vp1__txt .vp__line { font-size: 13.5px; }
.vp1__foot { display: grid; gap: 8px; padding: 10px 14px 14px; }
/* no picture (Tim's settings can say none): the words stand alone, without the square */
.vp1__poster:not(:has(.vp1__img)) { aspect-ratio: auto; background: none; }
.vp1__poster:not(:has(.vp1__img))::before { display: none; }
.vp1__poster:not(:has(.vp1__img)) .vp1__txt { position: static; padding: 16px 48px 4px 14px; }
.vp1__foot .vp__fixed { display: none; }
.vp1__foot .vp__no { display: none; }
.vp--1 .vp__x { top: 6px; right: 6px; width: 40px; height: 40px; border-radius: var(--r-chip); background: rgb(20 22 30 / .55); color: #fff; }
.vp--1.vp--gold .vp__x { background: transparent; color: var(--meta); }
.vp--1 .vp__items { gap: 6px; }
.vp--1 .vp__item { font-size: 13.5px; }

/* ═══ 2 · Wash: the purple wash (.wash), lit from the card's own corner, a trace of grain; the white button ═══ */
.vp--2 { width: min(23.5rem, calc(100vw - 32px)); }
.vp2 {
  display: grid; gap: 10px; padding: 22px 22px 18px; border-radius: var(--r-control);
  border: 1px solid color-mix(in oklab, var(--vc) 26%, transparent);
  background:
    var(--grain),
    radial-gradient(130% 100% at -8% -12%,
      color-mix(in oklab, var(--vc) 32%, transparent) 0%,
      color-mix(in oklab, var(--vc) 19%, transparent) 26%,
      color-mix(in oklab, var(--vc) 8%, transparent) 54%,
      transparent 82%),
    var(--bg);
  box-shadow: 0 26px 60px -20px rgb(0 0 0 / .75);
}
.vp--2 .vp__t { font-size: 24px; line-height: 1.14; letter-spacing: -.02em; margin-right: 34px; }
.vp--2 .vp__note + .vp__was { margin-top: -6px; }
.vp--2 .vp__f { margin-top: 4px; }
.vp--2.vp--gold .vp2 {
  border-color: color-mix(in oklab, var(--gold) 26%, transparent);
  background: var(--grain), radial-gradient(130% 100% at -8% -12%, color-mix(in oklab, var(--gold) 20%, transparent) 0%, color-mix(in oklab, var(--gold) 8%, transparent) 34%, transparent 78%), var(--bg);
}

/* ═══ 3 · Archive note: the past in gold (the bare poster's gold tint), what is next in lavender ═══ */
.vp--3 { width: 21.5rem; }
.vp3 {
  display: grid; gap: 14px; padding: 18px 20px 18px; border-radius: var(--r-control);
  background: color-mix(in oklab, var(--gold) 7%, var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--gold) 24%, transparent);
  box-shadow: 0 22px 54px -20px rgb(0 0 0 / .7);
}
.vp3__past { display: grid; gap: 6px; padding-right: 32px; }
.vp3__past .vp__was { font-family: var(--f-display); font-weight: var(--heading-weight, 700); font-size: 19px; line-height: 1.2; color: color-mix(in oklab, var(--gold) 55%, var(--txt)); letter-spacing: -.01em; }
.vp3__next { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.vp3__next:not(:has(.vp3__thumb)) { grid-template-columns: minmax(0, 1fr); }
.vp3__thumb { width: 64px; height: 80px; object-fit: cover; background: var(--bg-3); }
.vp3__words { display: grid; gap: 2px; min-width: 0; }
.vp--3 .vp__t { font-size: 18px; }
.vp--3.vp--k-signup .vp3 > .vp__t { padding-right: 32px; font-size: 21px; }
.vp--3:not(.vp--gold) .vp3 { background: var(--bg-2); border-color: var(--line-2); }

/* ═══ 4 · Ticket stub: the site's stub card (html[data-card="2"]): lavender, the date large past a perforated edge;
       a slate counterfoil beneath it for the ask ═══ */
.vp--4 { width: 22.5rem; filter: drop-shadow(0 18px 34px rgb(0 0 0 / .45)); }
.vp4 {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); background: var(--vc); color: var(--on-vc); border-radius: var(--r-control) var(--r-control) 0 0;
  -webkit-mask: radial-gradient(circle 8px at 5.2rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 8px at 5.2rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 8px at 5.2rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 8px at 5.2rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.vp4__date { display: grid; place-content: center; text-align: center; padding: 16px 0; border-right: 2px dashed color-mix(in oklab, var(--on-vc) 34%, transparent); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.vp4__date small { display: block; margin-top: 5px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.vp4__mark { width: 40px; height: 40px; margin: 0 auto; filter: brightness(0) saturate(100%) invert(14%) sepia(12%) saturate(1200%) hue-rotate(195deg); opacity: .9; }
.vp4__body { display: grid; gap: 3px; align-content: center; min-width: 0; padding: 16px 46px 16px 16px; }
.vp--4 .vp4 :is(.vp__pre, .vp__t, .vp__when, .vp__line, .vp__note, .vp__was) { color: var(--on-vc); }
.vp--4 .vp4 .vp__line { opacity: .85; }
.vp--4 .vp4 .vp__item { color: var(--on-vc); }
.vp--4 .vp4 .vp__item b { color: var(--on-vc); }
.vp--4 .vp4 .vp__play { border-color: color-mix(in oklab, var(--on-vc) 60%, transparent); }
.vp--4 .vp4 .vp__play::before { background: var(--on-vc); }
.vp--4 > .vp__x { color: var(--on-vc); }
.vp--4 > .vp__x:hover { color: #000; }
.vp4__foil { display: grid; gap: 10px; padding: 14px 16px 16px; background: var(--bg-2); border-radius: 0 0 var(--r-control) var(--r-control); border-top: 2px dashed color-mix(in oklab, var(--vc) 38%, transparent); }
.vp4__foil .vp__fixed { display: none; }
.vp--4.vp--gold .vp4 { background: var(--gold); }
.vp--4.vp--gold .vp4__foil { border-top-color: color-mix(in oklab, var(--gold) 45%, transparent); }

/* ═══ 5 · Ink line: one line of the page, set at the window's foot on the deep ground (.sec--deep) ═══ */
.vp--5 { left: 0; right: 0; bottom: var(--proto-h, 0px); padding: 16px var(--gutter, 24px); background: color-mix(in oklab, var(--bg-2) 70%, #000); border-top: 1px solid var(--line-2); }
html.has-dock .vp--5 { bottom: var(--dock-h, 96px); }
.vp5 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; max-width: var(--wide, 86rem); margin: 0 auto; padding-right: 40px; }
.vp5__say { flex: 1 1 22rem; min-width: 0; display: grid; gap: 3px; }
.vp--5 .vp__t { font-size: clamp(19px, 1.65vw, 25px); line-height: 1.2; letter-spacing: -.018em; }
.vp--5 .vp__line { font-size: 14.5px; }
.vp5__act { flex: 1 1 26rem; min-width: 0; display: grid; gap: 6px; }
.vp--5 .vp__f { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.vp--5 .vp__ticks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.vp--5 .vp__ticks legend { float: left; margin: 0 4px 0 0; }
.vp--5 .vp__tick { min-height: 32px; font-size: 14px; }
.vp--5 .vp__fixed { display: none; }
.vp--5 .vp__x { top: 50%; right: max(4px, calc(var(--gutter, 24px) - 14px)); transform: translateY(-50%); }
.vp--5.vp--gold { background: color-mix(in oklab, color-mix(in oklab, var(--gold) 8%, var(--bg-2)) 80%, #000); }

/* ═══ 6 · Changing line: the lists said one at a time, Home §1's typewriter and its lavender caret ═══ */
.vp--6 { width: min(25rem, calc(100vw - 32px)); }
.vp6 { display: grid; gap: 10px; padding: 20px 22px 18px; border-radius: var(--r-control); background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .75); }
.vp6__lead { font-weight: 500; font-size: 15px; color: var(--soft); padding-right: 34px; }
.vp6__stage { min-height: 2.36em; font-family: var(--f-display); font-weight: var(--display-weight, 700); font-size: 26px; line-height: 1.16; letter-spacing: -.022em; color: var(--txt); text-wrap: balance; }
.vp6__caret { display: inline-block; width: .07em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--vc); animation: vp-caret 1s steps(1) infinite; }
@keyframes vp-caret { 50% { opacity: 0; } }
.vp6__lines { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; list-style: none; }
.vp--6 .vp__tick.is-said { color: var(--txt); }
.vp--6 .vp__tick.is-said > span > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--vc); }
/* calm motion: the lines shown still, one under another */
.vp6.is-still .vp6__stage, .vp.is-still .vp6__stage { display: none; }
.vp.is-still .vp6__lines { position: static; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; display: grid; gap: 2px;
  font-family: var(--f-display); font-weight: var(--heading-weight, 700); font-size: 19px; line-height: 1.25; color: var(--txt); letter-spacing: -.01em; }
html[data-motion="reduce"] .vp6__caret { animation: none; }
@media (prefers-reduced-motion: reduce) { .vp6__caret { animation: none; } }

/* ═══ 7 · Full screen: Home's opening (one picture, the heading at full size) over the whole window. Only on a
       window at least 900 px wide: the rules choose it only on a computer, and only when leaving or for one night
       marked big, once. Narrower, the same pop-up is a sheet at the foot, as the others are. ═══ */
.vp--full { left: 8px; right: 8px; bottom: calc(8px + var(--proto-h, 0px)); max-height: min(48svh, 30rem); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 601px) { .vp--full { left: auto; right: 16px; bottom: calc(16px + var(--proto-h, 0px)); width: min(26rem, calc(100vw - 32px)); max-height: min(70vh, 40rem); } }
.vp7 {
  display: grid; border-radius: var(--r-control); overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--vc) 26%, transparent);
  background: var(--grain), radial-gradient(130% 100% at -8% -12%, color-mix(in oklab, var(--vc) 26%, transparent) 0%, color-mix(in oklab, var(--vc) 10%, transparent) 40%, transparent 80%), var(--bg);
  box-shadow: 0 26px 60px -20px rgb(0 0 0 / .75);
}
.vp7__pic { position: relative; height: 7.5rem; overflow: hidden; background: var(--bg-3); }
.vp7__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp7__body { min-width: 0; }
.vp7__in { display: grid; gap: 10px; padding: 18px 20px 16px; }
.vp--7 .vp__t { font-size: 24px; line-height: 1.14; letter-spacing: -.02em; margin-right: 30px; }
.vp7__back {
  justify-self: start; min-height: 40px; padding: 0; border: 0; background: none; color: var(--meta); font: inherit; font-size: 14.5px; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--line);
  transition: color var(--dur-out) var(--ease-light);
}
.vp7__back:hover { color: var(--txt); text-decoration-color: currentColor; }
.vp7__back { display: none; } /* a sheet covers nothing: the × is the way out; "Back to the page" only over the whole window */
@media (min-width: 900px) { .vp7__back { display: inline-block; } }
.vp7__back:focus-visible { outline: 2px solid var(--txt); outline-offset: 3px; }
.vp--full:not(:has(.vp7__img)) .vp7__pic { display: none; }
@media (min-width: 900px) {
  .vp--full, html.has-dock .vp--full { inset: 0; width: auto; max-height: none; overflow: hidden; z-index: 60; }
  html.vp-lock { overflow: hidden; }
  .vp7 { position: absolute; inset: 0; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 0; border-radius: 0; box-shadow: none;
    background: var(--grain), radial-gradient(90% 80% at 104% -10%, color-mix(in oklab, var(--vc) 24%, transparent) 0%, color-mix(in oklab, var(--vc) 8%, transparent) 45%, transparent 80%), var(--bg); }
  .vp7__pic { height: auto; }
  .vp7__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 62%, var(--bg)); }
  .vp7__body { display: grid; align-content: center; overflow-y: auto; padding: clamp(32px, 5vw, 88px); }
  .vp7__in { gap: 16px; max-width: 34rem; padding: 0; }
  .vp--7 .vp__t { font-size: clamp(38px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin-right: 0; }
  .vp--7 :is(.vp__pre, .vp__note, .vp__when) { font-size: 16px; }
  .vp--7 .vp__line { font-size: 17px; line-height: 1.5; max-width: 30rem; }
  .vp--7 .vp__f { max-width: 30rem; }
  .vp--7 .vp__x { top: 18px; right: 18px; width: 48px; height: 48px; color: var(--soft); font-size: 32px; }
  .vp--full:not(:has(.vp7__img)) .vp7 { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}

/* ═══ 8 · Top bar: one line under the site's header (which stays at the top), across the window ═══ */
.vp--top { top: var(--vp-top, 0px); bottom: auto; left: 0; right: 0; z-index: 49; background: color-mix(in oklab, var(--vc) 9%, var(--bg-2)); border-bottom: 1px solid var(--line-2); box-shadow: 0 14px 30px -18px rgb(0 0 0 / .7); }
html.has-dock .vp--top { bottom: auto; }
.vp8 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; max-width: var(--wide, 86rem); margin: 0 auto; padding: 9px calc(var(--gutter, 24px) + 40px) 9px var(--gutter, 24px); }
.vp8__say { flex: 1 1 18rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.vp--8 .vp__t { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.vp--8 .vp__when { font-size: 14px; }
.vp--8 .vp__was { display: none; }
.vp8__act { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.vp--8 .more { min-height: 36px; }
.vp--8 .vp__f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vp--8 .vp__row { flex-wrap: nowrap; gap: 6px; }
.vp--8 .vp__row .field { flex: 0 1 15rem; min-height: 38px; font-size: 15px; }
.vp--8 .vp__row .btn { min-height: 38px; }
.vp--8 :is(.vp__fixed, .vp__ft) { display: none; }
.vp--8 .vp__x { top: 50%; right: max(2px, calc(var(--gutter, 24px) - 12px)); transform: translateY(-50%); width: 40px; height: 40px; }

/* ═══ Phones: one sheet or strip along the foot, never more than about a third of the screen ═══ */
@media (max-width: 600px) {
  .vp--left, .vp--right { left: 8px; right: 8px; width: auto; bottom: calc(8px + var(--proto-h, 0px)); }
  .vp:not(.vp--5):not(.vp--8) { max-height: min(48svh, 30rem); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-control); }
  .vp__t { font-size: 17.5px; }
  .vp__ticks legend { font-size: 13px; }
  .vp__tick { min-height: 34px; font-size: 14px; }
  .vp__tick small { display: none; }
  .vp__fixed { display: none; }
  .vp__no { display: none; } /* the × is there; one way out is enough on a small screen */
  /* 1 · the poster becomes a strip: a small poster at the left, the words beside it */
  .vp1__poster { display: grid; grid-template-columns: 76px minmax(0, 1fr); aspect-ratio: auto; background: none; }
  .vp1__img { position: static; width: 76px; height: 100%; min-height: 96px; }
  .vp1__poster::before { display: none; }
  .vp1__txt { position: static; padding: 10px 46px 10px 12px; align-content: center; gap: 2px; }
  .vp--1 .vp__t { font-size: 16.5px; -webkit-line-clamp: 2; }
  .vp1__foot { padding: 0 12px 12px; }
  .vp1__foot:has(> .vp__cta:only-child) { display: none; } /* the strip is the link */
  .vp1__note { padding: 10px 46px 10px 12px; }
  .vp--1 .vp__x { top: 4px; right: 4px; background: transparent; color: var(--meta); }
  .vp--k-signup .vp1__poster { grid-template-columns: 56px minmax(0, 1fr); }
  .vp--k-signup .vp1__img { width: 56px; min-height: 0; }
  /* 2, 3, 6 · sheets */
  .vp2, .vp3, .vp6 { padding: 16px 16px 14px; gap: 8px; }
  .vp--2 .vp__t { font-size: 20px; }
  .vp--2 .vp__ticks, .vp--6 .vp__ticks { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .vp--2 .vp__ticks legend, .vp--6 .vp__ticks legend { width: 100%; }
  .vp3__next { grid-template-columns: 48px minmax(0, 1fr); }
  .vp3__thumb { width: 48px; height: 60px; }
  .vp3__past .vp__was { font-size: 17px; }
  .vp6__stage { font-size: 21px; min-height: 2.4em; }
  /* 4 · the stub keeps its date; the counterfoil stays short */
  .vp--4 { filter: none; }
  .vp4 { grid-template-columns: 4.4rem minmax(0, 1fr); -webkit-mask: radial-gradient(circle 7px at 4.4rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 4.4rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 7px at 4.4rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 4.4rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
  .vp4__date { font-size: 28px; padding: 12px 0; }
  .vp4__body { padding: 12px 44px 12px 12px; }
  .vp4__foil { padding: 12px; }
  /* 5 · the line takes two rows */
  .vp--5 { padding: 12px 14px 12px; }
  .vp5 { gap: 8px; padding-right: 36px; }
  .vp5__say, .vp5__act { flex-basis: 100%; }
  .vp--5 .vp__t { font-size: 17px; }
  .vp--5 .vp__line { display: none; }
  .vp--5 .vp__x { top: 4px; transform: none; right: 2px; }
  /* 7 · the full screen is a sheet: no picture, the words and the one thing to do */
  .vp7__pic { display: none; }
  .vp7__in { padding: 16px 16px 12px; gap: 8px; }
  .vp--7 .vp__t { font-size: 20px; }
  .vp--7 .vp__ticks { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .vp--7 .vp__ticks legend { width: 100%; }
  /* 8 · the bar takes up to two short rows */
  .vp8 { gap: 4px 14px; padding: 8px 42px 8px 12px; }
  .vp8__say { flex-basis: 100%; gap: 0 10px; }
  .vp--8 .vp__t { font-size: 14.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .vp--8 .vp__when { font-size: 13px; }
  .vp--8 .more { min-height: 32px; font-size: 14px; }
  .vp--8 .vp__f, .vp--8 .vp__row { width: 100%; }
  .vp--8 .vp__row .field { flex: 1 1 auto; min-height: 36px; }
  .vp--8 .vp__row .btn { min-height: 36px; }
  .vp--8 .vp__x { top: 4px; transform: none; right: 0; }
}

/* ═══ The aesthetic pass (Tim, 27 Nov 2026: "they are a bit black, white and grey, they could be a little smoother,
   with gradient"; "make the x more aesthetic and a little more prominent") ═══
   Doc 05: gradients "work but need room to breathe"; the aurora glow behind a block is the stock risk, so each
   ground here is a linear sweep from the slate into lavender across the block itself, never a glow behind it. Edges
   that were grey hairlines become a lavender line that fades at both ends. The × is drawn (two strokes), inside a
   framed square at the control radius (6.4px, never a pill), brighter than before. */

/* the ground the sweeps settle on: the slate, a little deeper (Tim, 27 Nov 2026: "slightly darker wash than that") */
.vp { --vp-deep: color-mix(in oklab, var(--bg) 86%, #000); }

/* the close: a framed square, two drawn strokes */
.vp__x { width: 38px; height: 38px; border: 1px solid color-mix(in oklab, var(--vc) 38%, transparent); border-radius: var(--r-control);
  background: color-mix(in oklab, var(--bg) 62%, transparent); color: var(--txt);
  transition: color var(--dur-out) var(--ease-light), border-color var(--dur-out) var(--ease-light), background-color var(--dur-out) var(--ease-light); }
.vp__x > span { display: none; }
.vp__x::before, .vp__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 1.6px; border-radius: 1px; background: currentColor; }
.vp__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.vp__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.vp__x:hover { color: #fff; border-color: var(--vc); background: color-mix(in oklab, var(--vc) 16%, var(--bg)); transition-duration: var(--dur-in); }
.vp__x:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }
.vp--1 .vp__x { background: rgb(20 22 30 / .62); border-color: rgb(255 255 255 / .28); color: #fff; }
.vp--1.vp--gold .vp__x { background: color-mix(in oklab, var(--bg) 62%, transparent); border-color: color-mix(in oklab, var(--gold) 40%, transparent); color: var(--txt); }
.vp--4 > .vp__x { background: transparent; border-color: color-mix(in oklab, var(--on-vc) 45%, transparent); color: var(--on-vc); }
.vp--4 > .vp__x:hover { background: color-mix(in oklab, var(--on-vc) 12%, transparent); color: var(--on-vc); }
@media (min-width: 900px) {
  .vp--7 .vp__x { width: 46px; height: 46px; color: var(--txt); }
  .vp--7 .vp__x::before, .vp--7 .vp__x::after { width: 18px; height: 1.8px; }
}

/* 5 · Ink line: the slate lit with lavender from the left, easing out, rising again at the far end */
.vp--5 { border-top: 0;
  background: linear-gradient(100deg, color-mix(in oklab, var(--vc) 19%, var(--bg)) 0%, color-mix(in oklab, var(--vc) 9%, var(--bg-2)) 34%,
    color-mix(in oklab, var(--vc) 4%, var(--vp-deep)) 66%, color-mix(in oklab, var(--vc) 12%, var(--vp-deep)) 100%);
  box-shadow: 0 -22px 44px -26px rgb(0 0 0 / .85); }
.vp--5::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, color-mix(in oklab, var(--vc) 62%, transparent) 28%, color-mix(in oklab, var(--vc) 28%, transparent) 72%, transparent 100%); }

/* 8 · Top bar: the same light, from the left, under the header; its lower edge a fading lavender line */
.vp--top { border-bottom: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--vc) 20%, var(--bg-2)) 0%, color-mix(in oklab, var(--vc) 9%, var(--bg-2)) 40%,
    color-mix(in oklab, var(--vc) 4%, var(--vp-deep)) 74%, color-mix(in oklab, var(--vc) 10%, var(--vp-deep)) 100%); }
.vp--top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in oklab, var(--vc) 60%, transparent) 0%, color-mix(in oklab, var(--vc) 22%, transparent) 60%, transparent 100%); }

/* 1 · Poster: the card's ground falls from lavender-slate at the top to the ground at its foot; a lavender edge */
.vp1 { border-color: color-mix(in oklab, var(--vc) 24%, transparent);
  background: linear-gradient(170deg, color-mix(in oklab, var(--vc) 9%, var(--bg-2)) 0%, color-mix(in oklab, var(--vc) 4%, var(--bg-2)) 45%, var(--vp-deep) 100%); }
.vp1:hover { border-color: color-mix(in oklab, var(--vc) 44%, transparent); }
.vp--gold .vp1 { border-color: color-mix(in oklab, var(--gold) 26%, transparent);
  background: linear-gradient(170deg, color-mix(in oklab, var(--gold) 10%, var(--bg-2)) 0%, var(--vp-deep) 100%); }

/* 2 Wash and 7 Full screen: the corner glow becomes a sweep across the block */
.vp2 { background: var(--grain), linear-gradient(128deg, color-mix(in oklab, var(--vc) 22%, var(--bg)) 0%, color-mix(in oklab, var(--vc) 10%, var(--bg)) 34%,
    color-mix(in oklab, var(--vc) 4%, var(--bg)) 66%, var(--vp-deep) 100%); }
.vp--2.vp--gold .vp2 { background: var(--grain), linear-gradient(128deg, color-mix(in oklab, var(--gold) 22%, var(--bg)) 0%, color-mix(in oklab, var(--gold) 7%, var(--bg)) 46%, var(--vp-deep) 100%); }
.vp7 { background: var(--grain), linear-gradient(125deg, color-mix(in oklab, var(--vc) 17%, var(--bg)) 0%, color-mix(in oklab, var(--vc) 7%, var(--bg)) 38%,
    color-mix(in oklab, var(--vc) 2%, var(--bg)) 72%, var(--vp-deep) 100%); }
/* over the whole window the picture takes the left half, so the words' side has its own sweep, from the top-right
   corner, reaching the plain ground where the picture's fade meets it */
@media (min-width: 900px) {
  .vp--full .vp7__body { background: linear-gradient(205deg, color-mix(in oklab, var(--vc) 19%, var(--bg)) 0%, color-mix(in oklab, var(--vc) 8%, var(--bg)) 42%, var(--vp-deep) 86%); }
}

/* the ticks in the Top bar and the Poster (Tim, 27 Nov 2026: "we need to give the option to tick"): one compact row in
   the bar, beside the email; a short stack under the Poster's email */
.vp--8 .vp__ticks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.vp--8 .vp__ticks legend { float: left; margin: 0 2px 0 0; font-size: 12.5px; }
.vp--8 .vp__tick { min-height: 30px; gap: 7px; font-size: 13px; }
.vp--8 .vp__tick input { width: 16px; height: 16px; }
.vp1__foot .vp__ticks legend { font-size: 12px; }
.vp1__foot .vp__tick { min-height: 28px; gap: 8px; font-size: 13px; }
.vp1__foot .vp__tick input { width: 16px; height: 16px; }
.vp--8 .vp__tick small { display: none; } /* in the bar each tick is its name alone, as in the Ink line */
@media (max-width: 47.5rem) {
  /* on a phone the bar's form takes the full width, so its ticks wrap inside it */
  .vp8__act { flex: 1 1 100%; min-width: 0; }
  .vp--8 .vp__ticks { flex: 1 1 100%; min-width: 0; }
}
