/* The cover (F-266, cover v3 "one postcard": gitaway/pages/cover.py, assets/js/cover.js), in the Stage look (F-296, D-962..D-965; the approved prototype is docs/design/palette-bo/cover.html, look C).
   One postcard travels four beats on one sticky stage (F-301: Wish, the square, Together, Creator). The cover is always dark: home.py draws html[data-mode=dark], mode.js leaves a .cv-root page alone, and the bar has no switch.
   The Stage: a dark grey ground (#161618, F-304: not black), a dark postcard (#222225) whose picture is the place's own vivid colour with white line art, big heavy Inter,
   other families' postcards as saturated colour cards, a ring of words in quiet grey, a light Start a trip, and orange only as a small signal (the postage stamp, the
   postmark, the beat the pager is on). No cream, no pastel sky, no clouds. Every colour is a cover-scoped variable below (.cv3), so the cover does not move when the shared v2 tokens do.
   Contrast (measured, WCAG; the postcard faces' second ink is #5F5F64, 5.0 and up on their tinted tiles, the way D-957 moved the site's): ink #1D1D1F on #F5F5F7 15.5, #6E6E73 on #F5F5F7 4.7 and on white 5.1, orange words #B84A00 on white 5.2; dark (F-304): #A6A6AB on #161618 7.2, on #222225 6.3, on #2D2D31 5.4, #FF9A4D on #222225 7.5;
   white on the place colours: blue 4.7, violet 5.0, green 4.8.
   D-962 the ground is the grey, the postcard white (#222225 in the dark); D-963 the picture is the place's own colour, its line art white, and the gallery, the icon tiles and the avatars wear
   the same colours; D-964 no sun, moon, stars or clouds: the sky is the stage; D-965 orange is a signal only (stamp, postmark, the pager's beat).
   The ring of words (Wish, Square, Together, Creator) is decoration: it is aria-hidden, the captions are the text, and the word the story is on (the current beat) is the one shown strongly; the rest are quiet.
   Two layouts from one markup:
     the still (the default): every beat is its own card with its words under it, nothing travels; it is what reduced motion, ?still, a page without its script
       and a screen under 35rem tall get;
     the film (html.cv-film, set before paint by cover_boot.js, inside the media query below): one card on a pinned stage, its faces crossfading while it reshapes,
       the words rolling, the ring of words turning, the other families' postcards drifting nearer, one step per beat.
   Every time is a token (--cvt-* and --v2-* in v2-tokens.css), every size is rem or the drawing unit --u (1/16 rem at full size). */

html.cv-root { background: #161618; }
.cv-root body { margin: 0; background: transparent; font: 450 1.0625rem/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.cv3 { --stage: #161618; --ink: #F5F5F7; --ink-2: #A6A6AB; --ink-3: #A6A6AB; --card-solid: #222225; --card-t: #222225; --card-2: #2D2D31; --paper-2: #222225; --line: rgb(255 255 255 / .1); --line-2: rgb(255 255 255 / .18);
  --cta-bg: #F5F5F7; --cta-fg: #1D1D1F; --cta-sh: 0 0.5rem 1.25rem -0.75rem rgb(0 0 0 / .9);
  --sh1: 0 1px 0.125rem rgb(0 0 0 / .5); --sh2: 0 0.875rem 2rem -1rem rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .06);
  --sh3: 0 1.875rem 4.375rem -1.75rem rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .06);
  --f-display: "Inter", system-ui, sans-serif;
  --sig: #FF7A1A; --sig-ink: #FF9A4D; --good: #0F766E;
  --pl-sd: #0071E3; --pl-la: #7D4CF0; --pl-lt: #17834A; --pl-pink: #D6336C; --pl-teal: #0E9AA7; --pl-sun: #E5A400;      /* the places' own colours (the prototype's set) */
  --pc-paper: #222225; --pc-2: #2D2D31; --pc-ink: #F5F5F7; --pc-ink-2: #A6A6AB; --pc-line: rgb(255 255 255 / .1); --pc-line-2: rgb(255 255 255 / .18);
  --pc-pen: var(--pc-ink); --pc-brand: #F5F5F7; --pc-on-brand: #1D1D1F; --pc-on: #FFFFFF;
  --ring-dim: rgb(255 255 255 / .1);
  color: var(--ink); --u: min(0.0625rem, calc((100vw - 2rem) / 680)); }
.cv3 *, .cv3 *::before, .cv3 *::after { box-sizing: border-box; }
.cv3 :where(h1, h2, h3) { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; margin: 0; }
.cv3 :where(.cap, .endcard) em { font-style: normal; font-weight: 800; color: var(--ink-3); }
.cv3 :where(button, textarea) { font: inherit; color: inherit; }
.cv3 :focus-visible { outline: 0.1875rem solid var(--ink); outline-offset: 0.1875rem; border-radius: 0.625rem; }
.cv3 .ga-skip { z-index: 60; }
.cv3 .label { font: 650 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }

/* ============ buttons ============ */
.cv3 :is(.btn, .round) { transition: scale var(--cvt-480) var(--spring), background-color var(--v2-quick), color var(--v2-quick), translate var(--v2-quick) var(--v2-ease); }
.cv3 :is(.btn, .round):active { scale: .96; transition: scale var(--v2-press) var(--v2-ease); }
.cv3 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0 1.625rem; border: 0; border-radius: 99rem; background: var(--cta-bg); color: var(--cta-fg);
  font: 650 1.0625rem/1 var(--f-ui); text-decoration: none; box-shadow: var(--cta-sh); cursor: pointer; }
.cv3 .btn:hover { translate: 0 -1px; color: var(--cta-fg); }
.cv3 .btn.soft { background: var(--card-solid); color: var(--ink); box-shadow: var(--sh1), inset 0 0 0 1px var(--line); }
.cv3 .btn.soft:hover { color: var(--ink); }
.cv3 .btn.sm { min-height: 3rem; padding: 0 1.125rem; font-size: 1rem; }
.cv3 .btn svg { width: 1.125rem; height: 1.125rem; }
.cv3 .round { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--card-solid); color: var(--ink); box-shadow: var(--sh1); cursor: pointer; }
.cv3 .round svg { width: 1.25rem; height: 1.25rem; grid-area: 1 / 1; }

/* ============ the stage: the black ground ============ */
.cv-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--stage); }

/* ============ the bar ============ */
.cv-top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 0.625rem; padding: max(0.875rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 0 max(1.5rem, env(safe-area-inset-left)); pointer-events: none; }
.cv-top > * { pointer-events: auto; }
.cv-tag { flex: none; }
.cv-nav { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.cv-nav a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.125rem; border-radius: 99rem; color: var(--ink); font: 650 1.0625rem/1 var(--f-ui); text-decoration: none; }
.cv-nav a:hover { background: var(--card-solid); }
.cv-nav a:last-child { background: var(--cta-bg); color: var(--cta-fg); box-shadow: var(--cta-sh); }
.cv-nav a:last-child:hover { color: var(--cta-fg); }

/* ============ the story: the still (every beat its own card, its words under it) ============ */
#story { position: relative; padding: 6rem 1rem 2rem; }
.stage { display: flex; flex-direction: column; align-items: center; }
.stage :is(.rig, .bob, .pc, .caps) { display: contents; }
.stage :is(.gal, .ring, .pager) { display: none; }
.beats { display: none; }
.side { order: calc(var(--k) * 2); position: relative; width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); margin-top: 3rem; border-radius: calc(16 * var(--u)); overflow: hidden; background: var(--pc-paper); box-shadow: var(--sh3); }
.side:first-child { margin-top: 0; }
.cap { order: calc(var(--k) * 2 + 1); width: min(34rem, 100%); margin: 1.5rem 0 0; }
.cap .label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.875rem; }
.cap .label i { display: inline-grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--cta-bg); color: var(--cta-fg); font: 700 max(var(--label-min), 0.8125rem)/1 var(--f-ui); font-style: normal; letter-spacing: 0; }
.cap :is(h1, h2) { font-size: clamp(2.25rem, 8vw, 3.5rem); line-height: 1.02; }
.cap p { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.1875rem; line-height: 1.5; max-width: 28rem; }
.cap .note { font-size: 1rem; color: var(--ink-2); }
.cap .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.cap .hint { display: none; }
/* the unit of the drawings, and each card's size in it (the film's stage reads the same table by the beat) */
:is(.stage .pc, .side) { --w: 520; --h: 340; }
:is(.stage[data-beat="1"] .pc, .side[data-k="1"]) { --w: 400; --h: 440; }
:is(.stage[data-beat="2"] .pc, .side[data-k="2"]) { --w: 660; --h: 430; }
:is(.stage[data-beat="3"] .pc, .side[data-k="3"]) { --w: 400; --h: 545; }
@media (max-width: 47.5rem) {
  :is(.stage[data-beat="1"] .pc, .side[data-k="1"]) { --w: 520; --h: 640; }
  :is(.stage[data-beat="2"] .pc, .side[data-k="2"]) { --w: 520; --h: 440; }
  :is(.stage[data-beat="3"] .pc, .side[data-k="3"]) { --w: 520; --h: 700; }
  :is(.stage[data-beat="0"] .pc, .side[data-k="0"]) { --w: 520; --h: 400; }
}
/* a still holds each moment's last frame at once */
html:not(.cv-film) .cv3 :is(*, *::before, *::after) { animation-duration: var(--cvt-1) !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: var(--cvt-1) !important; transition-delay: 0s !important; }
html:not(.cv-film) .cv3 .cur { display: none; }

/* ============ the film: one card on a pinned stage ============ */
@media (prefers-reduced-motion: no-preference) and (min-height: 35rem) {
  html.cv-film .cv3 { --u: min(0.0625rem, calc((100vw - 2rem) / 680), calc((100svh - 8rem) / 560)); }
  .cv-film #story { height: calc(4 * 100svh); padding: 0; }
  .cv-film .beats { display: block; position: absolute; inset: 0; pointer-events: none; }
  .cv-film .beats i { position: absolute; left: 0; right: 0; height: 100svh; top: calc(var(--k) * 100svh); }
  .cv-film .stage { position: sticky; top: 0; display: block; height: 100svh; overflow: hidden; perspective: 68.75rem; perspective-origin: var(--cx) var(--cy); --cx: 64%; --cy: 52%; }
  .cv-film .stage :is(.gal, .ring, .pager) { display: block; }
  .cv-film .stage .pager { display: flex; }
  .cv-film .stage :is(.rig, .bob) { display: block; }
  .cv-film .stage .pc { display: block; }

  /* the gallery: other families' postcards drifting through the room, two steps nearer every beat (the slot of a card is CSS: mod(card - 2 beat)) */
  .cv-film .gal { position: absolute; left: var(--cx); top: var(--cy); width: 0; height: 0; transform-style: preserve-3d; --R: min(38.75rem, 36vw); }
  .cv-film .gal-spin { position: absolute; transform-style: preserve-3d; animation: spin 140s linear infinite; }
  @keyframes spin { to { rotate: z 360deg; } }
  .cv-film .gal i { --s: mod(var(--i) - var(--k) * 2 + 16, 16); --a: calc(var(--s) * 2.2rad + .4rad);
    position: absolute; left: -4.6875rem; top: -3.125rem; width: 9.375rem; height: 6.25rem; border-radius: 0.5rem; background: var(--g); border: 0.3125rem solid var(--pc-paper); box-shadow: 0 0.625rem 1.5rem -0.75rem rgb(0 0 0 / .4);
    transform: translate3d(calc(cos(var(--a)) * var(--R)), calc(sin(var(--a)) * var(--R) * .62), calc(23.75rem - var(--s) * 14.375rem)) rotate(calc((mod(var(--s), 3) - 1) * 7deg));
    opacity: max(0, min(.9, calc((14 - var(--s)) / 5), calc(var(--s) * var(--s) * .35)));
    transition: transform var(--cvt-1400) var(--v2-ease), opacity var(--cvt-900) var(--v2-ease); }
  .cv-film .gal i b { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.1875rem 0.375rem; background: var(--pc-paper); color: var(--pc-ink); font: 650 max(var(--label-min), 0.75rem)/1.2 var(--f-ui); white-space: nowrap; overflow: hidden; }

  /* the ring of words: it turns a quarter per beat, the way the story goes round */
  .cv-film .ring { position: absolute; left: var(--cx); top: var(--cy); width: var(--rd); height: var(--rd); translate: -50% -50%; --rd: min(94svh, 60vw); pointer-events: none; }
  .cv-film .ring svg { width: 100%; height: 100%; overflow: visible; rotate: calc(-45deg - var(--k) * 90deg); transition: rotate var(--cvt-1100) var(--v2-ease); }
  .cv-film .ring text { font: 800 3rem/1 var(--f-display); letter-spacing: -0.04em; fill: var(--ring-dim); transition: fill var(--cvt-600) var(--v2-ease); }
  .cv-film .ring text.now { fill: var(--ink); }
  .cv-film .ring circle.dot { fill: var(--ring-dim); }
  .cv-film .ring circle.track { fill: none; stroke: var(--ring-dim); stroke-width: 1.5; stroke-dasharray: 2 12; opacity: .7; }

  /* the postcard: one card, reshaped by the beat; its faces crossfade (no turning) */
  .cv-film .rig { position: absolute; left: var(--cx); top: var(--cy); width: 0; height: 0; transform-style: preserve-3d; }
  .cv-film .bob { position: absolute; transform-style: preserve-3d; }
  .cv-film .stage[data-beat="0"] .bob { animation: bob 6s ease-in-out infinite alternate; }
  .cv-film .bob:is(:hover, :focus-within) { animation-play-state: paused; }      /* a card being typed in or aimed at holds still */
  @keyframes bob { from { transform: translateY(-0.375rem) rotateX(3deg) rotateZ(-1.2deg); } to { transform: translateY(0.375rem) rotateX(-2deg) rotateZ(1deg); } }
  .cv-film .pc { position: absolute; left: 0; top: 0; width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); translate: -50% -50%; border-radius: calc(16 * var(--u)); overflow: hidden; background: var(--pc-paper); box-shadow: var(--sh3);
    transition: width var(--cvt-900) var(--spring-soft), height var(--cvt-900) var(--spring-soft), border-radius var(--cvt-900) var(--v2-ease); }
  .cv-film .side { position: absolute; inset: 0; width: auto; height: auto; margin: 0; border-radius: 0; background: none; box-shadow: none; opacity: 0; scale: .985; visibility: hidden;
    transition: opacity var(--cvt-260) var(--v2-ease), scale var(--cvt-260) var(--v2-ease), visibility 0s linear var(--cvt-260); }
  .cv-film .side.on { opacity: 1; scale: 1; z-index: 1; visibility: visible; transition: opacity var(--cvt-420) var(--v2-ease) var(--cvt-160), scale var(--cvt-700) var(--spring-soft) var(--cvt-160), visibility 0s; }
  /* a face plays its moments when it arrives and holds its last frame while it leaves */
  .cv-film .side:not(.live) :is(*, *::before, *::after) { animation-name: none !important; }
  .cv-film .side:not(.live) .cur { display: none; }

  /* the words: bold, one line at a time, rolling with the story. Every caption stays in the page as text; only the links of the ones not shown step out of the tab order */
  .cv-film .stage .caps { position: absolute; z-index: 5; left: max(1.5rem, 5.5vw); top: 50%; translate: 0 -50%; width: min(29.5rem, 33vw); display: grid; }
  .cv-film .caps::before { content: ""; position: absolute; inset: -4rem -6rem -4rem -10rem; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--stage) 92%, transparent) 72%, transparent); pointer-events: none; }
  .cv-film .cap { grid-area: 1 / 1; align-self: center; width: auto; margin: 0; opacity: 0; translate: 0 2rem; pointer-events: none;
    transition: opacity var(--cvt-450) var(--v2-ease), translate var(--cvt-800) var(--spring-soft); }
  .cv-film .cap.past { translate: 0 -2rem; }
  .cv-film .cap.now { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: var(--cvt-140), var(--cvt-140); }
  .cv-film .cap:not(.now) :is(a, button) { visibility: hidden; }
  .cv-film .cap :is(h1, h2) { font-size: clamp(2.3rem, 3.9vw, 3.7rem); line-height: 1; }
  .cv-film .cap .hint { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font: 560 1rem/1 var(--f-ui); }
  .cv-film .cap .hint svg { width: 1.125rem; height: 1.125rem; animation: nudge 1.8s var(--v2-ease) infinite; }
  @keyframes nudge { 50% { translate: 0 0.25rem; } }
  .cv-film .cap .note { font-size: max(var(--text-min), 0.9375rem); }

  /* the pager: four stops, the words of the ring */
  .cv-film .pager { position: absolute; z-index: 6; right: 1.25rem; top: 50%; translate: 0 -50%; flex-direction: column; gap: 0.125rem; padding: 0.375rem; border-radius: 99rem; background: var(--card-t); box-shadow: var(--sh1), inset 0 0 0 1px var(--line); }
  .cv-film .pager button { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .cv-film .pager button::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ink-3); opacity: .45; transition: scale var(--cvt-400) var(--spring), opacity var(--cvt-300), background-color var(--cvt-300); }
  .cv-film .pager button[aria-current]::before { background: var(--sig); opacity: 1; scale: 1.6; }
  .cv-film .pager button span { position: absolute; right: calc(100% + 0.25rem); padding: 0.375rem 0.625rem; border-radius: 99rem; background: var(--card-solid); box-shadow: var(--sh1); font: 600 max(var(--text-min), 0.875rem)/1 var(--f-ui); white-space: nowrap; opacity: 0; translate: 0.5rem 0; pointer-events: none; transition: opacity var(--v2-quick), translate var(--cvt-300) var(--spring); }
  .cv-film .pager button:is(:hover, :focus-visible) span { opacity: 1; translate: 0 0; }

}

/* ============ the faces (all drawn on paper; the type has floors so a phone can read it) ============ */
.f { position: absolute; inset: 0; color: var(--pc-ink); font: 500 max(0.6875rem, calc(14 * var(--u)))/1.3 var(--f-ui); }
.f svg.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.f em { font-style: normal; color: var(--pc-ink-2); }
.f .artbox { position: relative; overflow: hidden; border-radius: calc(9 * var(--u)); background: var(--pc, var(--pl-sd)); }      /* the picture is the place's own colour, its line art white */
.f.guide { --pc: var(--pl-lt); }
.f .ttl { position: absolute; left: calc(18 * var(--u)); top: calc(16 * var(--u)); color: var(--pc-on); }
.f .ttl small { display: block; font: 700 max(0.6875rem, calc(11 * var(--u)))/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--pc-on); }
.f .ttl b { display: block; margin-top: calc(4 * var(--u)); font: 700 max(1.0625rem, calc(32 * var(--u)))/1 var(--f-display); letter-spacing: -0.02em; }
.f .ttl b + b { font-size: max(0.8125rem, calc(21 * var(--u))); }
.f .smp { position: absolute; right: calc(10 * var(--u)); top: calc(10 * var(--u)); padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: 99rem; background: var(--pc-paper); color: var(--pc-ink); font: 700 max(0.6875rem, calc(11 * var(--u)))/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.stampbox { position: absolute; right: calc(14 * var(--u)); top: calc(14 * var(--u)); width: calc(46 * var(--u)); height: calc(54 * var(--u)); padding: calc(4 * var(--u)); background: var(--pc-paper);
  -webkit-mask: radial-gradient(circle at 0.1875rem 0.1875rem, transparent 0.1rem, #000 0.1125rem) -0.1875rem -0.1875rem / 0.375rem 0.375rem; mask: radial-gradient(circle at 0.1875rem 0.1875rem, transparent 0.1rem, #000 0.1125rem) -0.1875rem -0.1875rem / 0.375rem 0.375rem; }
.stampbox i { display: block; height: 100%; background: var(--sig); }
.pm { position: absolute; width: calc(70 * var(--u)); height: calc(70 * var(--u)); color: var(--sig-ink); opacity: .6; rotate: -14deg; }
@keyframes rise { from { opacity: 0; translate: 0 calc(10 * var(--u)); } }
@keyframes pop { 0% { opacity: 0; scale: .6; } 60% { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes press { 0%, 100% { scale: 1; } 40% { scale: .93; } }
@keyframes fade { from { opacity: 0; } }

/* 0: the wish (art on the left, the sentence written on the right). The writing is a real form. */
.f.wish { display: grid; grid-template-columns: 1.08fr 1fr; gap: calc(14 * var(--u)); padding: calc(12 * var(--u)); }
.wish .write { position: relative; padding: calc(70 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)) 0; display: flex; flex-direction: column; margin: 0; }
.wish .write::before { content: ""; position: absolute; left: calc(-8 * var(--u)); top: calc(14 * var(--u)); bottom: calc(14 * var(--u)); border-left: 0.0938rem solid var(--pc-line-2); }
.wish .dear { font: 500 max(0.75rem, calc(16 * var(--u)))/1 var(--f-display); color: var(--pc-ink-2); }
.wish .sent { margin: calc(8 * var(--u)) 0 0; font: 500 max(var(--text-min), calc(24 * var(--u)))/1.32 var(--f-display); color: var(--pc-ink); }
.wish .sent-box { position: relative; flex: 1; min-height: calc(96 * var(--u)); margin-top: calc(8 * var(--u)); }
.wish .sent-box .sent { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.wish .sent-in { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; border: 0; padding: 0; background: transparent; color: var(--pc-pen); font: 500 max(var(--text-min), calc(24 * var(--u)))/1.32 var(--f-display); caret-color: var(--pc-brand); }
.wish .sent-in::placeholder { color: transparent; }
.wish .sent-in:focus::placeholder { color: var(--pc-ink-2); opacity: 1; }
.wish .sent-in:is(:focus, :not(:placeholder-shown)) ~ .sent { opacity: 0; }
.wish .sent-in:focus-visible { outline: 0.125rem solid var(--pc-brand); outline-offset: 0.25rem; border-radius: 0.25rem; }
.wish .w { display: inline-block; color: var(--pc-pen); border-bottom: 0.125rem dotted color-mix(in srgb, var(--pc-ink) 45%, transparent); animation: wipe var(--cvt-520) var(--v2-ease) both; animation-delay: calc(var(--cvt-500) + var(--i) * var(--cvt-380)); }
.wish .caret { display: inline-block; width: 0.125rem; height: .95em; vertical-align: -.12em; margin-left: 0.125rem; background: var(--pc-brand); animation: blink 1s steps(1) infinite var(--cvt-2200), fade var(--cvt-1) var(--cvt-2000) both; }
@keyframes blink { 50% { opacity: 0; } }
.wish .go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: calc(6 * var(--u)); min-height: 3rem; padding: calc(10 * var(--u)) calc(16 * var(--u)); border: 0; border-radius: 99rem; background: var(--pc-brand); color: var(--pc-on-brand); font: 650 max(var(--text-min), calc(14 * var(--u)))/1.15 var(--f-ui); box-shadow: 0 0.5rem 1.125rem -0.625rem rgb(0 0 0 / .5); cursor: pointer; text-align: left;
  animation: pop var(--cvt-600) var(--spring) both var(--cvt-2100), press var(--cvt-420) var(--v2-ease) var(--cvt-3100); }
.wish .go svg { width: 1.1em; height: 1.1em; }
.wish .pm { right: calc(52 * var(--u)); top: calc(16 * var(--u)); }
.wish .sig { position: absolute; left: calc(14 * var(--u)); bottom: calc(14 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--pc-paper); font: 500 max(0.75rem, calc(15 * var(--u)))/1.2 var(--f-display); }
.wish .from + .sig { bottom: calc(48 * var(--u)); }

/* 1: the square (every way to go compared, then the whole trip booked in one place) */
.f.sqr { display: flex; flex-direction: column; padding: calc(16 * var(--u)) calc(18 * var(--u)) 0; gap: calc(8 * var(--u)); }
.sqr .cmp header { display: flex; align-items: baseline; justify-content: space-between; gap: calc(10 * var(--u)); animation: fade var(--cvt-400) var(--v2-ease) both var(--cvt-300); }
.sqr .cmp header b { font: 700 max(0.9375rem, calc(20 * var(--u)))/1.1 var(--f-display); letter-spacing: -0.015em; }
.sqr .cmp header span { color: var(--pc-ink-2); font-size: max(0.6875rem, calc(12 * var(--u))); text-align: right; }
.sqr .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(7 * var(--u)); margin-top: calc(10 * var(--u)); }
.sqr .strip .h { text-align: center; color: var(--pc-ink-2); font: 600 max(0.6875rem, calc(11 * var(--u)))/1.2 var(--f-ui); animation: fade var(--cvt-400) var(--v2-ease) both var(--cvt-350); }
.sqr .strip .h b { display: block; color: var(--pc-ink); font-size: max(0.6875rem, calc(12 * var(--u))); }
.sqr .sq { position: relative; display: grid; place-content: center; justify-items: center; gap: calc(3 * var(--u)); min-height: calc(54 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--pc-2); box-shadow: inset 0 0 0 1px var(--pc-line);
  font: 700 max(0.6875rem, calc(13 * var(--u)))/1 var(--f-ui); font-variant-numeric: tabular-nums; animation: pop var(--cvt-520) var(--spring) both; animation-delay: calc(var(--cvt-450) + var(--i) * var(--cv-stag)); }
.sqr .sq svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.sqr .sq.pick { animation: pop var(--cvt-520) var(--spring) both calc(var(--cvt-450) + var(--i) * var(--cv-stag)), lit var(--cvt-700) var(--v2-ease) forwards var(--cvt-1000); }
.sqr .sq.pick small { padding: calc(2 * var(--u)) calc(6 * var(--u)); border-radius: 99rem; background: var(--pc-on-brand); color: var(--pc-brand); font: 700 max(0.6875rem, calc(10 * var(--u)))/1 var(--f-ui); white-space: nowrap; animation: pop var(--cvt-500) var(--spring) both var(--cvt-1400); }
@keyframes lit { to { background: var(--pc-brand); color: var(--pc-on-brand); box-shadow: 0 0 0 calc(3 * var(--u)) var(--pc-line-2), 0 0.875rem 1.5rem -0.625rem rgb(0 0 0 / .5); scale: 1.06; } }
.sqr .tap { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0.125rem var(--pc-brand); opacity: 0; animation: tap var(--cvt-700) var(--v2-ease) var(--cvt-1100); }
@keyframes tap { 0% { opacity: 1; scale: .9; } 100% { opacity: 0; scale: 1.5; } }
.sqr .body { flex: 1; padding: calc(14 * var(--u)) 0 calc(14 * var(--u)); display: flex; flex-direction: column; }
.sqr .row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(10 * var(--u)); padding: calc(6 * var(--u)) 0; border-bottom: 1px solid var(--pc-line); animation: rise var(--cvt-500) var(--v2-ease) both; animation-delay: calc(var(--cvt-1500) + var(--i) * var(--cvt-140)); }
.sqr .row .ic { display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--ic); color: var(--pc-on); }
.sqr .row .ic svg { width: 60%; height: 60%; }
.sqr .row b { display: block; font-weight: 650; }
.sqr .row small { display: block; color: var(--pc-ink-2); font-size: max(0.6875rem, calc(12 * var(--u))); }
.sqr .row .p { font-weight: 650; font-variant-numeric: tabular-nums; }
.sqr .tot { display: flex; align-items: baseline; justify-content: space-between; padding: calc(8 * var(--u)) 0; animation: rise var(--cvt-500) var(--v2-ease) both var(--cvt-1900); }
.sqr .tot span { color: var(--pc-ink-2); }
.sqr .tot b { font: 700 max(1.25rem, calc(30 * var(--u)))/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sqr .book { position: relative; margin-top: auto; display: grid; place-items: center; min-height: max(3rem, calc(46 * var(--u))); border-radius: 99rem; background: var(--pc-brand); color: var(--pc-on-brand); font: 700 max(0.75rem, calc(15 * var(--u)))/1 var(--f-ui); box-shadow: 0 0.625rem 1.375rem -0.75rem rgb(0 0 0 / .6);
  animation: rise var(--cvt-500) var(--v2-ease) both var(--cvt-2000), press var(--cvt-420) var(--v2-ease) var(--cvt-2500), booked var(--cvt-400) var(--v2-ease) forwards var(--cvt-2750); }
@keyframes booked { to { background: var(--good); color: var(--pc-on); box-shadow: 0 0.625rem 1.375rem -0.75rem var(--good); } }
.sqr .book > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.sqr .book .b2 { opacity: 0; animation: show var(--cvt-300) var(--v2-ease) forwards var(--cvt-2750); }
@keyframes show { to { opacity: 1; } }
.sqr .book .b1 { animation: fade var(--cvt-250) var(--v2-ease) reverse forwards var(--cvt-2700); }
.sqr .book .b2 svg { width: 1.1em; height: 1.1em; }
.sqr .confetti i { position: absolute; left: 50%; top: 50%; width: calc(7 * var(--u)); height: calc(10 * var(--u)); border-radius: 0.125rem; background: var(--c); opacity: 0; animation: burst var(--cvt-1100) var(--v2-ease) var(--cvt-2800); }
@keyframes burst { 0% { opacity: 1; translate: 0 0; rotate: 0deg; } 100% { opacity: 0; translate: var(--x) var(--y); rotate: 260deg; } }
.sqr .fine { margin-top: calc(6 * var(--u)); text-align: center; color: var(--pc-ink-2); font-size: max(0.6875rem, calc(11 * var(--u))); }

/* 2: the calendar, planned together */
.f.cal { padding: calc(16 * var(--u)); display: grid; grid-template-rows: auto auto 1fr; gap: calc(8 * var(--u)); --cols: 5; }
.cal header { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.cal header b { font: 700 max(0.9375rem, calc(22 * var(--u)))/1.1 var(--f-display); flex: 1; }
.cal .who { display: flex; align-items: center; }
.cal .av { display: inline-grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); min-width: 1.25rem; min-height: 1.25rem; margin-left: calc(-6 * var(--u)); border-radius: 50%; border: 0.125rem solid var(--pc-paper); font: 700 max(0.6875rem, calc(12 * var(--u)))/1 var(--f-ui); font-style: normal; background: var(--a); color: var(--pc-on); animation: pop var(--cvt-500) var(--spring) both; animation-delay: calc(var(--cvt-300) + var(--i) * var(--cvt-120)); }
.cal .creator { margin-left: calc(8 * var(--u)); padding: calc(5 * var(--u)) calc(9 * var(--u)); border-radius: 99rem; border: 0.0938rem dashed var(--pc-ink-2); color: var(--pc-ink-2); font: 650 max(0.6875rem, calc(12 * var(--u)))/1 var(--f-ui); white-space: nowrap; animation: pop var(--cvt-500) var(--spring) both var(--cvt-700); }
.cal .days { display: grid; grid-template-columns: repeat(var(--cols), 1fr); text-align: center; color: var(--pc-ink-2); font: 600 max(0.6875rem, calc(12 * var(--u)))/1 var(--f-ui); }
.cal .days b { color: var(--pc-ink); }
.cal .grid { position: relative; border-radius: calc(10 * var(--u)); background: var(--pc-2); box-shadow: inset 0 0 0 1px var(--pc-line);
  background-image: linear-gradient(90deg, var(--pc-line) 1px, transparent 1px); background-size: calc(100% / var(--cols)) 100%; }
.cal .blk { position: absolute; left: calc(var(--c) * 100% / var(--cols) + 4 * var(--u)); width: calc(min(var(--n, 1), var(--cols) - var(--c)) * 100% / var(--cols) - 8 * var(--u)); top: var(--t); height: var(--hh);
  padding: calc(5 * var(--u)) calc(7 * var(--u)); border-radius: calc(8 * var(--u)); overflow: hidden; font: 600 max(0.6875rem, calc(12 * var(--u)))/1.2 var(--f-ui); background: color-mix(in srgb, var(--bd) 16%, var(--pc-paper)); border-left: 0.1875rem solid var(--bd); }
.cal .blk small { display: flex; align-items: center; gap: 0.1875rem; margin-top: 0.125rem; font-weight: 500; color: var(--pc-ink-2); font-size: max(0.6875rem, calc(11 * var(--u))); }
.cal .blk small svg { width: 1em; height: 1em; }
.cal .blk.lock { animation: fade var(--cvt-400) var(--v2-ease) both var(--cvt-350); }
.cal .blk.plan { animation: drop var(--cvt-620) var(--spring) both; animation-delay: calc(var(--cvt-900) + var(--i) * var(--cvt-380)); }
@keyframes drop { from { opacity: 0; translate: 0 calc(-16 * var(--u)); scale: .92; } }
.cal .blk.guide { background: var(--pc-paper); border: 0.0938rem dashed var(--pc-ink-2); border-left-width: 0.0938rem; }
.cal .blk.guide em { display: block; color: var(--pc-pen); font: 700 max(0.6875rem, calc(10 * var(--u)))/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; font-style: normal; margin-bottom: 0.125rem; }
.cal .cur { position: absolute; z-index: 3; left: 0; top: 0; display: flex; align-items: flex-start; gap: 0.125rem; pointer-events: none; animation: glide var(--cvt-1500) var(--v2-ease) both; animation-delay: var(--d); }
.cal .cur svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); min-width: 0.8125rem; min-height: 0.8125rem; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .3)); }
.cal .cur span { margin-top: calc(12 * var(--u)); padding: 0.125rem 0.375rem; border-radius: 0.375rem; background: var(--bd); color: var(--pc-on); font: 700 max(0.6875rem, calc(11 * var(--u)))/1.3 var(--f-ui); }
@keyframes glide { from { opacity: 0; translate: var(--fx) var(--fy); } 15% { opacity: 1; } to { opacity: 1; translate: var(--tx) var(--ty); } }

/* 3: creator (the guide: their days, their words) */
.f.guide { display: flex; flex-direction: column; }
.guide .artbox { height: 22%; flex: none; border-radius: 0; }
.guide .body { flex: 1; padding: calc(14 * var(--u)) calc(20 * var(--u)) calc(16 * var(--u)); display: flex; flex-direction: column; }
.guide h3 { margin: 0; font: 700 max(1rem, calc(25 * var(--u)))/1.08 var(--f-display); letter-spacing: -0.02em; animation: rise var(--cvt-500) var(--v2-ease) both var(--cvt-300); }
.guide .by { margin-top: calc(4 * var(--u)); color: var(--pc-ink-2); font-size: max(0.6875rem, calc(12 * var(--u))); animation: rise var(--cvt-500) var(--v2-ease) both var(--cvt-400); }
.guide ol { list-style: none; margin: calc(10 * var(--u)) 0 0; padding: 0; }
.guide li { display: grid; grid-template-columns: calc(48 * var(--u)) 1fr; gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) 0; border-top: 1px solid var(--pc-line); animation: rise var(--cvt-500) var(--v2-ease) both; animation-delay: calc(var(--cvt-600) + var(--i) * var(--cvt-260)); }
.guide li > b { font: 700 max(0.6875rem, calc(11 * var(--u)))/1.25 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--pc-ink-2); min-width: 3.4em; }
.guide li q { font: 500 max(0.75rem, calc(15 * var(--u)))/1.3 var(--f-display); quotes: "\201C" "\201D"; }
.guide li small { display: block; margin-top: 0.125rem; color: var(--pc-pen); font: 650 max(0.6875rem, calc(11 * var(--u)))/1.2 var(--f-ui); }
.guide .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); padding-top: calc(10 * var(--u)); color: var(--pc-ink-2); font-size: max(0.6875rem, calc(11 * var(--u))); animation: rise var(--cvt-500) var(--v2-ease) both var(--cvt-1900); }
.guide .foot span { display: inline-flex; align-items: center; gap: 0.25rem; }
.guide .foot svg { width: 1.1em; height: 1.1em; flex: none; }
.guide .pub { position: relative; display: grid; padding: calc(9 * var(--u)) calc(16 * var(--u)); border-radius: 99rem; background: var(--pc-brand); color: var(--pc-on-brand); font: 700 max(0.6875rem, calc(13 * var(--u)))/1 var(--f-ui); white-space: nowrap; animation: press var(--cvt-420) var(--v2-ease) var(--cvt-2500), booked var(--cvt-400) var(--v2-ease) forwards var(--cvt-2800); }
.guide .pub > span { grid-area: 1 / 1; text-align: center; }
.guide .pub .b1 { animation: fade var(--cvt-250) var(--v2-ease) reverse forwards var(--cvt-2750); }
.guide .pub .b2 { opacity: 0; animation: show var(--cvt-300) var(--v2-ease) forwards var(--cvt-2800); }

/* ============ the close: the one call to action ============ */
.cv-close { position: relative; display: grid; place-items: center; min-height: 80svh; padding: 4rem 1rem 6rem; }
.endcard { max-width: 44rem; padding: 3rem 2rem; text-align: center; }
.endcard h2 { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.05em; font-weight: 900; }
.endcard p { margin: 1.25rem auto 0; max-width: 30rem; color: var(--ink-2); font-size: 1.1875rem; }
.endcard .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.endcard .small { margin-top: 2rem; color: var(--ink-3); font-size: max(var(--text-min), 0.9375rem); }

/* ============ the foot ============ */
.cv-foot { display: grid; gap: 0.75rem; justify-items: center; padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom)); text-align: center; background: var(--card-t); color: var(--ink-2); }
.cv-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; }
.cv-foot nav a { display: inline-flex; align-items: center; min-height: 3rem; color: var(--ink); font-weight: 600; }
.cv-foot p { margin: 0; max-width: 40rem; }
.cv-foot .cv-fine { color: var(--ink-2); }

@media (max-width: 440px) { .cv-top .ga-brand-name { display: none; } }

/* ============ phone: the card up top, the words at the thumb ============ */
@media (max-width: 47.5rem) {
  .cv-top { padding: max(0.625rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)); gap: 0.5rem; }
  .cv-nav { display: none; }
  .cv-tag { margin-right: auto; }
  .cv-top .ga-preview { position: static; }      /* the line hangs from the bar's left edge, so it stays on the screen */
  .cv-top .ga-preview-pop { left: 1rem; }
  .cv-top .btn.sm { padding: 0 1rem; white-space: nowrap; }
  .cv-top .ga-brand { min-width: 3rem; justify-content: center; }
  .f.cal { --cols: 3; }
  .cal .blk.far, .cal .days .far, .cal .creator { display: none; }
  .guide li.opt { display: none; }
  .wish .write { padding-top: calc(60 * var(--u)); }
}
@media (max-width: 47.5rem) and (prefers-reduced-motion: no-preference) and (min-height: 35rem) {
  html.cv-film .cv3 { --u: min(calc((100vw - 2rem) / 540), calc((100svh - 24rem) / 520)); }
  .cv-film .stage { --cx: 50%; --cy: 37%; perspective: 56.25rem; }
  .cv-film .gal { --R: max(10.625rem, 50vw); }
  .cv-film .gal i { left: -3.125rem; top: -2.125rem; width: 6.25rem; height: 4.25rem; border-width: 0.25rem; }
  .cv-film .ring { --rd: min(118vw, 62svh); }
  .cv-film .ring text { font-size: 3.25rem; }
  .cv-film .stage .caps { left: 1rem; right: 1rem; top: auto; bottom: calc(1rem + env(safe-area-inset-bottom)); translate: none; width: auto; }
  .cv-film .caps::before { display: none; }
  .cv-film .cap { align-self: end; padding: 1.25rem; border-radius: 1.5rem; background: var(--card-t); box-shadow: var(--sh2), 0 0 0 1px var(--line); }
  .cv-film .cap :is(h1, h2) { font-size: 2rem; }
  .cv-film .cap p { font-size: 1rem; margin-top: 0.5rem; }
  .cv-film .cap .label { margin-bottom: 0.5rem; }
  .cv-film .cap .acts { margin-top: 1rem; }
  .cv-film .cap .hint, .cv-film .stage .pager { display: none; }
}
@media (max-width: 47.5rem) and (max-height: 43.75rem) { .cv-film .cap p, .cv-film .cap .note { display: none; } }
