/* F-306: "From your post to a postcard." (gitaway/pages/covercreator.py; prototype docs/design/creator-story/index.html `section.crt`). The kicker, the heading, a lede, four steps and two buttons beside a floating
   stage with no box and no captions: a blog post, a reel and a video fold into one postcard, readers plan from it, a line runs back to the creator's post. The steps light in turn with the stage's story,
   both on one loop (--cvt-loop). The loop runs only under html.cv-film (cover_boot.js) and only while the section is on screen (cover_proof.js adds .go); everything else shows every step and the stage at rest:
   the postcard, its three readers and the line back. Colour comes from the content (the places' own colours, green for the line home). Dim steps stay at .75 so their words keep 4.5:1. Words on the stage's cards: #F5F5F7 on #222225 14.6,
   the second ink #A6A6AB on #222225 6.3 and on #2D2D31 5.4. Sizes inside the stage are container units (cqi), so it scales whole. */
.cv3 .crt { --good: #34C3A9; --s1: #222225; --s2: #2D2D31; --s3: #3A3A3F; max-width: 76rem; margin: 0 auto; padding: 6rem 1rem 2rem; }
.cr-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.cr-kick { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cr-kick i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--good); }
.cv3 .crt h2 { margin: 0.875rem 0 0; font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: .93; letter-spacing: -.05em; font-weight: 900; text-wrap: balance; }
.cv3 .crt h2 em { font-style: normal; color: var(--ink-3); }
.cr-lede { margin: 1.125rem 0 0; max-width: 36rem; font: 500 clamp(1.125rem, 2vw, 1.375rem)/1.4 var(--f-ui); letter-spacing: -.01em; color: var(--ink-2); }
.cr-steps { display: grid; gap: 0.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.cr-steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.875rem; align-items: start; padding: 0.75rem 0.875rem; border-radius: 1rem; }
.cr-steps b { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: var(--c); color: var(--on, #FFFFFF); font: 800 1rem/1 var(--f-ui); }
.cr-steps span { font: 700 1.125rem/1.3 var(--f-ui); }
.cr-steps small { display: block; margin-top: 0.1875rem; color: var(--ink-2); font: 500 max(var(--text-min), 0.9375rem)/1.4 var(--f-ui); }
.cr-acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--target); padding: 0 1.375rem; border-radius: 99rem; border: 0; font: 700 1rem/1 var(--f-ui); text-decoration: none; cursor: pointer; }
.cr-btn svg { width: 1.125rem; height: 1.125rem; }
.cr-btn-1 { background: var(--cta-bg); color: var(--cta-fg); }
.cr-btn-2 { background: var(--s2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.cr-btn:focus-visible { outline: 0.1875rem solid var(--ink); outline-offset: 0.1875rem; }

.cr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cr-fig { position: relative; }
/* the stage: no box, a soft glow of the place's blue */
.cr-stage { position: relative; width: 100%; max-width: 36rem; aspect-ratio: 1 / .92; margin-inline: auto; background: radial-gradient(closest-side, color-mix(in srgb, var(--pl-sd) 26%, transparent) 0%, color-mix(in srgb, var(--pl-sd) 10%, transparent) 55%, transparent 100%); overflow: hidden; container-type: inline-size; }
.cr-stage > * { position: absolute; }
.cr-src { width: 34%; border-radius: 0.875rem; background: var(--s2); box-shadow: 0 0.75rem 1.875rem rgb(0 0 0 / .5), 0 0 0 1px var(--line-2); padding: 3%; font-size: 2.6cqi; }
.cr-src .ttl { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cr-src .meta { color: var(--ink-2); font-size: 2.2cqi; margin-top: 0.3em; display: flex; align-items: center; gap: 0.35em; }
.cr-src .meta i { width: 1.4em; height: 1.4em; border-radius: 0.4em; background: var(--c); display: inline-grid; place-items: center; color: var(--pc-on); font-style: normal; font-weight: 800; font-size: 0.8em; }
.cr-src .ln { height: 0.55em; border-radius: 1em; background: var(--s3); margin-top: 0.45em; }
.cr-src.blog { left: 5%; top: 9%; --r: -7deg; transform: rotate(var(--r)); }
.cr-src.blog .ph { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 0.5em; margin-bottom: 0.6em; }
.cr-src.reel { left: 40%; top: 5%; width: 24%; --r: 4deg; transform: rotate(var(--r)); padding: 0; overflow: hidden; }
.cr-src.reel .ph { position: relative; aspect-ratio: 9 / 15; display: flex; flex-direction: column; justify-content: flex-end; padding: 8%; overflow: hidden; }
.cr-src.reel .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.cr-src.reel .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 50%, rgb(0 0 0 / .75)); }
.cr-src.reel .ph b { position: relative; z-index: 1; font-size: 2.4cqi; line-height: 1.15; }
.cr-src.reel .play { position: absolute; left: 50%; top: 38%; translate: -50% -50%; width: 9cqi; height: 9cqi; border-radius: 50%; background: rgb(255 255 255 / .9); display: grid; place-items: center; }
.cr-src.reel .play::after { content: ""; border-left: 2.4cqi solid #111; border-block: 1.5cqi solid transparent; margin-left: 0.6cqi; }
.cr-src.vid { right: 5%; top: 16%; width: 32%; --r: 8deg; transform: rotate(var(--r)); }
.cr-src.vid .ph { position: relative; aspect-ratio: 16 / 9; border-radius: 0.5em; background: linear-gradient(135deg, var(--pl-teal), var(--pl-sd)); margin-bottom: 0.6em; display: grid; place-items: center; }
.cr-src.vid .ph::after { content: ""; border-left: 2.6cqi solid #fff; border-block: 1.6cqi solid transparent; margin-left: 0.6cqi; }
.cr-src.vid .ph span { position: absolute; right: 0.4em; bottom: 0.4em; padding: 0.15em 0.4em; border-radius: 0.3em; background: rgb(0 0 0 / .7); font-size: 1.9cqi; font-weight: 700; }

.cr-pc { left: 18%; top: 10%; width: 64%; border-radius: 1.1rem; background: var(--s1); box-shadow: 0 1.875rem 3.75rem rgb(0 0 0 / .6), 0 0 0 1px var(--line-2); overflow: hidden; font-size: 2.4cqi; }
.cr-pc .ph { position: relative; height: 11cqi; display: flex; align-items: flex-end; padding: 0 4%; overflow: hidden; }
.cr-pc .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cr-pc .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / .55)); }
.cr-pc .ph b { position: relative; z-index: 1; font-size: 3.6cqi; letter-spacing: -.03em; font-weight: 900; line-height: 1.6; }
.cr-pc .by { display: flex; align-items: center; gap: 0.5em; padding: 2.5% 4% 0; color: var(--ink-2); font-size: 2.1cqi; }
.cr-pc .by i { width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--pl-pink); display: grid; place-items: center; font-style: normal; color: var(--pc-on); font-weight: 800; }
.cr-smp { margin-left: auto; padding: 0.2em 0.6em; border-radius: 99rem; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1.7cqi; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cr-pc .days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5%; padding: 3% 4% 0; }
.cr-pc .days span { padding: 0.5em 0.4em; border-radius: 0.5em; background: var(--s2); font-weight: 700; font-size: 1.8cqi; line-height: 1.2; }
.cr-pc .days span:first-child { background: var(--ink); color: var(--cta-fg); }
.cr-pc .days span em { display: flex; gap: 0.2em; margin-top: 0.4em; }
.cr-pc .days span em i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--c); }
.cr-pc ol { list-style: none; margin: 0; padding: 3% 4% 4%; display: grid; gap: 0.55em; }
.cr-pc li { display: grid; grid-template-columns: 4.2em 1.9em 1fr; align-items: center; gap: 0.5em; }
.cr-pc li time { color: var(--ink-2); font-size: 2cqi; font-variant-numeric: tabular-nums; }
.cr-pc li b { width: 1.9em; height: 1.9em; border-radius: 0.55em; background: var(--c); }
.cr-pc li span { font-weight: 700; line-height: 1.2; }
.cr-pc li span small { display: block; font-weight: 500; color: var(--ink-2); font-size: 1.9cqi; font-style: italic; }

.cr-rd { right: 3%; padding: 0.55em 0.9em; border-radius: 99rem; background: var(--s2); box-shadow: 0 0.625rem 1.5rem rgb(0 0 0 / .5), 0 0 0 1px var(--line-2); font: 700 2.3cqi/1 var(--f-ui); display: flex; align-items: center; gap: 0.5em; white-space: nowrap; }
.cr-rd i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--c); }
.cr-rd.r1 { top: 60%; } .cr-rd.r2 { top: 70%; } .cr-rd.r3 { top: 80%; }
.cr-back { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.cr-back path { fill: none; stroke: var(--good); stroke-width: 0.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.cr-back .head { fill: var(--good); stroke: none; }
.cr-you { left: 4%; top: 74%; padding: 0.7em 1em; border-radius: 1rem; background: color-mix(in srgb, var(--good) 18%, var(--s1)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--good) 55%, transparent); font: 700 2.4cqi/1.25 var(--f-ui); }
.cr-you small { display: block; font-weight: 500; color: var(--ink-2); font-size: 2cqi; }
/* the still: the sources have folded away; the postcard, its readers and the line back are at rest */
.cr-src { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .cv-film .cr-src { display: block; }
  .cv-film :where(.cr-steps li, .cr-src, .cr-pc, .cr-pc li, .cr-rd, .cr-you, .cr-back path, .cr-back .head) { animation: var(--cvt-loop) cubic-bezier(.5, 0, .2, 1) infinite both; }
  .cv-film .crt:not(.go) :where(.cr-steps li, .cr-src, .cr-pc, .cr-pc li, .cr-rd, .cr-you, .cr-back path, .cr-back .head) { animation-play-state: paused; }
  .cv-film .cr-steps li { opacity: .75; }
  .cv-film .cr-steps li:nth-child(1) { animation-name: cr-lit1; } .cv-film .cr-steps li:nth-child(2) { animation-name: cr-lit2; } .cv-film .cr-steps li:nth-child(3) { animation-name: cr-lit3; } .cv-film .cr-steps li:nth-child(4) { animation-name: cr-lit4; }
  .cv-film .cr-src.blog { animation-name: cr-s-blog; } .cv-film .cr-src.reel { animation-name: cr-s-reel; } .cv-film .cr-src.vid { animation-name: cr-s-vid; }
  .cv-film .cr-pc { animation-name: cr-pc; animation-timing-function: cubic-bezier(.3, 1.3, .5, 1); }
  .cv-film .cr-pc li { animation-name: cr-st; animation-timing-function: ease; } .cv-film .cr-pc li:nth-child(2) { animation-name: cr-st2; } .cv-film .cr-pc li:nth-child(3) { animation-name: cr-st3; }
  .cv-film .cr-rd { animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
  .cv-film .cr-rd.r1 { animation-name: cr-rd1; } .cv-film .cr-rd.r2 { animation-name: cr-rd2; } .cv-film .cr-rd.r3 { animation-name: cr-rd3; }
  .cv-film .cr-back path { animation-name: cr-draw; animation-timing-function: ease-in-out; } .cv-film .cr-back .head { animation-name: cr-headin; animation-timing-function: ease; }
  .cv-film .cr-you { animation-name: cr-you; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
}
@keyframes cr-lit1 { 0%, 26% { opacity: 1; background: var(--s1); } 30%, 96% { opacity: .75; background: transparent; } 100% { opacity: 1; background: var(--s1); } }
@keyframes cr-lit2 { 0%, 27% { opacity: .75; background: transparent; } 31%, 39% { opacity: 1; background: var(--s1); } 43%, 100% { opacity: .75; background: transparent; } }
@keyframes cr-lit3 { 0%, 39% { opacity: .75; background: transparent; } 43%, 50% { opacity: 1; background: var(--s1); } 54%, 100% { opacity: .75; background: transparent; } }
@keyframes cr-lit4 { 0%, 50% { opacity: .75; background: transparent; } 54%, 93% { opacity: 1; background: var(--s1); } 97%, 100% { opacity: .75; background: transparent; } }
@keyframes cr-s-blog { 0% { opacity: 0; transform: translateY(6%) rotate(var(--r)); } 5%, 22% { opacity: 1; transform: rotate(var(--r)); } 32%, 100% { opacity: 0; transform: translate(70%, 40%) scale(.4) rotate(0); } }
@keyframes cr-s-reel { 0%, 1% { opacity: 0; transform: translateY(6%) rotate(var(--r)); } 7%, 23% { opacity: 1; transform: rotate(var(--r)); } 33%, 100% { opacity: 0; transform: translate(10%, 60%) scale(.4) rotate(0); } }
@keyframes cr-s-vid { 0%, 2% { opacity: 0; transform: translateY(6%) rotate(var(--r)); } 9%, 24% { opacity: 1; transform: rotate(var(--r)); } 34%, 100% { opacity: 0; transform: translate(-60%, 45%) scale(.4) rotate(0); } }
@keyframes cr-pc { 0%, 29% { opacity: 0; transform: scale(.82) translateY(4%); } 37%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.96); } }
@keyframes cr-st { 0%, 38% { opacity: 0; transform: translateX(-6%); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes cr-st2 { 0%, 41% { opacity: 0; transform: translateX(-6%); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes cr-st3 { 0%, 44% { opacity: 0; transform: translateX(-6%); } 48%, 100% { opacity: 1; transform: none; } }
@keyframes cr-rd1 { 0%, 50% { opacity: 0; transform: translateX(30%) scale(.9); } 54%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cr-rd2 { 0%, 54% { opacity: 0; transform: translateX(30%) scale(.9); } 58%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cr-rd3 { 0%, 58% { opacity: 0; transform: translateX(30%) scale(.9); } 62%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cr-draw { 0%, 66% { stroke-dashoffset: 100; opacity: 1; } 76%, 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cr-headin { 0%, 75% { opacity: 0; } 77%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cr-you { 0%, 74% { opacity: 0; transform: scale(.8); } 79% { opacity: 1; transform: scale(1.06); } 82%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

@media (max-width: 60rem) {
  .cr-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.5rem) {
  .cv3 .crt { padding: 4rem 1rem 1rem; }
  .cr-acts .cr-btn { flex: 1 1 100%; }
}
