/* busy.dev /preview/process/ — the assembly line (for approval, 2026-11-17). Layers on site-v4.css. */
.pv-hero { padding-bottom: clamp(20px, 4vw, 40px); }
.pv-play { min-width: 190px; justify-content: center; }

/* ── desktop: text beats scroll in the left column; the stage stays put on the right ───────────── */
.line { position: relative; padding: 0 0 40px; }
.line-grid { display: grid; gap: 0; }
.stage-wrap { display: none; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.beat h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; letter-spacing: -.025em; }
.beat p { color: var(--muted); margin: 0; }
.beat .eyebrow { margin-bottom: 12px; }
.beat-vis { margin-top: 22px; }
.beat-vis .art { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #000; }
.beat-vis .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

@media (min-width: 900px) {
  .line-grid { grid-template-columns: minmax(280px, .62fr) 1.38fr; gap: clamp(28px, 4vw, 56px); }
  .beats { gap: 0; }
  .beat { min-height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .45s; }
  .beat.on { opacity: 1; }
  .beat:first-child { min-height: calc(70vh - 68px); justify-content: flex-start; padding-top: 12vh; }
  .beat-vis { display: none; }
  .stage-wrap { display: block; }
  .stage-sticky { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
}
.stage-top { display: flex; align-items: center; gap: 22px; }
.stage-top .count { font: 500 13px/1 var(--mono); color: var(--subtle); margin: 0; letter-spacing: .08em; white-space: nowrap; }
.stage-top .count b { color: var(--gold); font-weight: 600; font-size: 26px; letter-spacing: -.02em; font-family: var(--display); }
.srail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(9, 1fr); flex: 1; }
.srail::before { content: ""; position: absolute; left: 7px; right: 7px; top: 13px; height: 2px; background: var(--line); }
.srail button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: start; gap: 8px; width: 100%; padding: 6px 0;
               font: 500 12px/1 var(--body); color: var(--subtle); border-radius: 8px; }
.srail button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.srail button i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line-strong); transition: all .3s; }
.srail button.past i { background: var(--gold); border-color: var(--gold); }
.srail button[aria-current="step"] { color: var(--text); }
.srail button[aria-current="step"] i { border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-tint); }
.srail button:hover { color: var(--text); }
@media (max-width: 1180px) { .srail button span { display: none; } }

.stage { position: relative; aspect-ratio: 3 / 2; max-height: calc(100vh - 150px); width: 100%; margin: 0 auto; border-radius: 26px; overflow: hidden;
         background: radial-gradient(70% 70% at 60% 40%, rgba(212, 175, 55, .08), transparent 70%), #000; border: 1px solid var(--line);
         box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); --p: .5; }
.scn { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility 0s .7s; }
.scn.on { opacity: 1; visibility: visible; transition: opacity .7s; }
.scn .art { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; mix-blend-mode: screen;
            transform: translate3d(0, calc((.5 - var(--p)) * 36px), 0) scale(calc(1 + var(--p) * .04)); transition: transform .2s linear; }
.ov { position: absolute; inset: 0; }
.ov .k { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.progress i { display: block; height: 100%; width: calc(var(--total, 0) * 100%); background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

/* reusable floating chips */
.fchips { position: absolute; left: 5%; top: 8%; display: grid; gap: 8px; justify-items: start; }
.fchips.right { left: auto; right: 5%; justify-items: end; }
.fchips.bottom { top: auto; bottom: 8%; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; width: 90%; }
.fchips span { font: 500 13px/1 var(--body); padding: 9px 13px; border-radius: 999px; background: rgba(19, 18, 16, .82); border: 1px solid var(--gold-line);
               color: var(--text); opacity: 0; transform: translateY(8px); backdrop-filter: blur(6px); }
.scn.on .fchips span { animation: pop .5s calc(.35s + var(--d) * .35s) cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* 1 idea */
.ov-idea { display: grid; place-items: center; }
.idea-card { width: min(58%, 460px); padding: 26px 28px; border-radius: 20px; background: linear-gradient(160deg, #1d1a12, #0f0e0c);
             border: 1px solid var(--gold-line); box-shadow: 0 30px 80px -20px rgba(212, 175, 55, .25); transform: translateX(-40px) rotate(-2deg); opacity: 0; }
.scn.on .idea-card { animation: cardin .9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes cardin { to { transform: none; opacity: 1; } }
.typed { margin: 14px 0 18px; font: 600 clamp(18px, 1.9vw, 26px)/1.25 var(--display); letter-spacing: -.02em; color: var(--text); }
.typed span { display: inline; }
.scn.on .typed span { animation: type 2.2s .6s steps(60) both; clip-path: inset(0 100% 0 0); }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.idea-go { font: 500 13px/1 var(--mono); color: var(--gold); opacity: 0; }
.scn.on .idea-go { animation: pop .5s 2.9s forwards; }

/* 2 research */
.radar { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%) scaleY(.42); border-radius: 50%; pointer-events: none; }
.radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(243, 226, 169, .5), transparent 22%); mix-blend-mode: screen; }
.scn.on .radar i { animation: sweep 3.2s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.stamp { position: absolute; right: 7%; bottom: 10%; font: 700 46px/1 var(--display); letter-spacing: .02em; color: var(--live); padding: 8px 20px;
         border: 3px solid var(--live); border-radius: 14px; transform: rotate(-8deg) scale(1.6); opacity: 0; }
.scn.on .stamp { animation: stamp .45s 2.2s cubic-bezier(.3, 1.6, .4, 1) forwards; }
@keyframes stamp { to { transform: rotate(-8deg) scale(1); opacity: 1; } }

/* 3 name */
.ov-name { display: grid; place-items: center; }
.names { width: min(74%, 620px); padding: 22px 24px; border-radius: 20px; background: rgba(19, 18, 16, .9); border: 1px solid var(--line); }
.names .nh, .names li { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: center; gap: 10px; }
.names .nh em { font: normal 500 11px/1.2 var(--mono); color: var(--subtle); text-align: center; letter-spacing: .06em; text-transform: uppercase; }
.names ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.names li { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); transition: all .5s; }
.names .nm { font: 600 20px/1 var(--display); letter-spacing: -.02em; }
.names b { justify-self: center; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--body);
           opacity: 0; transform: scale(.4); }
.names b.y { color: var(--live); background: rgba(109, 187, 113, .14); }
.names b.n { color: var(--bad); background: rgba(224, 126, 115, .14); }
.scn.on .names b { animation: pop2 .35s calc(.4s + var(--d) * .16s) cubic-bezier(.3, 1.6, .4, 1) forwards; }
@keyframes pop2 { to { opacity: 1; transform: none; } }
.scn.on .names li.out { animation: dim .5s 2.6s forwards; }
@keyframes dim { to { opacity: .32; } }
.scn.on .names li.win { animation: win .6s 2.6s forwards; }
@keyframes win { to { border-color: var(--gold); background: var(--gold-tint); box-shadow: 0 0 30px rgba(212, 175, 55, .25); } }

/* 4 design */
.theme-pill { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
              background: rgba(19, 18, 16, .9); border: 1px solid var(--line-strong); font: 600 14px/1 var(--body); }
.theme-pill span { position: relative; z-index: 1; padding: 10px 22px; text-align: center; color: var(--muted); }
.theme-pill i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold); }
.scn.on .theme-pill i { animation: flip 2.4s ease-in-out infinite alternate; }
@keyframes flip { 0%, 30% { transform: none; } 70%, 100% { transform: translateX(100%); } }

/* 5 build */
.code { position: absolute; left: 4%; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 18px 20px; width: min(52%, 470px);
        border-radius: 16px; background: rgba(10, 10, 9, .86); border: 1px solid var(--line); font: 400 13px/1.9 var(--mono); color: var(--muted); }
.code li { opacity: 0; transform: translateX(-8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code li span { display: inline-block; width: 7.5em; color: var(--gold); }
.code li:last-child { color: var(--live); }
.scn.on .code li { animation: pop .4s calc(.3s + var(--d) * .32s) forwards; }

/* 6 test */
.ov-test .rack.mini { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 50%; padding: 14px; gap: 10px 8px;
                      background: rgba(10, 10, 9, .82); }
.ov-test .rack.mini .fp { flex-basis: calc((100% - 5 * 8px) / 6); }
.sheet { position: absolute; right: 5%; bottom: 8%; width: min(34%, 290px); padding: 18px; border-radius: 20px 20px 16px 16px; background: #f7f5f1; color: #1a1405;
         display: grid; gap: 6px; transform: translateY(40px); opacity: 0; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.sheet .k { color: #7a5900; }
.sheet b { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; }
.sheet .sub { font-size: 14px; color: #5f5b54; }
.sheet .buy { margin-top: 8px; padding: 11px; border-radius: 999px; text-align: center; background: #1a1405; color: #f7f5f1; font-weight: 600; font-size: 15px; }
.sheet .ok { font-size: 14px; font-weight: 600; color: #2f6f34; opacity: 0; }
.scn.on .sheet { animation: cardin .7s 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.scn.on .sheet .ok { animation: pop .4s 2.6s forwards; }
.scn.on .sheet .buy { animation: press .3s 2.2s; }
@keyframes press { 50% { transform: scale(.96); background: #4a453b; } }

/* 7 store */
.listings { position: absolute; left: 50%; top: 44%; width: 0; height: 0; list-style: none; margin: 0; padding: 0; }
.listings li { position: absolute; left: -85px; top: -115px; width: 170px; height: 230px; padding: 16px; border-radius: 18px; background: linear-gradient(170deg, #1d1b16, #0f0e0c);
               border: 1px solid var(--gold-line); display: grid; align-content: start; gap: 10px; box-shadow: 0 20px 50px -20px #000;
               transform: rotate(0deg) translateY(30px); opacity: 0; transform-origin: 50% 160%; }
.listings .lang { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--gold); }
.listings b { font: 600 15px/1.25 var(--body); letter-spacing: -.01em; color: var(--text); }
.listings .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.listings .shots i { aspect-ratio: 9 / 16; border-radius: 6px; background: linear-gradient(160deg, rgba(212, 175, 55, .35), rgba(212, 175, 55, .06)); }
.scn.on .listings li { animation: fan .8s calc(.2s + var(--i) * .14s) cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes fan { to { opacity: 1; transform: translateX(calc((var(--i) - 2) * 96px)) rotate(calc((var(--i) - 2) * 8deg)) translateY(calc(var(--i) * 0px)); } }

/* 8 release */
.ov-release { display: grid; align-content: end; gap: 12px; padding: 0 5% 7%; }
.track { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
         background: rgba(10, 10, 9, .86); border: 1px solid var(--line); }
.track b { font: 700 16px/1 var(--display); letter-spacing: -.01em; }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.track li { font: 500 13px/1 var(--body); text-align: center; padding: 9px 6px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--subtle); }
.scn.on .track li { animation: stepon .4s calc(.5s + var(--d) * .7s) forwards; }
.scn.on .track li:last-child { animation-name: steplive; }
@keyframes stepon { to { color: var(--text); border-color: var(--gold); background: var(--gold-tint); } }
@keyframes steplive { to { color: var(--live); border-color: var(--live); background: rgba(109, 187, 113, .12); } }

/* 9 live */
.chart { position: absolute; left: 6%; top: 10%; width: 42%; overflow: visible; }
.chart path { fill: none; stroke: var(--gold-light); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; filter: drop-shadow(0 0 6px rgba(212, 175, 55, .8)); }
.scn.on .chart path { animation: draw 2s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.review { position: absolute; right: 5%; top: 9%; width: min(36%, 300px); padding: 16px 18px; border-radius: 16px; background: rgba(19, 18, 16, .92);
          border: 1px solid var(--line); opacity: 0; transform: translateY(12px); }
.review .stars { color: var(--gold); letter-spacing: .1em; }
.review p { margin: 6px 0 0; font-size: 14.5px; color: var(--text); }
.review .reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--gold-tint); color: var(--muted); opacity: 0; }
.review .reply b { display: block; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.scn.on .review { animation: pop .5s 1.2s forwards; }
.scn.on .review .reply { animation: pop .5s 2.4s forwards; }
.loop { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--live);
        background: rgba(109, 187, 113, .12); color: var(--live); font: 500 14px/1 var(--body); opacity: 0; white-space: nowrap; }
.loop span { color: var(--text); font-weight: 600; }
.scn.on .loop { animation: pop .5s 3.2s forwards; }

@media (prefers-reduced-motion: reduce) {
  .scn .art { transform: none; }
  .scn.on .typed span { clip-path: none; }
  .fchips span, .idea-card, .idea-go, .stamp, .names b, .code li, .sheet, .sheet .ok, .listings li, .review, .review .reply, .loop { opacity: 1 !important; transform: none !important; }
  .stamp { transform: rotate(-8deg) !important; }
  .listings li { transform: translateX(calc((var(--i) - 2) * 96px)) rotate(calc((var(--i) - 2) * 8deg)) !important; }
  .names li.out { opacity: .32; }
  .names li.win, .track li { border-color: var(--gold); }
  .chart path { stroke-dashoffset: 0; }
}
@media (max-width: 899.98px) { .pv-play { display: none; } }

/* ── v2 (2026-11-17, owner: "on mobile there is no animation"): scene 06 motion + the phone miniatures ── */
.wall-fx { position: absolute; inset: 0; pointer-events: none; }
.wall-fx .sweep { position: absolute; top: -20%; bottom: -20%; width: 22%; left: -30%; transform: skewX(-18deg);
                  background: linear-gradient(90deg, transparent, rgba(243, 226, 169, .22), transparent); mix-blend-mode: screen; }
.scn.on .wall-fx .sweep { animation: sweepx 3.6s .4s ease-in-out infinite; }
@keyframes sweepx { 0% { left: -30%; } 60%, 100% { left: 115%; } }
.wall-fx .ck { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--live); color: #062010;
               display: grid; place-items: center; font: 700 14px/1 var(--body); box-shadow: 0 0 16px rgba(109, 187, 113, .8); transform: scale(0); opacity: 0; }
.scn.on .wall-fx .ck { animation: ckpop 5s calc(.3s + var(--d) * .38s) infinite; }
@keyframes ckpop { 0% { transform: scale(0); opacity: 0; } 8% { transform: scale(1.25); opacity: 1; } 12%, 70% { transform: scale(1); opacity: 1; } 85%, 100% { transform: scale(.6); opacity: 0; } }
.wall-fx .pb { position: absolute; width: 46px; height: 6px; margin-left: -23px; border-radius: 3px; background: rgba(0, 0, 0, .7); overflow: hidden; box-shadow: 0 0 0 1px rgba(212, 175, 55, .5); }
.wall-fx .pb i { display: block; height: 100%; width: 0; background: var(--gold-light); }
.scn.on .wall-fx .pb i { animation: pbfill 2.6s calc(.2s + var(--d) * .5s) ease-in-out infinite; }
@keyframes pbfill { 0% { width: 0; } 70%, 100% { width: 100%; } }

/* phones: each beat carries a scaled miniature of its desktop scene, playing only while it is on screen */
.beat-vis .mscn { position: relative; inset: auto; opacity: 1; visibility: visible; transition: none; aspect-ratio: 3 / 2; overflow: hidden;
                  border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 60% 40%, rgba(212, 175, 55, .08), transparent 70%), #000; }
.mscn-in { position: absolute; left: 0; top: 0; width: 600px; height: 400px; transform: scale(var(--k, .55)); transform-origin: 0 0; --p: .5; }
.mscn .art { transition: none; }
.beat-vis .tags { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .wall-fx .ck { transform: none !important; opacity: 1 !important; }
  .wall-fx .pb i { width: 70%; }
  .wall-fx .sweep { display: none; }
}
