/* ── live scenes inside the project cards, the quote panel and the laptop screen ── */
.shot { container-type: inline-size; }
.live { position: absolute; inset: 0; overflow: hidden; font-family: var(--sans); color: var(--ink); direction: ltr; }
.live * { box-sizing: border-box; }
.live img, .live video { display: block; max-width: none; }
.gs .proj .shot .live img { transform: none; }
.paused .live *, .paused.live * { animation-play-state: paused !important; }

/* 01 — Trading Papers: the real paper jackets drifting past */
.live-tp { background: radial-gradient(ellipse 70% 80% at 50% 40%, #0d2a5c, #050608 75%); }
.live-tp .cols { position: absolute; inset: -30% -12%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.2cqw; transform: rotate(-12deg); }
.live-tp .col { overflow: hidden; }
.live-tp .track { display: grid; gap: 2.2cqw; animation: tp-up 38s linear infinite; }
.live-tp .col:nth-child(even) .track { animation-name: tp-down; animation-duration: 44s; }
.live-tp .track img { width: 100%; aspect-ratio: 3 / 4.15; object-fit: cover; border-radius: .6cqw; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .6); }
@keyframes tp-up { to { transform: translateY(-50%); } }
@keyframes tp-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.live-tp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 8, .25), rgba(5, 6, 8, .05) 35%, rgba(5, 6, 8, .85) 82%); }
.live-tp .badge { position: absolute; z-index: 2; left: 5cqw; right: 5cqw; bottom: 5cqw; display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; }
.live-tp .badge img { width: 40cqw; height: auto; }
.live-tp .badge span { font-size: 3.1cqw; font-weight: 600; color: #cfe2ff; background: rgba(53, 143, 253, .18); border: 1px solid rgba(53, 143, 253, .5); border-radius: 99px; padding: 1cqw 2.4cqw; white-space: nowrap; }

/* 02 — AI Clone: a voice note plays, the steps light up, the clip talks */
.live-clone { background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(53, 143, 253, .28), transparent 70%), #050608; }
.live-clone .l { position: absolute; left: 5cqw; top: 9cqw; width: 52cqw; }
.live-clone .t { font-family: var(--display); text-transform: uppercase; font-size: 7.2cqw; line-height: .98; }
.live-clone .t span { color: var(--blue); display: block; }
.live-clone .vn { margin-top: 4.5cqw; display: flex; align-items: center; gap: 2cqw; border: 1px solid rgba(53, 143, 253, .55); background: rgba(13, 16, 22, .9); border-radius: 3cqw; padding: 1.6cqw 2cqw; }
.live-clone .pl { width: 5.4cqw; height: 5.4cqw; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.live-clone .pl::before { content: ""; border-left: 1.7cqw solid #fff; border-top: 1.1cqw solid transparent; border-bottom: 1.1cqw solid transparent; margin-left: .4cqw; }
.live-clone .wv { display: flex; align-items: center; gap: .55cqw; height: 5cqw; flex: 1; }
.live-clone .wv i { flex: 1; height: 100%; border-radius: 1cqw; background: var(--blue); transform-origin: 50% 50%; animation: wv 1.1s ease-in-out infinite; }
@keyframes wv { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.live-clone .steps { margin-top: 3.4cqw; display: flex; flex-wrap: wrap; gap: 1.2cqw; }
.live-clone .steps b { font-size: 2.5cqw; font-weight: 600; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; padding: .8cqw 1.8cqw; color: var(--ink-2); animation: step-on 6s infinite; }
.live-clone .steps b:nth-child(2) { animation-delay: 1.2s; } .live-clone .steps b:nth-child(3) { animation-delay: 2.4s; } .live-clone .steps b:nth-child(4) { animation-delay: 3.6s; }
@keyframes step-on { 0%, 100% { background: transparent; color: var(--ink-2); border-color: rgba(255, 255, 255, .16); } 8%, 30% { background: rgba(53, 143, 253, .9); color: #fff; border-color: var(--blue); } 40% { background: rgba(53, 143, 253, .15); color: var(--ink); border-color: rgba(53, 143, 253, .6); } }
.live-clone .ph { position: absolute; right: 6cqw; top: 4cqw; bottom: 4cqw; aspect-ratio: 9 / 16; border-radius: 3.4cqw; border: .8cqw solid #1a1f29; overflow: hidden; box-shadow: 0 0 6cqw rgba(53, 143, 253, .35); background: #111; }
.live-clone .ph video, .live-clone .ph img { width: 100%; height: 100%; object-fit: cover; }
.live-clone .ai { position: absolute; top: 2cqw; left: 2cqw; display: flex; align-items: center; gap: .8cqw; font-size: 2cqw; font-weight: 700; background: rgba(0, 0, 0, .55); border-radius: 99px; padding: .5cqw 1.4cqw; }
.live-clone .ai::before { content: ""; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #ff4d5e; animation: blink 1.2s infinite; }
.live-clone .cc { position: absolute; left: 8%; right: 8%; bottom: 7%; text-align: center; font-size: 2.3cqw; font-weight: 800; background: rgba(0, 0, 0, .6); border-radius: 1.2cqw; padding: .8cqw; }
.live-clone .cc span { color: var(--blue); }
@keyframes blink { 50% { opacity: .2; } }
:root[lang="fa"] .live-clone .t { font-family: var(--sans); font-weight: 900; font-size: 6.2cqw; line-height: 1.25; direction: rtl; text-align: right; }
:root[lang="fa"] .live-clone .steps { direction: rtl; }
:root[lang="fa"] .live-clone .steps b, :root[lang="fa"] .live-clone .cc { font-family: var(--sans); direction: rtl; }

/* 03 — saman.invest: the feed slides by, a pulse runs through the funnel */
.live-si { background: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(53, 143, 253, .22), transparent 70%), #050608; }
.live-si .feed { position: absolute; left: 0; right: 0; top: 4cqw; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.live-si .belt { display: flex; gap: 2cqw; width: max-content; animation: belt 30s linear infinite; }
.live-si .belt img { width: 16cqw; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: 1.4cqw; border: 1px solid rgba(255, 255, 255, .12); }
@keyframes belt { to { transform: translateX(-50%); } }
.live-si .h { position: absolute; left: 0; right: 0; top: 37cqw; text-align: center; font-family: var(--display); font-size: 7.6cqw; line-height: 1; }
.live-si .h span { color: var(--blue); }
.live-si .fl { position: absolute; left: 3cqw; right: 3cqw; top: 48cqw; display: flex; align-items: center; justify-content: center; gap: 1cqw; }
.live-si .fl b { font-size: 2.3cqw; font-weight: 600; border: 1px solid rgba(53, 143, 253, .5); background: rgba(13, 16, 22, .9); border-radius: 99px; padding: .8cqw 1.6cqw; white-space: nowrap; animation: fl-on 5s infinite; }
.live-si .fl i { font-style: normal; color: var(--blue); font-size: 2.4cqw; animation: fl-ar 5s infinite; }
.live-si .fl > :nth-child(2) { animation-delay: .5s; } .live-si .fl > :nth-child(3) { animation-delay: 1s; } .live-si .fl > :nth-child(4) { animation-delay: 1.5s; } .live-si .fl > :nth-child(5) { animation-delay: 2s; }
.live-si .fl > :nth-child(6) { animation-delay: 2.5s; } .live-si .fl > :nth-child(7) { animation-delay: 3s; } .live-si .fl > :nth-child(8) { animation-delay: 3.5s; } .live-si .fl > :nth-child(9) { animation-delay: 4s; }
@keyframes fl-on { 0%, 100% { box-shadow: none; background: rgba(13, 16, 22, .9); } 6%, 16% { box-shadow: 0 0 2.4cqw rgba(53, 143, 253, .9); background: var(--blue); } 26% { box-shadow: none; background: rgba(13, 16, 22, .9); } }
@keyframes fl-ar { 0%, 100% { opacity: .35; } 8%, 16% { opacity: 1; } }
.live-si .auto { position: absolute; left: 0; right: 0; bottom: 3.4cqw; display: flex; justify-content: center; align-items: center; gap: 1cqw; font-size: 2cqw; letter-spacing: .14em; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.live-si .auto::before { content: ""; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #19c15f; box-shadow: 0 0 1.2cqw #19c15f; animation: blink 1.6s infinite; }
:root[lang="fa"] .live-si .fl b, :root[lang="fa"] .live-si .auto { font-family: var(--sans); letter-spacing: 0; }
:root[lang="fa"] .live-si .fl { direction: rtl; }
:root[lang="fa"] .live-si .fl i { transform: scaleX(-1); }

/* quote panel: data draws itself, hope shoots off and fades */
.q-chart { width: 100%; max-width: 360px; margin: 8px 0 4px; }
.q-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.q-chart .gl { stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.q-chart .cd { transform-box: fill-box; transform-origin: 50% 100%; animation: q-cd 9s infinite; }
.q-chart .data { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: q-draw 9s infinite; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
.q-chart .hope { fill: none; stroke: #9ec8ff; stroke-width: 1.6; stroke-dasharray: 5 6; opacity: 0; animation: q-hope 9s infinite; }
.q-chart .dot { fill: #fff; opacity: 0; animation: q-dot 9s infinite; }
.q-chart text { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
:root[lang="fa"] .q-chart text { letter-spacing: 0; text-transform: none; font-size: 13px; }
.q-chart .tl-data { fill: #fff; opacity: 0; animation: q-dot 9s infinite; }
.q-chart .tl-hope { fill: #9ec8ff; opacity: 0; animation: q-hope-t 9s infinite; }
@keyframes q-draw { 0% { stroke-dashoffset: 600; } 45%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes q-cd { 0% { transform: scaleY(0); opacity: 0; } 8%, 88% { transform: scaleY(1); opacity: .55; } 100% { opacity: 0; } }
@keyframes q-hope { 0%, 20% { opacity: 0; stroke-dashoffset: 0; } 28%, 40% { opacity: .9; } 55%, 100% { opacity: 0; stroke-dashoffset: -60; } }
@keyframes q-hope-t { 0%, 24% { opacity: 0; } 30%, 42% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes q-dot { 0%, 44% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* laptop: the reflection fades out instead of being cut (the screen stays still) */
.laptop img { -webkit-mask-image: radial-gradient(ellipse 72% 85% at 50% 42%, #000 62%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 97%);
  mask-image: radial-gradient(ellipse 72% 85% at 50% 42%, #000 62%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 97%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (prefers-reduced-motion: reduce) { .live *, .q-chart *, 