/* F-305: "Why another travel site?" (gitaway/pages/coverwhy.py) as three alternating proof rows (docs/design/creator-story/index.html `section.why`). Words on one side, a large recording of the real app on
   the other, swapping; no box around the visual, only a soft glow in the row's colour. Each row keeps the old way as one struck line, "Elsewhere: <s>$189 a night*</s>": the words in the cover's second ink
   (#A6A6AB on #161618 7.2, on #222225 6.3) and a thin strike in a softened orange, symbolic and light, never the loud line-through of a crossed-out price. The cover is always dark, so there is one set of
   colours here. Colour comes from the content (the row's own colour in its glow and glyph tile); orange is only the strike and the Heads up row's glow, green the caption's dot.
   The zoom (.wy-cam) is CSS keyframes over --cvt-cam, five shots (a wide, b costs, c Heads up, d reviews, e the whole fine print) and three rings; it starts when it comes on screen (cover_proof.js adds .go
   to the row) and waits paused until then. The motion is only under html.cv-film (cover_boot.js: motion allowed, not ?still, a screen tall enough); without it every row is its still: the zoom shows the
   costs shot with its rings and one line, the clips their posters. A phone (max-width 47.5rem) stacks words first and takes the phone-width captures (the <picture> sources, the -m clips). */
.cv3 .wy { --sig-t: rgb(242 85 0 / .18); --good: #34C3A9; max-width: 76rem; margin: 0 auto; padding: 5rem 1rem 1rem; }

.wy-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); }
.wy-kick i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sig); }
.cv3 .wy h2 { margin: 0.875rem 0 0; font-size: clamp(2.75rem, 7.6vw, 6rem); line-height: .93; letter-spacing: -.05em; font-weight: 900; text-wrap: balance; }
.cv3 .wy h2 em { font-style: normal; color: var(--ink-3); }
.wy-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); }

.wy-rows { display: grid; gap: clamp(4.5rem, 9vw, 8rem); margin-top: clamp(3rem, 6vw, 5.5rem); }
.wy-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; --on: #FFFFFF; }
.wy-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.wy-row:nth-child(even) .wy-v { order: -1; }
.wy-t { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; }
.wy-t h3 { margin: 0; font: 800 clamp(2rem, 3.6vw, 3rem)/1.02 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.wy-t p { margin: 0; max-width: 30rem; color: var(--ink-2); font-size: max(var(--text-min), 1.0625rem); line-height: 1.5; }
.wy-lab { display: flex; align-items: center; gap: 0.5rem; font: 700 max(var(--label-min), 0.75rem)/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.wy-lab b { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 0.5rem; background: var(--c); color: var(--on); }
.wy-lab b svg { width: 0.9375rem; height: 0.9375rem; }
.wy-was { font: 600 max(var(--text-min), 0.9375rem)/1.3 var(--f-ui); color: var(--ink-2); }
.wy-was s { text-decoration-line: line-through; text-decoration-color: color-mix(in srgb, var(--sig) 55%, transparent); text-decoration-thickness: 1px; }
.wy-ticks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.375rem 0 0; padding: 0; list-style: none; }
.wy-ticks li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8125rem; border-radius: 99rem; background: var(--card-solid); font: 600 max(var(--text-min), 0.875rem)/1.2 var(--f-ui); }
.wy-ticks li i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ink-3); }
.wy-soon { display: inline-block; padding: 0.1875rem 0.4375rem; border-radius: 99rem; box-shadow: inset 0 0 0 1px var(--line-2); font: 700 max(var(--label-min), 0.6875rem)/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); vertical-align: 0.0625rem; }

/* the visual: no box, a soft glow in the row's colour */
.wy-v { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0.875rem; margin: 0; }
.wy-v::before { content: ""; position: absolute; inset: -14% 0; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 24%, transparent), transparent 75%); }
.wy-clip { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 1.25rem; background: var(--paper-2); box-shadow: 0 2rem 5rem rgb(0 0 0 / .65); }
.wy-vm { display: none; }
.wy-say { position: relative; z-index: 1; min-height: 3.25rem; width: 100%; margin: 0; text-align: center; font: 700 clamp(1.0625rem, 1.6vw, 1.25rem)/1.3 var(--f-ui); letter-spacing: -.01em; }
.wy-say span { position: absolute; inset: 0 0 auto; opacity: 0; transition: opacity var(--cvt-600) ease; }
.wy-say span.on { opacity: 1; }
.wy-say em { font-style: normal; color: var(--ink-2); }
.wy-v figcaption { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-size: max(var(--text-min), 0.8125rem); text-align: left; }
.wy-v figcaption i { flex: none; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--good); }

/* the guided zoom: five shots stacked in one frame, each given its moment */
.wy-cam { --wa: 100%; --wb: 92%; --wc: 64%; --wd: 66%; --we: 56%; --pan: -36%;
  /* the rings' boxes (--rN-x/-y/-w/-h, % of the costs shot) are the defaults below; scripts/capture_catch.py prints them */
  position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 11; overflow: hidden; }
.wy-sh { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.wy-fr { position: relative; }
.wy-fr img { display: block; width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 2rem 5rem rgb(0 0 0 / .55); }
.wy-sh.a { transform-origin: 50% 90%; } .wy-sh.a .wy-fr { width: var(--wa); }
.wy-sh.b .wy-fr { width: var(--wb); }
.wy-sh.c .wy-fr { width: var(--wc); }
.wy-sh.d .wy-fr { width: var(--wd); }
.wy-sh.e { place-items: start center; } .wy-sh.e .wy-fr { width: var(--we); margin-top: 4%; }
.wy-ring { position: absolute; border-radius: 0.75rem; box-shadow: 0 0 0 0.1875rem var(--ink), 0 0 2rem rgb(245 245 247 / .35); opacity: 0; }
.wy-ring.r1 { left: var(--r1-x, 51.6%); top: var(--r1-y, 21.1%); width: var(--r1-w, 47.5%); height: var(--r1-h, 41.9%); }
.wy-ring.r2 { left: var(--r2-x, 2.2%); top: var(--r2-y, 21.1%); width: var(--r2-w, 47.5%); height: var(--r2-h, 41.9%); }
.wy-ring.r3 { left: var(--r3-x, 2.2%); top: var(--r3-y, 64%); width: var(--r3-w, 47.5%); height: var(--r3-h, 29.2%); }
/* the still (no html.cv-film): the costs shot, ringed, with its one line */
.wy-sh.b, .wy-ring { opacity: 1; }
.wy-cam-say span:nth-child(2) { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .cv-film .wy-sh, .cv-film .wy-ring, .cv-film .wy-cam-say span { opacity: 0; animation: var(--cvt-cam) cubic-bezier(.45, 0, .2, 1) infinite both; transition: none; }
  .cv-film .wy-row:not(.go) :is(.wy-sh, .wy-ring, .wy-cam-say span) { animation-play-state: paused; }
  .cv-film .wy-sh.a { animation-name: wy-ca; } .cv-film .wy-sh.b { animation-name: wy-cb; } .cv-film .wy-sh.c { animation-name: wy-cc; } .cv-film .wy-sh.d { animation-name: wy-cd; } .cv-film .wy-sh.e { animation-name: wy-ce; }
  .cv-film .wy-ring { animation-timing-function: ease; }
  .cv-film .wy-ring.r1 { animation-name: wy-rg1; } .cv-film .wy-ring.r2 { animation-name: wy-rg2; } .cv-film .wy-ring.r3 { animation-name: wy-rg3; }
  .cv-film .wy-cam-say span { animation-timing-function: ease; }
  .cv-film .wy-cam-say span:nth-child(1) { animation-name: wy-cs1; } .cv-film .wy-cam-say span:nth-child(2) { animation-name: wy-cs2; } .cv-film .wy-cam-say span:nth-child(3) { animation-name: wy-cs3; }
  .cv-film .wy-cam-say span:nth-child(4) { animation-name: wy-cs4; } .cv-film .wy-cam-say span:nth-child(5) { animation-name: wy-cs5; }
}
@keyframes wy-ca { 0% { opacity: 1; transform: none; } 14% { opacity: 1; transform: scale(1.05); } 19% { opacity: 0; transform: scale(1.7); } 97% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes wy-cb { 0%, 15% { opacity: 0; transform: scale(.78); } 20%, 45% { opacity: 1; transform: none; } 49%, 100% { opacity: 0; transform: scale(1.2); } }
@keyframes wy-rg1 { 0%, 22% { opacity: 0; transform: scale(1.12); } 25%, 45% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; } }
@keyframes wy-rg2 { 0%, 29% { opacity: 0; transform: scale(1.12); } 32%, 45% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; } }
@keyframes wy-rg3 { 0%, 36% { opacity: 0; transform: scale(1.12); } 39%, 45% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; } }
@keyframes wy-cc { 0%, 46% { opacity: 0; transform: scale(.8); } 50%, 65% { opacity: 1; transform: none; } 69%, 100% { opacity: 0; transform: scale(1.15); } }
@keyframes wy-cd { 0%, 66% { opacity: 0; transform: translateY(5%); } 70%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes wy-ce { 0%, 87% { opacity: 0; transform: scale(1.35); } 90.5% { opacity: 1; transform: none; } 97.5% { opacity: 1; transform: translateY(var(--pan)); } 100% { opacity: 0; transform: translateY(var(--pan)); } }
@keyframes wy-cs1 { 0%, 14% { opacity: 1; } 17%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wy-cs2 { 0%, 18% { opacity: 0; } 21%, 45% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes wy-cs3 { 0%, 47% { opacity: 0; } 50%, 65% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes wy-cs4 { 0%, 67% { opacity: 0; } 70%, 86% { opacity: 1; } 89%, 100% { opacity: 0; } }
@keyframes wy-cs5 { 0%, 88% { opacity: 0; } 91%, 97% { opacity: 1; } 100% { opacity: 0; } }

.wy-note { margin: 3rem 0 0; text-align: center; color: var(--ink-2); font-size: max(var(--text-min), 0.875rem); }

@media (max-width: 47.5rem) {
  .cv3 .wy { padding: 3.5rem 1rem 1rem; }
  .wy-row, .wy-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .wy-row:nth-child(even) .wy-v { order: 0; }
  .wy-vw { display: none; } .wy-vm { display: block; }
  .wy-cam { aspect-ratio: 4 / 5; --wa: 62%; --wb: 94%; --wc: 94%; --wd: 80%; --we: 74%; --pan: -78%;
    --r1-x: 4.9%; --r1-y: 44.5%; --r1-w: 90.2%; --r1-h: 29.5%; --r2-x: 4.9%; --r2-y: 14.8%; --r2-w: 90.2%; --r2-h: 28.9%; --r3-x: 4.9%; --r3-y: 74.6%; --r3-w: 90.2%; --r3-h: 20.5%; }
}
