/* Demo reel. Six example pieces drawn and animated in the page. Each phone is a size container,
   so everything inside a screen is sized in cqw and scales from a phone to an iMac.
   Every piece runs on one clock: its CSS loops share its length (--L), and reel.js reads the
   piece's clock to time captions, typing, counters and the carousel. A piece plays only while
   it is on screen, a tap holds it, and with reduced motion each piece rests on its final frame. */

.reel-page { --u: 1px; --red-text: #ff4b50; }
.reel-page .chrome { background: rgba(17, 17, 17, 0.84); }
@media (min-width: 900px) {
  .reel-page { --u: min(1vw, 1.78vh); }
  .reel-page .chrome .wrap, .reel-page main .wrap, .reel-page footer.wrap { width: calc(100% - var(--u) * 13); max-width: 1680px; }
  .reel-page .topbar { padding-block: calc(var(--u) * 1.2); }
  .reel-page .topbar img { height: max(44px, calc(var(--u) * 3.4)); width: auto; }
}
.reel-page .eyebrow { color: var(--red-text); font-size: max(0.75rem, calc(var(--u) * 0.85)); letter-spacing: 0.32em; }

/* --- Hero: a camera viewfinder ----------------------------------------------------------------- */
.vf { position: relative; margin: clamp(12px, 3vw, 40px) auto clamp(36px, 6vw, 96px); padding: clamp(40px, 7vw, 120px) clamp(22px, 6vw, 110px); }
.vf::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px); }
.vf::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vf-corner { position: absolute; width: clamp(22px, 3vw, 56px); height: clamp(22px, 3vw, 56px); border: 2px solid rgba(255, 255, 255, 0.55); }
.vf-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-hud { position: absolute; display: flex; align-items: center; gap: 8px; font: 600 clamp(0.68rem, 0.9vw, 1rem) var(--font); letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.vf-hud.tl { top: clamp(10px, 1.6vw, 26px); left: clamp(30px, 4vw, 80px); color: var(--red-text); }
.vf-hud.tr { top: clamp(10px, 1.6vw, 26px); right: clamp(30px, 4vw, 80px); }
.vf-hud.bl { bottom: clamp(10px, 1.6vw, 26px); left: clamp(30px, 4vw, 80px); }
.vf-hud.br { bottom: clamp(10px, 1.6vw, 26px); right: clamp(30px, 4vw, 80px); }
.vf-dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.vf-batt { display: inline-flex; gap: 2px; }
.vf-batt i { width: 0.35em; height: 0.8em; background: rgba(255, 255, 255, 0.75); border-radius: 1px; }
/* A focus reticle in the empty right side of the frame. */
.vf-reticle { position: absolute; right: 16%; top: 50%; width: clamp(40px, 4.4vw, 84px); aspect-ratio: 1; margin-top: calc(clamp(40px, 4.4vw, 84px) / -2); border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); pointer-events: none; }
.vf-reticle::before, .vf-reticle::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.18); }
.vf-reticle::before { left: 50%; top: -40%; bottom: -40%; width: 1px; }
.vf-reticle::after { top: 50%; left: -40%; right: -40%; height: 1px; }
.vf h1 { font-size: clamp(2.35rem, 7.2vw, 8.2rem); line-height: 0.95; letter-spacing: -0.05em; margin: 0 0 clamp(16px, 2vw, 32px) -0.04em; text-wrap: balance; }
.vf h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.vf h1 .ln > span { display: block; }
.vf .lead { font-size: clamp(1.05rem, 1.6vw, 1.85rem); max-width: 38ch; color: #cfcfcf; margin: 0 0 14px; }
.vf .note { color: #8a8a8a; font-size: clamp(0.9rem, 1.05vw, 1.15rem); max-width: 56ch; margin: 0; }
@media (max-width: 899px) { .vf-reticle { display: none; } }
@media (max-width: 599px) {
  .vf { padding: 40px 20px 36px; }
  .vf-hud.bl, .vf-hud.br { display: none; }
  .vf h1 { font-size: clamp(2.35rem, 10.4vw, 3rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .vf-corner { animation: vf-lock 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .vf-corner.tl { --dx: -10px; --dy: -10px; } .vf-corner.tr { --dx: 10px; --dy: -10px; animation-delay: 0.03s; }
  .vf-corner.bl { --dx: -10px; --dy: 10px; animation-delay: 0.06s; } .vf-corner.br { --dx: 10px; --dy: 10px; animation-delay: 0.09s; }
  .vf-hud, .vf-reticle { animation: fade-in 0.4s linear 0.25s both; }
  .vf-dot { animation: rec-blink 1s steps(1) 0.45s infinite; }
  .vf h1 .ln > span { animation: line-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
  .vf h1 .ln + .ln > span { animation-delay: 0.5s; }
  .vf .eyebrow { animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
  .vf .lead { animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both; }
  .vf .note { animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }
}
@keyframes vf-lock { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rec-blink { 0%, 59% { opacity: 1; } 60%, 100% { opacity: 0.15; } }

/* --- The pieces ----------------------------------------------------------------------------------- */
.reel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 64px) clamp(20px, 2.4vw, 48px); }
.reel-pager { display: none; }
@media (max-width: 899px) {
  .reel-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80vw, 340px, calc((100svh - 300px) * 9 / 16 + 3.2%)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; padding: 4px 16px 8px; margin-inline: -16px; scrollbar-width: none; }
  .reel-grid::-webkit-scrollbar { display: none; }
  .piece { scroll-snap-align: start; }
  .reel-pager { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
  .reel-pager b { color: var(--text); font-weight: 600; letter-spacing: 0.08em; margin-right: 8px; font-variant-numeric: tabular-nums; }
  .reel-pager i { width: 16px; height: 2px; border-radius: 2px; background: #444; transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s; }
  .reel-pager i.on { width: 28px; background: var(--red); }
  .reel-pager span { margin-left: auto; }
}
@media (min-width: 600px) and (max-width: 899px) { .reel-grid { grid-auto-columns: calc((100% - 48px) / 2.2); } }
.reel-strip { margin-bottom: clamp(56px, 8vw, 140px); }

.piece { margin: 0; display: grid; gap: clamp(16px, 1.6vw, 28px); align-content: start; container-type: inline-size; }
.piece figcaption { display: grid; gap: 6px; }
.piece .p-kind { color: var(--red-text); font-size: max(0.75rem, calc(var(--u) * 0.85)); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.piece .p-title { font-size: max(1.1rem, calc(var(--u) * 1.55)); font-weight: 600; letter-spacing: -0.015em; }
.piece .p-what { color: var(--muted); font-size: max(0.92rem, calc(var(--u) * 1.05)); line-height: 1.5; max-width: 44ch; }
@media (prefers-reduced-motion: no-preference) {
  .reel-strip.armed .piece { opacity: 0; transform: translateY(48px) scale(0.98); }
  .reel-strip.armed .piece.in { opacity: 1; transform: none; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s), opacity 0.6s linear var(--d, 0s); }
}

/* The phone: a machined frame with a glass sheen and a dynamic island. */
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 13% / 7.3%; padding: 1.4cqw; cursor: pointer;
  background: linear-gradient(145deg, #2b2b2b, #0a0a0a 40%, #151515);
  box-shadow: inset 0 0 0 0.3cqw #3a3a3a, inset 0 0 0 0.6cqw #050505, 0 2px 0 rgba(255, 255, 255, 0.04), 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 80px -40px rgba(237, 30, 36, 0.3); }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(90% 55% at 0% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025) 45%, transparent 75%); z-index: 6; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 11.4% / 6.4%; overflow: hidden; container-type: inline-size; contain: layout paint; font-family: var(--font); color: #fff; isolation: isolate; }
.screen::after { content: ""; position: absolute; top: 2.4cqw; left: 50%; width: 24cqw; height: 6.5cqw; margin-left: -12cqw; border-radius: 99px; background: #000; z-index: 10; }
.phone:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
/* Pause control, where the thumb already is. */
.hold-btn { position: absolute; top: 4.4cqw; right: 4.4cqw; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; z-index: 8; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.hold-btn svg { width: 12px; height: 12px; fill: #fff; }
.hold-btn .ic-play { display: none; }
.piece.held .hold-btn .ic-play { display: block; }
.piece.held .hold-btn .ic-pause { display: none; }
.phone:hover .hold-btn, .phone:focus-visible .hold-btn, .piece.held .hold-btn { opacity: 1; }
@media (hover: none) { .hold-btn { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .hold-btn { display: none; } .phone { cursor: default; } }

/* Everything in a piece waits for it to be on screen; a tap holds it. */
.piece .screen *, .piece .screen *::before, .piece .screen *::after { animation-play-state: paused !important; }
.piece.play:not(.held) .screen *, .piece.play:not(.held) .screen *::before, .piece.play:not(.held) .screen *::after { animation-play-state: running !important; }
.clock { position: absolute; width: 0; height: 0; }
@media (prefers-reduced-motion: no-preference) { .clock { animation: clock var(--L) linear infinite; } }
@keyframes clock { to { opacity: 1; } }
/* A slow camera drift on illustrated pieces. */
@media (prefers-reduced-motion: no-preference) { .drift { animation: drift 16s ease-in-out infinite alternate; } }
@keyframes drift { to { transform: translate3d(-0.6cqw, -0.4cqw, 0) scale(1.015); } }

/* Kinetic captions, word by word (built by reel.js). */
.kin { position: absolute; left: 7cqw; right: 7cqw; display: flex; flex-wrap: wrap; gap: 0.6cqw 0.9cqw; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; z-index: 3; }
.kin span { position: relative; padding: 0.2cqw 1.1cqw; border-radius: 1.2cqw; transition: color 0.12s, opacity 0.2s cubic-bezier(0.2, 0, 0, 1); }
.kin span.on { color: #fff; }
.kin span.off { opacity: 0.35; }
/* One pill slides under the spoken word (placed by reel.js), on the reel's swipe curve. */
.kin .pill { position: absolute; left: 0; top: 0; border-radius: 1.2cqw; background: var(--red); opacity: 0; pointer-events: none; transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), width 0.18s cubic-bezier(0.32, 0.72, 0, 1), height 0.18s, opacity 0.12s linear; }
.kin .pill.jump { transition: none; }
.kin.enter span { animation: word-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i) * 40ms); }
.kin.leave span, .kin.leave .pill { opacity: 0; transition: opacity 0.16s cubic-bezier(0.4, 0, 1, 1), transform 0.16s cubic-bezier(0.4, 0, 1, 1); }
.kin.leave span { transform: translateY(-0.25em); }
@keyframes word-in { from { opacity: 0; transform: translateY(0.5em); } }

/* One film stock for the whole reel: the same grain and the same key light, high on the left, on every screen. */
.screen > .grain { position: absolute; inset: -20%; z-index: 9; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 42cqw; }
.screen > .light { position: absolute; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(120% 70% at 15% 0%, rgba(255, 240, 220, 0.07), transparent 55%), radial-gradient(150% 105% at 50% 42%, transparent 60%, rgba(0, 0, 0, 0.26)); }
.s-li > .light { background: radial-gradient(120% 70% at 15% 0%, rgba(255, 255, 255, 0.12), transparent 55%), radial-gradient(150% 105% at 50% 42%, transparent 62%, rgba(0, 0, 0, 0.07)); }
@media (prefers-reduced-motion: no-preference) { .screen > .grain { animation: grain 0.5s steps(4) infinite; } }

/* Sound: off until a tap on a piece's speaker; then one piece sounds at a time (reel-sound.js). */
.piece .p-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.snd-btn { position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #1d1d1d; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: background-color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.snd-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snd-btn .ic-on { display: none; }
.snd-btn[aria-pressed="true"] { background: var(--red); }
.snd-btn[aria-pressed="true"] .ic-on { display: block; }
.snd-btn[aria-pressed="true"] .ic-off { display: none; }
.snd-btn:hover { transform: scale(1.08); }
.snd-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.snd-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .piece.sounding.play:not(.held) .snd-btn::after { animation: rd-ring 1s cubic-bezier(0, 0, 0.2, 1) infinite; } }
@media (prefers-reduced-motion: reduce) { .snd-btn { display: none; } }

/* --- 1. Serigrafía: the squeegee pulls the print (8 s, 120 BPM) ---------------------------------------------- */
.s-serig { --L: 8s; background: radial-gradient(circle at 30% 20%, #2b2622, #15120f 70%); }
.s-serig::before { content: ""; position: absolute; inset: -10%; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.6px); background-size: 2.4cqw 2.4cqw; }
.sg-top { position: absolute; top: 12cqw; left: 8cqw; right: 8cqw; display: flex; justify-content: space-between; align-items: baseline; z-index: 3; }
.sg-brand { font-weight: 800; font-size: 6.6cqw; letter-spacing: 0.06em; }
.sg-tag { font-size: 3.2cqw; letter-spacing: 0.3em; text-transform: uppercase; color: #e8d9c4; }
.sg-frame { position: absolute; left: 15cqw; right: 15cqw; top: 25cqw; aspect-ratio: 2 / 3; border: 2.4cqw solid #8a6a45; border-radius: 1cqw; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 0.4cqw, transparent 0.4cqw 1.2cqw), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0 0.4cqw, transparent 0.4cqw 1.2cqw), #f1e8da; box-shadow: inset 0 0 0 0.3cqw rgba(0, 0, 0, 0.25), 0 4cqw 8cqw rgba(0, 0, 0, 0.6); }
.sg-print { position: absolute; inset: 0; background: inherit; isolation: isolate; transform-origin: 50% 100%; overflow: hidden; }
.sg-ink { position: absolute; inset: 0; }
.sg-print svg { width: 100%; height: 100%; display: block; }
/* The art is printed onto the paper: multiply keeps the paper's grain under the ink. */
.sg-print img { width: 100%; height: 100%; display: block; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.04); }
/* The first screen's yellow is mixed deeper, so the half-printed image reads on its own. */
.sg-print img:first-child { filter: saturate(1.35) contrast(1.15) brightness(0.96); }
.sg-blade { position: absolute; inset: 0 -6cqw; pointer-events: none; transform: translateY(100%); opacity: 0; }
.sg-blade::before { content: ""; position: absolute; left: 0; right: 0; top: -2.5cqw; height: 5cqw; border-radius: 1.2cqw; background: linear-gradient(#4a4a4a, #141414 60%, #0a0a0a); box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.6), inset 0 0.3cqw 0 rgba(255, 255, 255, 0.15); }
.sg-blade::after { content: ""; position: absolute; left: 6cqw; right: 6cqw; top: 2.2cqw; height: 1.2cqw; border-radius: 0 0 1cqw 1cqw; background: linear-gradient(#ff3b40, #b5121a); transform-origin: center; }
.sg-run { position: absolute; left: 15cqw; right: 15cqw; top: 137cqw; display: flex; justify-content: space-between; font-size: 2.9cqw; letter-spacing: 0.3em; color: rgba(232, 217, 196, 0.6); z-index: 3; }
.s-serig .kin { bottom: 10cqw; font-size: 8.4cqw; }
/* The squeegee, the bowed ink edge, the landing and the lift-off are driven by reel.js on the piece's clock. */
.sg-blade::before { transform: scaleY(var(--sq, 1)); }
.sg-blade::after { transform: scaleX(var(--ink, 1)); background: var(--bead, linear-gradient(#ffd84a, #e0a400)); }
.sg-print::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 38%, rgba(255, 248, 230, 0.6) 50%, transparent 62%); transform: translateX(var(--sx, 170%)); }
@media (prefers-reduced-motion: no-preference) {
  .s-serig::before { animation: grain 0.5s steps(4) infinite; }
}
@keyframes grain { 25% { transform: translate(-1%, 1%); } 50% { transform: translate(1%, -1%); } 75% { transform: translate(-1%, -1%); } }

/* --- 2. Café: latte art on the pour, opened by the golden spiral (9 s) ---------------------------------------------------- */
.s-cafe { --L: 9s; background: radial-gradient(circle at 50% 50%, #3d2717, #160d07 72%); }
.cf-head { position: absolute; top: 13cqw; left: 8cqw; right: 8cqw; z-index: 3; }
.cf-eyebrow { font-size: 3.2cqw; letter-spacing: 0.32em; text-transform: uppercase; color: #e9b77a; }
.cf-title { font-size: 10cqw; font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; margin-top: 2cqw; }
.cf-scene { position: absolute; inset: 0; }
/* The drawn cup sits exactly where the photo's cup is: coffee radius 29 cqw, centred at (50, 96.3). */
.cf-cup { position: absolute; left: -1.81cqw; width: 103.62cqw; top: 42.42cqw; }
.cf-photo { position: absolute; inset: 0; z-index: 2; }
.cf-photo svg { width: 100%; height: 100%; display: block; }
.cf-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(12, 7, 3, 0.74), rgba(12, 7, 3, 0.4) 22%, rgba(12, 7, 3, 0) 42%, rgba(12, 7, 3, 0) 80%, rgba(12, 7, 3, 0.5)); }
.cf-cup svg { width: 100%; display: block; overflow: visible; }
.cf-art { stroke-dasharray: 260; stroke-dashoffset: 0; stroke-linecap: butt; fill-opacity: 1; transform-box: fill-box; transform-origin: center; }
.cf-pour { opacity: 0; transform-box: fill-box; transform-origin: top; }
.cf-ripple { opacity: 0; transform-box: fill-box; transform-origin: center; }
.cf-steam path { opacity: 0.3; transform-box: fill-box; transform-origin: bottom; }
.cf-chip { position: absolute; left: 7cqw; right: 7cqw; bottom: 10cqw; display: flex; justify-content: space-between; align-items: center; padding: 3.4cqw 4.4cqw; border-radius: 3cqw; background: rgba(46, 28, 16, 0.86); border: 1px solid rgba(255, 244, 230, 0.16); font-size: 3.8cqw; z-index: 3; }
.cf-chip b { color: #e9b77a; font-size: 4.4cqw; }
/* Second beat over the photo (5.5 s): steam rises off the real cup and the season tag pops. */
.cf-steam2 { position: absolute; left: 42cqw; width: 16cqw; top: 46cqw; z-index: 2; opacity: 0; pointer-events: none; }
.cf-steam2 svg { width: 100%; display: block; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .cf-steam2 { animation: cf-steam2 var(--L) infinite; }
  .cf-steam2 path { animation: cf-sway 2.25s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; transform-box: fill-box; transform-origin: bottom; }
  .cf-steam2 path + path { animation-delay: -1.1s; }
  .cf-chip { animation: cf-chip var(--L) infinite; }
}
@keyframes cf-steam2 { 0%, 61.1% { opacity: 0; transform: translateY(4cqw); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 72.2% { opacity: 0.55; transform: translateY(0); } 91.7% { opacity: 0.3; transform: translateY(-7cqw); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); } 97.2%, 100% { opacity: 0; transform: translateY(-9cqw); } }
@keyframes cf-sway { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }
@keyframes cf-chip { 0%, 61.1% { transform: scale(1); border-color: rgba(255, 244, 230, 0.16); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 63.9% { transform: scale(1.06); border-color: #e9b77a; } 66.67%, 100% { transform: scale(1); border-color: rgba(255, 244, 230, 0.16); } }
.cf-heart { transform-box: fill-box; transform-origin: center; }
.cf-wob { transform-box: fill-box; transform-origin: 50% 0; }
.cf-photo { transform-origin: 50% 54.17%; }
@media (prefers-reduced-motion: no-preference) {
  .cf-heart { animation: cf-heart var(--L) infinite; }
  .cf-art.cf-tail { animation: cf-tail var(--L) infinite; }
  .cf-photo { animation: cf-photo var(--L) infinite; }
  .cf-pour { animation: cf-pour var(--L) infinite; }
  .cf-wob { animation: cf-wob 0.125s ease-in-out infinite alternate; }
  .cf-ripple { animation: cf-ripple var(--L) infinite; }
  .cf-ripple.r2 { animation-name: cf-ripple2; }
  .cf-steam path { animation: cf-steam 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .cf-steam path:nth-child(2) { animation-delay: 1.5s; }
}
/* Beats (L = 9 s, 120 BPM): the stream lands in the first quarter second, the heart grows on the pour until
   2 s, the pitcher pulls through to 2.5 s, the golden spiral opens the photo 3 → 4.5 s, a slow push-in holds,
   and the photo fades back to the empty cup for the next pour. */
@keyframes cf-pour {
  0% { opacity: 1; transform: scaleY(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  2.78%, 22.22% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  27.78% { opacity: 1; transform: scaleY(1.77); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
  30.56%, 100% { opacity: 0; transform: translateY(-8%) scaleX(0.3) scaleY(1.77); }
}
@keyframes cf-wob { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes cf-heart {
  0%, 2.78% { transform: scale(0); opacity: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  22.22%, 90% { transform: scale(1); opacity: 1; }
  90.1%, 100% { transform: scale(1); opacity: 0; }
}
/* The tail is the pitcher's pull through the heart. */
@keyframes cf-tail {
  0%, 22.22% { stroke-dashoffset: 260; opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  27.78%, 90% { stroke-dashoffset: 0; opacity: 1; }
  90.1%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes cf-ripple { 0%, 2.7% { opacity: 0; transform: scale(0.2); } 2.78% { opacity: 0.5; transform: scale(0.2); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 16.67%, 100% { opacity: 0; transform: scale(1.1); } }
@keyframes cf-ripple2 { 0%, 11.1% { opacity: 0; transform: scale(0.2); } 11.11% { opacity: 0.5; transform: scale(0.2); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 25%, 100% { opacity: 0; transform: scale(1.1); } }
/* The photo exists only from the moment the spiral starts, so nothing of it shows at the loop's seam. */
@keyframes cf-photo {
  0%, 33.2% { opacity: 0; visibility: hidden; transform: scale(1); }
  33.33%, 50% { opacity: 1; visibility: visible; transform: scale(1) rotate(0); animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  88.89% { opacity: 1; visibility: visible; transform: scale(1.04) rotate(2.5deg); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
  97.22%, 100% { opacity: 0; visibility: visible; transform: scale(0.985) rotate(2.5deg); }
}
@keyframes cf-steam { 0% { opacity: 0; transform: translateY(0) scaleX(1); } 40% { opacity: 0.4; } 100% { opacity: 0; transform: translateY(-6cqw) scaleX(1.3); } }

/* --- 3. Repostería: a Día de Muertos pre-sale story, an altar that blooms from a marigold (8 s) ------------------ */
.s-dulce { --L: 8s; background: radial-gradient(ellipse 90% 60% at 50% 62%, #5a1f63, #2b0f38 60%, #1a0824); color: #fbeee0; }
.st-bars { position: absolute; top: 10.5cqw; left: 4cqw; right: 4cqw; display: flex; gap: 1.2cqw; z-index: 4; }
.st-bars i { flex: 1; height: 0.8cqw; border-radius: 1cqw; background: rgba(251, 238, 224, 0.25); overflow: hidden; position: relative; }
.st-bars i:first-child::after { content: ""; position: absolute; inset: 0; background: #fbeee0; transform-origin: left; }
.st-user { position: absolute; top: 14cqw; left: 4cqw; display: flex; align-items: center; gap: 2cqw; font-size: 3.6cqw; font-weight: 600; z-index: 4; }
.st-user .av { width: 8cqw; height: 8cqw; border-radius: 50%; display: grid; place-items: center; background: #ff9d2e; color: #2b0f38; font-size: 3.2cqw; font-weight: 700; }
.st-user small { font-weight: 400; opacity: 0.7; }
.dl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; display: block; }
.dl-title { position: absolute; top: 25cqw; left: 6cqw; right: 6cqw; font-size: 6.2cqw; font-weight: 800; line-height: 1; letter-spacing: -0.035em; z-index: 3; text-wrap: balance; }
.dl-sticker { position: absolute; top: 42cqw; right: 3cqw; padding: 1.6cqw 3cqw; background: #ff9d2e; color: #2b0f38; font-weight: 800; font-size: 4cqw; letter-spacing: 0.08em; border-radius: 1.8cqw; outline: 0.7cqw solid #fbeee0; transform: rotate(5deg); box-shadow: 0 0.8cqw 0 #b85a0a, 0 2cqw 4cqw rgba(0, 0, 0, 0.35); z-index: 4; }
.dl-count { position: absolute; left: 50%; bottom: 24cqw; transform: translateX(-50%); display: flex; align-items: center; gap: 3cqw; padding: 1.8cqw 4.4cqw; background: rgba(43, 15, 56, 0.86); color: #fbeee0; border: 1px solid rgba(251, 238, 224, 0.22); border-radius: 99px; white-space: nowrap; z-index: 3; box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.45); }
.dl-count small { font-size: 2.9cqw; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }
.dl-count b { font-size: 6.4cqw; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.dl-link { position: absolute; left: 50%; bottom: 9cqw; transform: translateX(-50%); padding: 2.6cqw 5cqw; background: #ff9d2e; color: #2b0f38; border-radius: 99px; font-weight: 700; font-size: 4cqw; white-space: nowrap; z-index: 3; box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, 0.35); }
.dl-link::before { content: "↗ "; }
.dl-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 0.6cqw solid #ff9d2e; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .st-bars i:first-child::after { animation: st-fill var(--L) linear infinite; }
  .dl-sticker { animation: dl-pop var(--L) both infinite; }
  .dl-link::after { animation: dl-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
}
@keyframes st-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dl-flicker { from { transform: scale(1, 1); } to { transform: scale(0.85, 1.15); } }
@keyframes dl-pulse { from { opacity: 0.35; transform: scale(1); } to { opacity: 0; transform: scale(1.25, 1.5); } }
/* Build order: tiers rise, the marigold arch blooms, the portrait, candles light, bread lands,
   skulls and pumpkins pop, the xolo walks in, the sticker stamps; everything clears together. */
@keyframes dl-pop {
  0%, 43.75% { transform: rotate(-12deg) scale(0); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  48% { transform: rotate(8deg) scale(1.1); } 50%, 81.25% { transform: rotate(5deg) scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
  87.5%, 100% { transform: rotate(5deg) translateY(-6cqw) scale(0.8); opacity: 0; }
}

/* --- 4. Fotografía: a carousel post with a before/after wipe on springs (10 s) ------------------------------------ */
.s-foto { --L: 10s; background: #000; }
.ig-bar { position: absolute; top: 11cqw; left: 0; right: 0; height: 12cqw; display: flex; align-items: center; gap: 2.4cqw; padding: 0 4cqw; font-size: 3.6cqw; font-weight: 600; z-index: 3; }
.ig-bar .av { width: 7.4cqw; height: 7.4cqw; border-radius: 50%; background: conic-gradient(#ed1e24, #ff9d2e, #ed1e24); padding: 0.6cqw; }
.ig-bar .av::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #222 radial-gradient(circle at 50% 38%, #d9d9d9 22%, transparent 23%); border: 0.5cqw solid #000; box-sizing: border-box; }
.ig-bar .more { margin-left: auto; letter-spacing: 0.1em; color: #aaa; }
.ig-media { position: absolute; top: 23cqw; left: 0; right: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.ig-track { display: flex; height: 100%; width: 400%; }
.ig-slide { position: relative; width: 25%; height: 100%; flex: none; overflow: hidden; }
.ig-acts { position: absolute; top: calc(23cqw + 125cqw + 3cqw); left: 4cqw; right: 4cqw; display: flex; gap: 4cqw; align-items: center; }
.ig-acts svg { width: 6cqw; height: 6cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ig-acts .save { margin-left: auto; }
.ig-dots { position: absolute; top: calc(23cqw + 125cqw + 5.4cqw); left: 0; right: 0; display: flex; justify-content: center; gap: 1.4cqw; pointer-events: none; }
.ig-dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background 0.3s; }
.ig-dots i.on { background: #0095f6; }
.ig-cap { position: absolute; left: 4cqw; right: 4cqw; top: calc(23cqw + 125cqw + 13cqw); font-size: 3.4cqw; line-height: 1.4; color: #e8e8e8; }
.ig-cap b { color: #fff; }
.ig-cap .tag { color: #9cc3ff; }
/* Slide 1: the portrait, a flat phone photo before, a lit and graded portrait after. */
.pt { position: absolute; inset: 0; }
.pt svg, .pt img { transform-origin: 50% 40%; width: 100%; height: 100%; display: block; object-fit: cover; }
.pt.after { clip-path: inset(0 0 0 50%); }
.pt-handle { position: absolute; inset: 0; transform: translateX(50%); pointer-events: none; }
.pt-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -0.3cqw; width: 0.6cqw; background: #fff; box-shadow: 0 0 3cqw rgba(0, 0, 0, 0.6); }
.pt-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 9cqw; height: 9cqw; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; font-size: 3.6cqw; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.4); }
.pt-label { position: absolute; bottom: 4cqw; padding: 1cqw 2.4cqw; border-radius: 1.4cqw; background: rgba(0, 0, 0, 0.55); font-size: 3cqw; font-weight: 700; letter-spacing: 0.2em; }
.pt-label.l { left: 4cqw; } .pt-label.r { right: 4cqw; }
/* Slides 2 and 3: editorial typography. */
.ig-type { display: flex; flex-direction: column; justify-content: center; padding: 9cqw; background: linear-gradient(160deg, #1b1b1b, #0b0b0b); }
.ig-type .k { color: #ff4b50; font-size: 3.4cqw; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.ig-type .h { font-size: 11cqw; font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; margin: 3cqw 0 5cqw; }
.ig-type ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4cqw; font-size: 4.2cqw; }
.ig-type li { display: flex; justify-content: space-between; border-top: 1px solid #333; padding-top: 2.4cqw; }
.ig-type li b { color: #fff; font-variant-numeric: tabular-nums; }
.ig-type .h em { font-style: normal; background: linear-gradient(var(--red), var(--red)) no-repeat 0 94% / 100% 0.12em; }
@media (prefers-reduced-motion: no-preference) {
  .ig-type .h em { background-size: 0% 0.12em; transition: background-size 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
  .ig-type.cur .h em { background-size: 100% 0.12em; transition-delay: 0.35s; }
}
/* The petals fall behind the type, never across it. */
.ig-type.cempa { isolation: isolate; }
.ig-type > :not(.petal) { position: relative; z-index: 1; }
.ig-type.cempa { background: radial-gradient(circle at 80% 15%, #ff9d2e33, transparent 50%), linear-gradient(160deg, #2a1206, #0d0503); }
.petal { position: absolute; width: var(--s, 3.6cqw); height: var(--s, 3.6cqw); opacity: 0.9; }
.petal b, .petal svg { width: 100%; height: 100%; display: block; }
.petal.far { opacity: 0.55; filter: blur(0.3cqw); }
@media (prefers-reduced-motion: no-preference) {
  .petal { animation: petal-fall var(--t, 5s) linear infinite; }
  .petal b { animation: petal-sway 1.25s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate; }
  .ig-type > * { transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .ig-type:not(.cur) > * { opacity: 0; transform: translateX(6cqw); }
  .ig-type.cur > :nth-child(2) { transition-delay: 60ms; } .ig-type.cur > :nth-child(3) { transition-delay: 120ms; }
}
/* Petals fall at a constant speed while they sway on their own beat, so their path never zigzags. */
@keyframes petal-fall { from { transform: translateY(-10cqw) rotate(0); } to { transform: translateY(140cqw) rotate(540deg); } }
@keyframes petal-sway { from { transform: translateX(-4cqw); } to { transform: translateX(4cqw); } }

/* --- 5. Radio: a show clip for TikTok, Reels and Shorts (9 s) --------------------------------------------- */
.s-radio { --L: 9s; background: radial-gradient(circle at 50% 30%, #4a0b0e, #120304 70%); }
.rd-fx { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; pointer-events: none; opacity: 0.9; }
.rd-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rd-live { position: absolute; top: 12cqw; left: 7cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 1.2cqw 3cqw; border-radius: 99px; background: var(--red); font-size: 3.4cqw; font-weight: 800; letter-spacing: 0.16em; z-index: 3; }
.rd-live::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #fff; }
.rd-freq { position: absolute; top: 12.8cqw; right: 7cqw; font-size: 3.4cqw; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.7); z-index: 3; }
.rd-host { position: absolute; top: 30cqw; left: 0; right: 0; display: grid; justify-items: center; gap: 3cqw; z-index: 2; }
.rd-av { position: relative; width: 30cqw; height: 30cqw; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2e2e2e, #0c0c0c); border: 0.8cqw solid var(--red); box-shadow: inset 0 0 0 1.2cqw #120304, 0 0 8cqw -2cqw rgba(237, 30, 36, 0.6); }
.rd-av svg { width: 13cqw; height: 13cqw; fill: #fff; }
.rd-av::before, .rd-av::after { content: ""; position: absolute; inset: -0.8cqw; border-radius: 50%; border: 0.5cqw solid var(--red); opacity: 0; }
.rd-show { font-size: 5.4cqw; font-weight: 700; text-align: center; line-height: 1.1; letter-spacing: -0.02em; }
.rd-show small { display: block; font-size: 3.4cqw; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, 0.65); margin-top: 1cqw; }
.rd-wave { position: absolute; left: 7cqw; right: 17cqw; top: 96cqw; height: 18cqw; display: flex; align-items: center; justify-content: space-between; z-index: 2; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.rd-wave i { width: 1.6cqw; height: 100%; border-radius: 1cqw; background: linear-gradient(#fff, #ff8a8d); transform: scaleY(var(--h, 0.3)); }
.s-radio.rest .rd-wave { transform: scaleY(0.35); }
.s-radio::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62cqw; z-index: 2; pointer-events: none; background: linear-gradient(rgba(18, 3, 4, 0), rgba(18, 3, 4, 0.62) 55%); }
.s-radio .kin { bottom: 20cqw; left: 5cqw; right: 5cqw; font-size: 6.4cqw; justify-content: center; text-align: center; }
.rd-side { position: absolute; right: 3.4cqw; top: 82cqw; display: grid; gap: 4.4cqw; justify-items: center; font-size: 3.2cqw; font-weight: 600; z-index: 3; }
.rd-side span { display: grid; justify-items: center; gap: 0.8cqw; }
.rd-side svg { width: 7cqw; height: 7cqw; fill: #fff; filter: drop-shadow(0 0.4cqw 1cqw rgba(0, 0, 0, 0.5)); }
.rd-sting { position: absolute; left: 0; right: 0; bottom: 19cqw; display: grid; justify-items: center; gap: 1cqw; z-index: 4; opacity: 0; pointer-events: none; }
.rd-sting b { font-size: 10cqw; font-weight: 800; letter-spacing: -0.03em; padding: 0.6cqw 4cqw; border-radius: 2cqw; background: var(--red); }
.rd-sting span { font-size: 3.4cqw; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
@media (prefers-reduced-motion: no-preference) { .rd-sting { animation: rd-sting var(--L) infinite; } }
@keyframes rd-sting { 0%, 86.1% { opacity: 0; transform: scale(0.6); } 86.11% { opacity: 1; transform: scale(0.6); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 90.28%, 97.22% { opacity: 1; transform: scale(1); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); } 100% { opacity: 0; transform: scale(0.95); } }
.rd-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 1cqw; background: rgba(255, 255, 255, 0.2); z-index: 3; }
.rd-prog::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .rd-av::before { animation: rd-ring 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
  .rd-av::after { animation: rd-ring 1s cubic-bezier(0, 0, 0.2, 1) 0.5s infinite; }
  .s-radio.rest .rd-av::before, .s-radio.rest .rd-av::after { animation-play-state: paused !important; }
  .rd-prog::after { animation: st-fill var(--L) linear infinite; }
  .rd-live::before { animation: rec-blink 1s steps(1) infinite; }
}
@keyframes rd-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }

/* --- 6. Empresaria: a LinkedIn post with a chart (10 s) ---------------------------------------------------- */
.s-li { --L: 10s; background: #f3f2ef; color: #191919; }
.li-card { transform-origin: 50% 62%; }
.li-card { position: absolute; top: 13cqw; left: 3.4cqw; right: 3.4cqw; background: #fff; border-radius: 3cqw; padding: 4.4cqw; box-shadow: 0 0.4cqw 1.6cqw rgba(0, 0, 0, 0.08); }
.li-card.next { top: auto; bottom: -14cqw; opacity: 0.6; }
.li-card.next .bar { height: 3cqw; border-radius: 2cqw; background: #ececec; margin-top: 2.4cqw; }
.li-card.next .bar.s { width: 60%; }
.li-head { display: flex; gap: 2.6cqw; align-items: center; }
.li-av { width: 11cqw; height: 11cqw; border-radius: 50%; background: linear-gradient(145deg, #ed1e24, #7a0c10); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 4.2cqw; flex: none; }
.li-name { font-size: 3.8cqw; font-weight: 700; }
.li-role { font-size: 3cqw; color: #666; }
.li-text { font-size: 3.9cqw; line-height: 1.38; margin: 3.4cqw 0; min-height: 22cqw; transition: opacity 0.3s; }
.li-text.out { opacity: 0; }
.li-text .caret { display: inline-block; width: 0.4cqw; height: 1em; background: #0a66c2; vertical-align: -0.12em; margin-left: 0.3cqw; }
.li-chart { border-radius: 2cqw; background: linear-gradient(180deg, #fafafa, #f1f1f1); padding: 3cqw; }
.li-chart .ct { font-size: 3cqw; font-weight: 700; letter-spacing: 0.06em; color: #555; text-transform: uppercase; }
.li-chart .cn { display: flex; align-items: center; gap: 1.6cqw; font-size: 9cqw; font-weight: 800; letter-spacing: -0.03em; color: #111; }
.li-chart .cn span { display: inline-block; min-width: 3.2ch; font-variant-numeric: tabular-nums; }
.li-chart .cn small { font-size: 3.2cqw; color: #057642; background: #e7f3ec; padding: 0.4cqw 1.6cqw; border-radius: 99px; font-weight: 700; letter-spacing: 0; }
.li-chart svg { width: 100%; display: block; overflow: visible; margin-top: 2cqw; }
.li-chart .ticks { display: flex; justify-content: space-between; font-size: 2.6cqw; color: #8a8a8a; margin-top: 1.2cqw; }
.li-dot { transition: opacity 0.2s; }
.li-foot { display: flex; justify-content: space-between; margin-top: 3.4cqw; font-size: 3.2cqw; color: #666; }
.li-react { display: flex; align-items: center; gap: 1.4cqw; }
.li-react i { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; border: 0.5cqw solid #fff; margin-left: -1.8cqw; }
.li-react i:first-child { margin-left: 0; background: #0a66c2; }
.li-react i:nth-child(2) { background: #ed1e24; }
.li-react i:nth-child(3) { background: #057642; }
.li-actions { display: flex; justify-content: space-around; border-top: 1px solid #e5e5e5; margin-top: 3cqw; padding-top: 3cqw; font-size: 3.2cqw; font-weight: 600; color: #555; }
.li-actions > span { position: relative; display: inline-flex; align-items: center; gap: 1.2cqw; transition: color 0.2s; }
.li-actions svg { width: 4.4cqw; height: 4.4cqw; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transition: fill 0.2s; }
.li-like.on { color: #0a66c2; }
.li-like.on svg { fill: currentColor; }
/* The thumb's tap: a ring that opens where the finger was. */
.li-like::after { content: ""; position: absolute; left: 2.2cqw; top: 50%; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; border-radius: 50%; background: rgba(10, 102, 194, 0.18); opacity: 0; pointer-events: none; }
.li-tip text { font-family: var(--font); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .li-like.on svg { animation: li-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .li-like.on::after { animation: li-tap 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .li-tip-in { transform-box: fill-box; transform-origin: 85% 100%; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s linear; }
  .li-tip:not(.show) .li-tip-in { opacity: 0; transform: translateY(2px) scale(0.6); }
  .li-foot { transition: opacity 0.1s linear; }
}
@keyframes li-pop { 0% { transform: scale(1); } 35% { transform: scale(0.8) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes li-tap { from { opacity: 1; transform: scale(0.3); } to { opacity: 0; transform: scale(1.2); } }
@media (prefers-reduced-motion: no-preference) {
  .li-text:not(.typing) .caret { animation: rec-blink 1s steps(1) infinite; }
  .li-card:not(.next) { transition: opacity 0.5s cubic-bezier(0.5, 0, 0.75, 0); }
  .li-card.out { opacity: 0; transition-duration: 0.5s; }
  .li-chart .cn small { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; }
  .li-chart .cn small:not(.pop) { opacity: 0; transform: scale(0.6); }
}

/* --- What the agents do, and the call to action --------------------------------------------------------------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); margin: 0 0 clamp(56px, 8vw, 140px); content-visibility: auto; contain-intrinsic-size: auto 600px; }
.caps article { position: relative; background: var(--lit); border: 1px solid var(--line); border-radius: clamp(14px, 1.4vw, 24px); padding: clamp(22px, 2.4vw, 44px); overflow: hidden; }
.caps article::before { content: ""; position: absolute; top: 0; left: clamp(22px, 2.4vw, 44px); width: 24px; height: 2px; background: var(--red); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.caps article:hover::before { width: 48px; }
.caps h3 { font-size: max(1.05rem, calc(var(--u) * 1.5)); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.caps p { margin: 0; color: var(--muted); font-size: max(0.95rem, calc(var(--u) * 1.15)); line-height: 1.5; }
.caps .n { display: block; color: var(--red-text); font-weight: 600; font-size: max(0.78rem, calc(var(--u) * 0.85)); letter-spacing: 0.2em; margin-bottom: clamp(14px, 1.4vw, 24px); font-variant-numeric: tabular-nums; }
.caps .n small { color: #666; font-size: inherit; }
@media (max-width: 899px) { .caps { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 899px) { .caps { grid-template-columns: 1fr 1fr; } }
.reel-h2 { font-size: clamp(2rem, 5vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; margin: 0 0 clamp(18px, 2.4vw, 44px); max-width: 18ch; text-wrap: balance; }

/* The call to action closes the concept: the viewfinder again, now recording you. */
.reel-cta { position: relative; text-align: center; padding: clamp(64px, 8vw, 150px) clamp(20px, 4vw, 80px) clamp(56px, 7vw, 130px); margin-bottom: clamp(40px, 5vw, 90px); }
.reel-cta .vf-hud.tl { color: var(--red-text); }
.reel-cta .reel-h2 { margin-inline: auto; }
.reel-cta p { color: #cfcfcf; font-size: clamp(1rem, 1.4vw, 1.5rem); max-width: 46ch; margin: 0 auto clamp(22px, 2.6vw, 44px); }
.reel-cta p strong { display: block; color: #fff; font-weight: 600; margin-top: 6px; }
.reel-cta .cta-row { justify-content: center; }
.reel-cta .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 40px -16px rgba(237, 30, 36, 0.6); }
@media (min-width: 900px) {
  .reel-cta .btn { min-height: max(56px, calc(var(--u) * 4)); font-size: max(1.05rem, calc(var(--u) * 1.15)); padding: 0 calc(var(--u) * 2.4); }
  .reel-cta .text-link { font-size: max(1.05rem, calc(var(--u) * 1.15)); }
}
@media (max-width: 599px) { .reel-cta .btn { width: 100%; max-width: 420px; min-height: 56px; } .reel-cta .vf-hud.bl, .reel-cta .vf-hud.br { display: none; } }
.reel-page footer { text-align: center; }
@media (max-width: 899px) {
  .reel-pager { flex-wrap: wrap; row-gap: 10px; }
  .reel-pager b { white-space: nowrap; }
  .reel-pager span { flex-basis: 100%; margin-left: 0; font-size: 0.7rem; letter-spacing: 0.16em; }
}
@media (max-width: 599px) { .reel-page .eyebrow { letter-spacing: 0.22em; } .reel-page .eyebrow::after { width: 48px; } }
