/* ==========================================================================
   2 · Video un montāža
   ========================================================================== */
/* 1 desk: the detective at his monitor, seen from behind */
.s2-desk { position: relative; width: 520px; height: 340px; margin-top: 46px; transform-origin: 50% 62%; }
.s2-desk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.s2-halo { position: absolute; left: -90px; right: -90px; top: -90px; bottom: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,230,171,.3), rgba(255,230,171,0)); opacity: 0; }
.s2-scr { opacity: 0; }

/* 2 mini timeline under the title */
.s2-strip { position: relative; width: 640px; height: 80px; margin-top: 60px; opacity: 0; }
.s2-strip i { position: absolute; border-radius: 6px; transform-origin: 0 50%; }
.s2-strip .a, .s2-strip .b, .s2-strip .c { top: 0; height: 40px; }
.s2-strip .d, .s2-strip .e { top: 52px; height: 28px; }
.s2-strip .a { left: 0; width: 250px; background: var(--c-amber); }
.s2-strip .b { left: 258px; width: 172px; background: var(--c-cream); }
.s2-strip .c { left: 438px; width: 202px; background: var(--c-sage); }
.s2-strip .d { left: 0; width: 380px; background: rgba(232,235,219,.28); }
.s2-strip .e { left: 388px; width: 172px; background: rgba(232,235,219,.28); }
.s2-strip span { position: absolute; left: -1px; top: -10px; width: 2px; height: 100px; background: var(--c-cream); }

/* the editor window shared by the montage beats */
.s2-ed { left: 0; top: 10px; width: 760px; height: 620px; }
.s2-view { left: 16px; top: 50px; width: 500px; height: 281px; border-radius: 8px; }
.s2-hill { position: absolute; left: -12%; right: -12%; bottom: -52%; height: 86%; border-radius: 50%; background: #2a2a18; }
.s2-hill::after { content: ""; position: absolute; left: 46%; top: -8%; width: 60%; height: 100%; border-radius: 50%; background: #3a3d24; }
.s2-play { filter: drop-shadow(0 1px 4px rgba(0,0,0,.55)); position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -9px; border: 17px solid transparent; border-left: 27px solid var(--c-cream); }
.s2-side { position: absolute; left: 532px; top: 50px; width: 212px; height: 281px; border-radius: 10px; background: rgba(254,246,225,.04); border: 1px solid var(--c-line); }
.s2-sl { position: absolute; left: 20px; width: 172px; height: 4px; border-radius: 2px; background: rgba(232,235,219,.22); }
.s2-sl i { position: absolute; left: 0; top: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-cream); box-shadow: 0 2px 5px rgba(0,0,0,.5); }
.s2-sw { position: absolute; left: 20px; top: 204px; display: flex; gap: 14px; }
.s2-sw i { width: 36px; height: 36px; border-radius: 50%; background: var(--c-amber); }
.s2-sw i:nth-child(2) { background: var(--c-lamp); } .s2-sw i:nth-child(3) { background: var(--c-moss); } .s2-sw i:nth-child(4) { background: var(--c-red); }
.s2-tl { position: absolute; left: 16px; top: 348px; width: 728px; height: 256px; border-top: 1px solid var(--c-line); }
.s2-ruler { position: absolute; left: 48px; top: 8px; width: 680px; height: 10px; background: repeating-linear-gradient(90deg, rgba(232,235,219,.4) 0 1px, transparent 1px 34px); }
.s2-lane { position: absolute; left: 48px; width: 680px; height: 54px; border-radius: 6px; background: var(--c-panel); }
.s2-lane.v { top: 30px; } .s2-lane.t { top: 96px; } .s2-lane.a { top: 162px; }
.s2-lane > b { position: absolute; left: -48px; top: 0; width: 40px; line-height: 54px; font: 500 14px/54px var(--font-body, sans-serif); letter-spacing: .06em; color: var(--c-ink3); }
.s2-clip { position: absolute; top: 4px; height: 46px; border-radius: 6px; background: var(--c-amber); transform-origin: 0 50%; }
.s2-clip.c { background: var(--c-cream); } .s2-clip.g { background: rgba(232,235,219,.28); }
.s2-wave { position: absolute; left: 6px; top: 5px; height: 44px; display: flex; align-items: center; gap: 5px; }
.s2-wave i { width: 5px; border-radius: 3px; background: var(--c-sage); }
.s2-ph { position: absolute; left: 47px; top: 2px; width: 2px; height: 220px; background: var(--c-cream); }
.s2-ph::before { content: ""; position: absolute; left: -6px; top: 0; width: 14px; height: 10px; background: var(--c-cream); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* 3 raw clips -> timeline */
.s2-bin { position: absolute; left: 16px; top: 50px; width: 300px; height: 281px; border-radius: 10px; background: rgba(254,246,225,.04); border: 1px solid var(--c-line); }
.s2-bin > b { position: absolute; left: 14px; top: 12px; font: 500 14px/1 var(--font-body, sans-serif); letter-spacing: .06em; color: var(--c-ink3); }
.s2-slot { position: absolute; width: 126px; height: 71px; border-radius: 6px; border: 1.5px dashed rgba(254,246,225,.2); }
.s2-raw { border-radius: 6px; z-index: 2; box-shadow: 0 8px 16px -8px rgba(0,0,0,.7); }
.s2-ed .ts-cursor { left: 0; top: 0; z-index: 3; opacity: 0; }

/* 4 formats */
.s2-fmt { border-radius: 12px; box-shadow: 0 24px 46px -24px rgba(0,0,0,.75); }
.s2-fmt em { position: absolute; left: 14px; bottom: 12px; font: 500 15px/1 var(--font-body, sans-serif); font-style: normal; letter-spacing: .08em; color: var(--c-cream); opacity: 0; }
.s2-fl { position: absolute; opacity: 0; }

/* 02 subtitles + sound */
.s2-cap { position: absolute; left: 110px; bottom: 22px; width: 280px; padding: 13px 18px; border-radius: 8px; background: rgba(20,22,15,.82); opacity: 0; }
.s2-cap i { display: block; height: 9px; border-radius: 5px; background: var(--c-cream); transform-origin: 0 50%; }
.s2-cap i + i { margin-top: 10px; width: 64%; }
.s2-eq { position: absolute; right: 18px; top: 18px; height: 40px; padding: 0 10px; border-radius: 8px; background: rgba(20,22,15,.72); display: flex; align-items: center; gap: 4px; opacity: 0; }
.s2-eq i { width: 4px; border-radius: 2px; background: var(--c-lamp); }
.s2-glint { position: absolute; left: 312px; top: 56px; width: 56px; height: 56px; background: var(--c-cream); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); opacity: 0; }

/* 03 one long video -> short vertical ones */
.s2-long { position: absolute; left: 0; top: 40px; width: 760px; height: 150px; border-radius: 12px; border: 1.5px dashed rgba(254,246,225,.24); opacity: 0; }
.s2-long-r { position: absolute; left: 0; top: 204px; width: 760px; height: 10px; background: repeating-linear-gradient(90deg, rgba(232,235,219,.4) 0 1px, transparent 1px 38px); }
.s2-pcs { position: absolute; inset: 0; }
.s2-pc { box-shadow: 0 24px 46px -24px rgba(0,0,0,.75); }
.s2-pc .s2-play { opacity: 0; }
.s2-cutl { position: absolute; top: 26px; width: 3px; height: 178px; margin-left: -1px; border-radius: 2px; background: var(--c-lamp); transform-origin: 50% 0; }
.s2-und { position: absolute; top: 602px; width: 110px; height: 10px; opacity: 0; }

/* 04 comments on the timeline */
.s2-ring { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.s2-ring path { stroke: var(--c-lamp); stroke-width: 4; }
.s2-pin { position: absolute; top: -6px; width: 2px; height: 228px; background: rgba(217,178,122,.55); opacity: 0; }
.s2-pin b, .s2-note b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-red); color: var(--c-cream); font: 700 14px/1 var(--font-body, sans-serif); }
.s2-pin b { position: absolute; left: -12px; top: -4px; }
.s2-note { left: 532px; width: 212px; height: 82px; padding: 14px; display: flex; gap: 12px; border-radius: 12px; opacity: 0; }
.s2-note b { flex: 0 0 auto; }
.s2-note div { flex: 1; padding-top: 3px; }
.s2-note .ts-ln { height: 9px; background: #3a3220; } .s2-note .ts-ln + .ts-ln { margin-top: 10px; width: 66%; background: #b9ad8e; }
.s2-note .ts-ln + .ts-ln + .ts-ln { width: 84%; }

.s2-tag { display: block; margin-bottom: 16px; font-size: 16px; color: var(--c-amber); }
.ts--tall .s2-tag { font-size: 18px; margin-bottom: 12px; }

/* 6 everything becomes one finished video */
.s2-fr { width: 16%; height: 16%; opacity: 0; }
.s2-chip { position: absolute; width: 16%; height: 9%; border-radius: 10px; background: rgba(254,246,225,.07); border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; }
.s2-chip i { width: 5px; border-radius: 3px; background: var(--c-sage); }
.s2-chip.cap { flex-direction: column; align-items: flex-start; padding: 0 3%; gap: 9px; }
.s2-chip.cap i { width: 100%; height: 9px; background: var(--c-cream); } .s2-chip.cap i + i { width: 60%; }
.s2-fin { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; opacity: 0; background: radial-gradient(60% 80% at 76% 24%, #FFE6AB 0%, #D9A45F 13%, #8a3a1c 38%, #45190b 66%, #21180c 100%); }
.s2-fin .s2-hill { bottom: -58%; }
.s2-scrim { position: absolute; inset: 0; background: rgba(20,22,15,.5); opacity: 0; }
