/* HE. Cut page · "from raw to Reel": a vertical promo, before / after against the raw of the same shots (premiere/rl.js). */

.rl-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.rl-head .kicker { justify-content: center; }
.rl-head .lead { max-width: 42em; }
.rl-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; }

/* phone */
.rl-phone-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rl-phone { position: relative; width: 340px; padding: 12px; border-radius: 46px; background: linear-gradient(145deg, #2a2926, #0c0c0b); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 120px -40px rgba(233, 180, 76, .25); }
.rl-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 6; }
.rl-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000; --cut: 50%; }
.rl-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.rl[data-mode="before"] .rl-before { clip-path: none; }
.rl[data-mode="after"] .rl-before { clip-path: inset(0 100% 0 0); }
.rl-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 14px rgba(233, 180, 76, .7); cursor: ew-resize; touch-action: none; z-index: 4; }
.rl-handle i { position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: var(--gold); box-shadow: 0 4px 16px rgba(0, 0, 0, .6); }
.rl-handle i::before, .rl-handle i::after { content: ""; position: absolute; top: 50%; margin-top: -5px; border: 5px solid transparent; }
.rl-handle i::before { left: 5px; border-right-color: var(--gold-ink); } .rl-handle i::after { right: 5px; border-left-color: var(--gold-ink); }
.rl[data-mode="before"] .rl-handle, .rl[data-mode="after"] .rl-handle { opacity: 0; pointer-events: none; }
.rl-tag { position: absolute; top: 54px; z-index: 5; font-size: 10px; letter-spacing: .12em; padding: 4px 8px; background: rgba(0, 0, 0, .6); color: #ddd; transition: opacity .3s; }
.rl-tag.l { left: 14px; } .rl-tag.r { right: 14px; color: var(--gold); }
.rl[data-mode="after"] .rl-tag.l, .rl[data-mode="before"] .rl-tag.r { opacity: 0; }
.rl-stock { position: absolute; bottom: 18px; left: 14px; z-index: 5; font-size: 9px; padding: 4px 8px; background: rgba(0, 0, 0, .6); color: #bbb; opacity: 0; transition: opacity .3s; }
.rl.stock .rl-stock { opacity: 1; }
.rl[data-mode="after"] .rl-stock { opacity: 0; }
.rl-ctl { display: flex; align-items: center; gap: 8px; }
.rl-modes { --pl: var(--line2); --pm: var(--mute); }
.rl-ic { width: 34px; height: 28px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line2); color: var(--bone); border-radius: 4px; cursor: pointer; }
.rl-ic svg { width: 14px; height: 14px; fill: currentColor; }
.rl-ic .i-pause, .rl-ic .i-on { display: none; }
.rl.playing #rlPlay .i-play { display: none; } .rl.playing #rlPlay .i-pause { display: block; }
.rl.sound #rlMute .i-off { display: none; } .rl.sound #rlMute .i-on { display: block; }

/* side: stats, lines with their takes, removed chatter */
.rl-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.rl-stats div { padding: 16px 18px; border-inline-start: 1px solid var(--line); }
.rl-stats div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.rl-stats b { display: block; font-family: var(--latin); font-weight: 400; font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--bone); direction: ltr; text-align: start; }
.rl-stats .g b { color: var(--gold); }
.rl-stats span { font-size: 14px; color: var(--mute); }
.rl-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.rl-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: background .3s; position: relative; }
.rl-lines li::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -14px; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform .3s; }
.rl-lines li.now::before { transform: none; }
.rl-lines li b { font: 700 16px/1.5 var(--display); color: rgba(242, 237, 228, .72); transition: color .3s; }
.rl-lines li.now b { color: var(--bone); }
.rl-lines li em { font-style: normal; font: 600 11px var(--mono); color: var(--mute); white-space: nowrap; direction: ltr; }
.rl-lines li.now em { color: var(--gold); }
.rl-takes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px; direction: ltr; justify-content: flex-end; }
html[dir="ltr"] .rl-takes { justify-content: flex-start; }
.rl-takes i { width: 10px; height: 10px; border-radius: 2px; background: rgba(242, 237, 228, .14); transition: background .3s; }
.rl-takes i.k { background: var(--gold); box-shadow: 0 0 8px rgba(233, 180, 76, .5); }
.rl-lines li.now .rl-takes i:not(.k) { background: rgba(255, 74, 61, .45); }
.rl-gone { margin-top: 24px; }
.rl-gone p { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-chips s { font-size: 13px; padding: 4px 10px; border: 1px solid rgba(255, 74, 61, .35); color: rgba(255, 120, 110, .85); text-decoration-thickness: 1px; border-radius: 2px; }

@media (max-width: 980px) {
  .rl-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .rl-phone { width: min(300px, 88vw); }
  .rl-stats div { padding: 12px 10px; }
  .rl-stats span { font-size: 12px; }
  .rl-lines li b { font-size: 14px; }
}
