.video-canvas {
    isolation: isolate;
    transition: box-shadow .25s, background-color .25s, filter .25s;
}
.video-canvas.is-switching-aspect { transition: none !important; }
.preview-viewport {
    position: relative;
    overflow: visible;
}
.preview-viewport .video-canvas.ratio-square,
.preview-viewport .video-canvas.ratio-wide { max-width: none; }
.video-canvas.demo-hidden .demo-backdrop,
.video-canvas.demo-hidden .demo-scene { display: none; }
.source-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: transparent;
    pointer-events: none;
    user-select: none;
}
.source-preview[hidden] { display: none; }
.source-composite-stack {
    position: absolute;
    inset: 0;
    z-index: auto;
    overflow: hidden;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
}
.source-composite-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    overflow: hidden;
}
.source-composite-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: transparent;
    pointer-events: none;
    user-select: none;
}
.source-composite-layer.is-chroma-keyed > video.source-composite-media { opacity: 0 !important; }
.source-audio-mix {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
.transition-backdrop-layer {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    transform-origin: center;
    pointer-events: none;
    user-select: none;
}
.transition-backdrop-layer[hidden],
.transition-backdrop-preview[hidden] { display: none !important; }
.transition-backdrop-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: transparent;
    pointer-events: none;
}
.source-transform-layer.is-transitioning .source-preview {
    background: transparent;
    will-change: transform, opacity, filter, clip-path, mask-image;
}
.source-transform-layer {
    position: absolute;
    z-index: 100000;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    touch-action: none;
    pointer-events: none;
    user-select: none;
}
.video-canvas.transform-editing .source-transform-layer {
    pointer-events: auto;
    cursor: grab;
}
.video-canvas.transform-editing .source-transform-layer.is-dragging { cursor: grabbing; }
.source-transform-layer[hidden],
.source-transform-controls[hidden],
.source-transform-toolbar[hidden],
.source-transform-toggle[hidden] { display: none !important; }
.source-transform-toggle {
    position: static;
    z-index: auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(176, 153, 255, .42);
    border-radius: 8px;
    color: #d9cffd;
    background: rgba(23, 19, 36, .82);
    box-shadow: none;
    cursor: pointer;
}
.source-transform-toggle:hover,
.source-transform-toggle:focus-visible,
.source-transform-toggle.active {
    border-color: #a78dff;
    color: #fff;
    background: rgba(116, 87, 238, .82);
    outline: 0;
}
.source-transform-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.preview-volume-control[hidden] { display: none !important; }
.preview-volume-control {
    position: static;
    z-index: auto;
    width: 30px;
    height: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 3px 4px;
    border: 1px solid rgba(176, 153, 255, .4);
    border-radius: 9px;
    color: #d9cffd;
    background: rgba(23, 19, 36, .88);
    box-shadow: none;
}
.preview-volume-control output {
    width: 100%;
    color: #b9aaf0;
    font: 700 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-align: center;
    direction: ltr;
}
.preview-volume-control input[type="range"] {
    width: 17px;
    height: 72px;
    min-height: 0;
    margin: 0;
    padding: 0;
    writing-mode: vertical-lr;
    direction: rtl;
    accent-color: #9275f5;
    cursor: pointer;
}
.preview-volume-control button {
    position: relative;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    flex: 0 0 23px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #ded6fa;
    background: rgba(145, 115, 246, .13);
    cursor: pointer;
}
.preview-volume-control button:hover { background: rgba(145, 115, 246, .3); color: #fff; }
.preview-volume-control button svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.preview-volume-control button.is-muted { color: #f29cac; background: rgba(229, 78, 104, .12); }
.preview-volume-control button.is-muted::after { content: ""; position: absolute; width: 15px; height: 1.5px; border-radius: 2px; background: currentColor; transform: rotate(-42deg); }
.source-transform-controls {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -50%);
    transform-origin: center;
    border: 1.5px solid #a992ff;
    box-shadow: inset 0 0 0 1px rgba(10, 8, 18, .45), 0 0 0 1px rgba(153, 126, 255, .12);
    pointer-events: none;
}
.source-rotate-handle {
    position: absolute;
    z-index: 7;
    top: -44px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 5px;
    transform: translateX(-50%);
    border: 1px solid #cabaff;
    border-radius: 50%;
    background: #30254d;
    color: #f3eeff;
    box-shadow: 0 3px 11px rgba(0, 0, 0, .48);
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
}
.source-rotate-handle::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1.5px;
    height: 16px;
    transform: translateX(-50%);
    background: #a992ff;
    pointer-events: none;
}
.source-rotate-handle:hover, .source-rotate-handle:focus-visible { background: #6246a1; outline: 2px solid rgba(197, 175, 255, .35); }
.source-rotate-handle:active { cursor: grabbing; }
.source-rotate-handle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.visual-rotation-control[hidden] { display: none !important; }
.visual-rotation-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin: 10px 0;
    padding: 9px 10px;
    border: 1px solid #343044;
    border-radius: 9px;
    background: linear-gradient(145deg, #201c2c, #171720);
    color: #d6cfe6;
    font-size: 10px;
    font-weight: 700;
}
.visual-rotation-control output { color: #d6c4ff; font: 800 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.visual-rotation-control input { grid-column: 1 / -1; width: 100%; height: 19px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.visual-rotation-control input::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, #7555c6, #b795ff); }
.visual-rotation-control input::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; appearance: none; border: 2px solid #f2ebff; border-radius: 50%; background: #9d76f0; box-shadow: 0 0 0 3px rgba(157, 118, 240, .15); }
.visual-rotation-control input::-moz-range-track { height: 4px; border-radius: 999px; background: #8764d1; }
.visual-rotation-control input::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid #f2ebff; border-radius: 50%; background: #9d76f0; }
.visual-rotation-control input:focus-visible { outline: 2px solid #b797fa; outline-offset: 2px; border-radius: 4px; }
.visual-adjustments[hidden] { display: none !important; }
.visual-adjustments { display: grid; grid-template-columns: minmax(0, 1fr); }
.visual-adjustments > #opacityControl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: #9698a1;
    font-size: 12px;
}
.clip-properties:is(.is-element-selected, .is-video-selected) .visual-adjustments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    margin: 10px 0;
}
.clip-properties:is(.is-element-selected, .is-video-selected) .visual-adjustments > label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 19px;
    align-items: center;
    gap: 6px 4px;
    min-width: 0;
    margin: 0;
    padding: 8px 7px;
    border: 1px solid #343044;
    border-radius: 9px;
    background: linear-gradient(145deg, #201c2c, #171720);
    color: #d6cfe6;
    font-size: 10px;
    font-weight: 700;
}
.clip-properties:is(.is-element-selected, .is-video-selected) .visual-adjustments > label > output {
    justify-self: end;
    color: #d6c4ff;
    font: 800 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: nowrap;
}
.clip-properties:is(.is-element-selected, .is-video-selected) .visual-adjustments > label > input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 19px;
    margin: 0;
}
.clip-properties:is(.is-element-selected, .is-video-selected) #opacityRange { appearance: none; background: transparent; cursor: pointer; }
.clip-properties:is(.is-element-selected, .is-video-selected) #opacityRange::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(var(--visual-range-direction, to left), #a986f7 0 var(--range-progress, 100%), #50475e var(--range-progress, 100%) 100%); }
.clip-properties:is(.is-element-selected, .is-video-selected) #opacityRange::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; appearance: none; border: 2px solid #f2ebff; border-radius: 50%; background: #9d76f0; box-shadow: 0 0 0 3px rgba(157, 118, 240, .15); }
.clip-properties.is-video-selected .visual-adjustments { margin: 0 0 2px; }
html[dir="ltr"] .clip-properties.is-video-selected { --visual-range-direction: to right; }
.clip-properties.is-element-selected #opacityRange::-moz-range-track { height: 4px; border-radius: 999px; background: #8764d1; }
.clip-properties.is-element-selected #opacityRange::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid #f2ebff; border-radius: 50%; background: #9d76f0; }
.source-transform-toolbar {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 46px;
    height: auto;
    padding: 3px;
    border: 1px solid rgba(176, 153, 255, .5);
    border-radius: 9px;
    background: rgba(23, 19, 36, .9);
    box-shadow: none;
}
.source-move-handle {
    width: 28px;
    min-width: 0;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 7px;
    border: 0;
    border-radius: 6px;
    color: #f6f2ff;
    background: rgba(145, 115, 246, .18);
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.source-move-handle:active { cursor: grabbing; }
.source-move-handle svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: #b9a5ff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.source-move-handle span {
    display: none;
}
.source-transform-toolbar output {
    min-width: 40px;
    text-align: center;
    color: #eee9ff;
    font: 800 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: -.02em;
    direction: ltr;
}
.source-scale-button {
    width: 25px;
    height: 28px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #dad2f7;
    font-size: 13px;
    cursor: pointer;
}
.source-scale-button:hover,
.source-scale-button:focus-visible { background: rgba(255, 255, 255, .08); outline: 0; }
.source-reset-button {
    width: 38px;
    min-height: 24px;
    margin-top: 1px;
    padding: 4px 2px;
    border: 1px solid rgba(176, 153, 255, .28);
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
    color: #dcd4f8;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.source-reset-button:hover,
.source-reset-button:focus-visible {
    border-color: rgba(176, 153, 255, .65);
    background: rgba(145, 115, 246, .18);
    color: #fff;
    outline: 0;
}
.source-reset-button:disabled {
    opacity: .42;
    cursor: default;
}
.source-resize-handle {
    position: absolute;
    z-index: 5;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
}
.source-resize-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border: 2px solid #17131f;
    border-radius: 4px;
    background: #a891ff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .45);
}
.source-resize-nw { inset: -13px auto auto -13px; cursor: nwse-resize; }
.source-resize-ne { inset: -13px -13px auto auto; cursor: nesw-resize; }
.source-resize-sw { inset: auto auto -13px -13px; cursor: nesw-resize; }
.source-resize-se { inset: auto -13px -13px auto; cursor: nwse-resize; }
.source-resize-edge {
    border: 0;
    border-radius: 0;
    background: transparent;
}
.source-resize-edge::after {
    border-width: 1px;
    border-color: rgba(225, 218, 255, .95);
    border-radius: 999px;
    background: linear-gradient(180deg, #c5b5ff, #876dea);
}
.source-resize-n,
.source-resize-s {
    left: 50%;
    width: 38px;
    height: 22px;
    transform: translateX(-50%);
    cursor: ns-resize;
}
.source-resize-n::after,
.source-resize-s::after { width: 24px; height: 8px; }
.source-resize-n { top: -11px; }
.source-resize-s { bottom: -11px; }
.source-resize-w,
.source-resize-e {
    top: 50%;
    width: 22px;
    height: 38px;
    transform: translateY(-50%);
    cursor: ew-resize;
}
.source-resize-w::after,
.source-resize-e::after { width: 8px; height: 24px; }
.source-resize-w { left: -11px; }
.source-resize-e { right: -11px; }
.video-canvas.is-playing .source-transform-controls,
.video-canvas.is-playing .source-transform-toolbar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.detached-preview-page .source-transform-controls,
.detached-preview-page .source-transform-toolbar,
.detached-preview-page .source-transform-toggle,
.detached-preview-page .preview-volume-control { display: none !important; }
.video-canvas.has-source-preview::before { opacity: 0; }
.empty-preview {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12%;
    text-align: center;
    background: radial-gradient(circle at 50% 38%, rgba(116,87,238,.2), transparent 38%);
}
.empty-preview[hidden] { display: none; }
.empty-preview > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border: 1px solid rgba(170,145,255,.36);
    border-radius: 15px;
    background: rgba(116,87,238,.13);
    color: #bba8ff;
    font-size: 25px;
}
.empty-preview strong { font-size: clamp(13px, 2vh, 18px); }
.empty-preview small { max-width: 210px; color: #9895a6; font-size: clamp(7px, 1vh, 9px); line-height: 1.7; }
.empty-preview button {
    margin-top: 8px;
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #7055e7, #945bea);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.demo-backdrop,
.demo-scene {
    position: absolute;
    inset: 0;
}

.demo-backdrop {
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 18%, rgba(139, 88, 246, .42), transparent 35%),
        radial-gradient(circle at 22% 82%, rgba(211, 69, 148, .25), transparent 38%),
        linear-gradient(155deg, #090a15, #18102f 57%, #451a3b);
    z-index: 0;
}
.demo-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.demo-backdrop i {
    position: absolute;
    width: 42%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(35px);
    opacity: .28;
}
.demo-backdrop i:nth-child(1) { top: -8%; right: -8%; background: #8257ff; }
.demo-backdrop i:nth-child(2) { bottom: 5%; left: -14%; background: #ed589b; }
.demo-backdrop i:nth-child(3) { top: 42%; right: 18%; background: #35bfd1; opacity: .12; }

.demo-scene {
    display: flex;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.025);
    transition: opacity .48s ease, transform .65s cubic-bezier(.2,.8,.2,1);
    z-index: 1;
}
.demo-scene.active { opacity: 1; transform: none; }
.demo-en { display: none; }
html[lang="en"] .demo-ar { display: none; }
html[lang="en"] .demo-en { display: inline; }

.demo-intro { align-items: center; padding: 11%; }
.demo-ring {
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    left: -34%;
    top: 5%;
    border: 1px solid rgba(210, 188, 255, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(137, 93, 242, .025), 0 0 0 48px rgba(137, 93, 242, .018);
}
.demo-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; direction: rtl; z-index: 2; }
.demo-kicker { color: #c9b8ff; font-size: clamp(7px, 1.25vh, 11px); }
.demo-copy strong { margin-top: 5px; font-size: clamp(25px, 5vh, 47px); line-height: 1.03; letter-spacing: -.055em; }
.demo-copy > i { width: 34px; height: 3px; margin: 14px 0 10px; background: linear-gradient(90deg, #8e68ff, #ef65bd); }
.demo-copy small { color: #aaa3b8; font: 6px Arial, sans-serif; letter-spacing: .22em; }
html[dir="ltr"] .demo-copy { direction: ltr; }

.demo-collage-scene { flex-direction: column; justify-content: center; padding: 8%; }
.demo-collage { height: 58%; position: relative; }
.demo-shot {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 7px;
    box-shadow: 0 16px 28px rgba(0,0,0,.28);
}
.demo-shot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 35%, rgba(255,255,255,.16)); }
.demo-shot span { position: absolute; bottom: 6px; left: 7px; color: rgba(255,255,255,.7); font: 6px Arial, sans-serif; }
.demo-shot-city { width: 57%; height: 73%; right: 0; top: 3%; transform: rotate(2deg); background: linear-gradient(160deg, #10162e, #4742a5 55%, #e268a6); }
.demo-shot-sunset { width: 47%; height: 62%; left: 2%; bottom: 1%; transform: rotate(-4deg); background: radial-gradient(circle at 70% 34%, #ffd7a2 0 6%, transparent 7%), linear-gradient(#713e85, #f07d8e 57%, #30254f 58%); }
.demo-shot-ocean { width: 35%; height: 42%; left: 36%; top: -3%; transform: rotate(5deg); background: linear-gradient(#4eb3c5 0 48%, #efe4bd 49% 62%, #31697b 63%); }
.demo-collage-copy { margin-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; direction: rtl; }
.demo-collage-copy b { font-size: clamp(14px, 2.4vh, 23px); line-height: 1.25; }
.demo-collage-copy small { color: #b8a8dd; font: 6px Arial, sans-serif; letter-spacing: .13em; }
html[dir="ltr"] .demo-collage-copy { direction: ltr; }

.demo-motion-scene { align-items: center; justify-content: center; }
.demo-orbit { position: absolute; border: 1px solid rgba(185, 161, 255, .2); border-radius: 50%; }
.demo-orbit-one { width: 83%; aspect-ratio: 1; }
.demo-orbit-two { width: 54%; aspect-ratio: 1; border-color: rgba(76, 207, 219, .22); }
.demo-motion-copy { position: relative; display: grid; text-align: center; line-height: .9; z-index: 2; }
.demo-motion-copy span { color: #b9a9ee; font-size: clamp(10px, 1.7vh, 16px); }
.demo-motion-copy strong { margin: 4px 0; font-size: clamp(37px, 7vh, 65px); letter-spacing: -.07em; }
.demo-motion-copy b { color: #e673ba; font-size: clamp(19px, 3.6vh, 34px); }

.demo-outro { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.demo-logo-mark {
    width: clamp(42px, 7vh, 64px);
    height: auto;
    aspect-ratio: 1;
    display: block;
    margin-bottom: 10px;
    border-radius: 27%;
    object-fit: contain;
    box-shadow: 0 15px 38px rgba(110, 72, 222, .38);
}
.demo-outro > strong { font: 700 clamp(22px, 4vh, 38px) Arial, sans-serif; letter-spacing: -.04em; }
.demo-outro > span { margin-top: 7px; color: #b8aec3; font-size: clamp(6px, 1vh, 9px); }

.demo-progress { position: absolute; left: 8%; right: 8%; bottom: 5%; height: 2px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.13); z-index: 3; }
.video-canvas .canvas-time { z-index: 4; }
.demo-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #8061f5, #ed68b7); transition: width .1s linear; }

.demo-thumb-intro { background: linear-gradient(135deg, #17102d, #6d3eac 58%, #c55091); }
.demo-thumb-collage { background: linear-gradient(135deg, #3d387e, #e37d93 48%, #3ea1ae); }
.demo-thumb-outro { background: radial-gradient(circle at 50% 50%, #a167f4 0 16%, transparent 18%), linear-gradient(135deg, #14101f, #4d2458); }
.clip.is-current { filter: brightness(1.13); box-shadow: inset 3px 0 0 #a98cff; }
.audio-clip.is-current { box-shadow: inset 3px 0 0 #57cbd2; }
.text-clip.is-current { box-shadow: inset 3px 0 0 #e2b25d; }

.video-canvas.is-playing .demo-backdrop { animation: demoBackdrop 8s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-intro.active .demo-copy { animation: demoRise 1s cubic-bezier(.2,.8,.2,1) both; }
.video-canvas.is-playing .demo-intro.active .demo-ring { animation: demoSpin 9s linear infinite; }
.video-canvas.is-playing .demo-collage-scene.active .demo-shot-city { animation: demoFloat 3s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-collage-scene.active .demo-shot-sunset { animation: demoFloat 3.6s .2s ease-in-out infinite alternate-reverse; }
.video-canvas.is-playing .demo-collage-scene.active .demo-shot-ocean { animation: demoFloat 2.7s .35s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-motion-scene.active .demo-orbit-one { animation: demoSpin 10s linear infinite; }
.video-canvas.is-playing .demo-motion-scene.active .demo-orbit-two { animation: demoSpinReverse 7s linear infinite; }
.video-canvas.is-playing .demo-motion-scene.active .demo-motion-copy { animation: demoPulse 2.1s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-outro.active .demo-logo-mark { animation: demoLogo 1.4s cubic-bezier(.2,.8,.2,1) infinite alternate; }

@keyframes demoBackdrop { to { filter: hue-rotate(16deg) saturate(1.1); transform: scale(1.035); } }
@keyframes demoRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes demoFloat { to { transform: translateY(-7px) rotate(1deg) scale(1.025); } }
@keyframes demoSpin { to { transform: rotate(360deg); } }
@keyframes demoSpinReverse { to { transform: rotate(-360deg); } }
@keyframes demoPulse { to { transform: scale(1.06); filter: brightness(1.12); } }
@keyframes demoLogo { from { transform: translateY(2px) scale(.96); } to { transform: translateY(-3px) scale(1.04); } }

.demo-type-scene,
.demo-interlock-scene,
.demo-frames-scene,
.demo-cut-scene {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 9%;
}
.demo-scene-caption {
    position: absolute;
    left: 9%;
    right: 9%;
    bottom: 11%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 3px;
    direction: rtl;
    text-align: start;
    z-index: 4;
}
.demo-scene-caption strong {
    display: block;
    width: 100%;
    font-size: clamp(14px, 2.25vh, 20px);
    line-height: 1.35;
    white-space: nowrap;
}
.demo-scene-caption small {
    display: block;
    width: 100%;
    color: #cfc3df;
    font: 600 clamp(8px, 1.15vh, 10px)/1.6 "Noto Kufi Arabic", sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
}
html[dir="ltr"] .demo-scene-caption { direction: ltr; }
html[lang="en"] .demo-scene-caption small { font-family: Arial, sans-serif; letter-spacing: .07em; }

.demo-letter-stack {
    width: 82%;
    height: 63%;
    position: relative;
    margin-bottom: 19%;
}
.demo-letter-stack i {
    position: absolute;
    inset: 50% auto auto 50%;
    font: 900 clamp(62px, 11vh, 104px)/1 Arial, sans-serif;
    font-style: normal;
    mix-blend-mode: screen;
    text-shadow: 0 16px 38px rgba(0,0,0,.34);
}
.demo-letter-stack i:nth-child(1) { color: #7958f0; transform: translate(-72%, -64%) rotate(-12deg); }
.demo-letter-stack i:nth-child(2) { color: #f4eefc; transform: translate(-48%, -48%) rotate(4deg); z-index: 2; }
.demo-letter-stack i:nth-child(3) { color: #e45aa6; transform: translate(-20%, -28%) rotate(14deg); }

.demo-interlock {
    width: 76%;
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 22%;
    transform: rotate(5deg);
}
.demo-interlock i {
    display: block;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 26px rgba(0,0,0,.25);
}
.demo-interlock i:nth-child(1) { border-radius: 44% 8px 8px 8px; background: linear-gradient(145deg, #182c52, #4f92ba 55%, #efc080); }
.demo-interlock i:nth-child(2) { border-radius: 8px 44% 8px 8px; background: radial-gradient(circle at 62% 30%, #ffd89e 0 7%, transparent 8%), linear-gradient(#7a438a, #ea7396 60%, #43275d 61%); transform: translateY(14px); }
.demo-interlock i:nth-child(3) { border-radius: 8px 8px 8px 44%; background: linear-gradient(135deg, #263071, #9b60d8 55%, #ef78aa); transform: translateY(-5px); }
.demo-interlock i:nth-child(4) { border-radius: 8px 8px 44% 8px; background: linear-gradient(155deg, #154b59, #42adad 52%, #dccf95); transform: translateY(9px); }

.demo-video-frames {
    width: 88%;
    height: 58%;
    position: relative;
    margin-bottom: 22%;
    perspective: 500px;
}
.demo-video-frames i {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 7px;
    box-shadow: 0 15px 30px rgba(0,0,0,.32);
    font-style: normal;
}
.demo-video-frames b {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(8,9,15,.64);
    font: 8px Arial, sans-serif;
}
.demo-frame-back { width: 72%; height: 68%; top: 0; left: 0; background: linear-gradient(145deg, #18283e, #387f91 60%, #d7b070); transform: rotateY(12deg) rotate(-5deg); }
.demo-frame-mid { width: 72%; height: 68%; top: 14%; right: 0; background: linear-gradient(145deg, #32225d, #9855b1 58%, #ea7ba0); transform: rotateY(-10deg) rotate(4deg); }
.demo-frame-front { width: 58%; height: 56%; left: 21%; bottom: 0; background: linear-gradient(145deg, #11162c, #5a49b6 58%, #cf5998); z-index: 2; }

.demo-cut-visual {
    width: 84%;
    height: 56%;
    position: relative;
    margin-bottom: 22%;
}
.demo-cut-half {
    position: absolute;
    top: 8%;
    bottom: 8%;
    width: calc(50% - 7px);
    display: block;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    box-shadow: 0 13px 28px rgba(0,0,0,.27);
}
.demo-cut-left { left: 0; background: linear-gradient(145deg, #1a2850, #5375c2 52%, #c65d9a); }
.demo-cut-right { right: 0; background: linear-gradient(145deg, #5a245f, #d45c93 52%, #e8a06f); }
.demo-cut-line { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(255,255,255,.65); }
.demo-cut-visual b {
    position: absolute;
    left: 50%;
    top: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    background: #7355e6;
    box-shadow: 0 10px 24px rgba(92,59,198,.34);
    transform: translate(-50%, -50%) rotate(90deg);
    font-size: 14px;
    z-index: 3;
}
.demo-outro .demo-logo-mark,
.demo-outro > strong,
.demo-outro > span { position: relative; z-index: 3; }

.demo-thumb-type { background: linear-gradient(135deg, #5b43d8, #f4eefc 52%, #d6549b); }
.demo-thumb-interlock { background: conic-gradient(from 35deg, #4e91b6, #efba7b, #d45f9b, #5948ba, #4e91b6); }
.demo-thumb-frames { background: linear-gradient(145deg, #14253c 0 36%, #9560c9 37% 68%, #e7789e 69%); }
.demo-thumb-cut { background: linear-gradient(90deg, #496fc0 0 47%, #11131b 48% 52%, #d4598e 53%); }

.video-canvas.is-playing .demo-type-scene.active .demo-letter-stack i:nth-child(1) { animation: demoLetterOne 2.2s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-type-scene.active .demo-letter-stack i:nth-child(2) { animation: demoLetterTwo 1.8s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-type-scene.active .demo-letter-stack i:nth-child(3) { animation: demoLetterThree 2s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-interlock-scene.active .demo-interlock { animation: demoInterlock 2.6s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-frames-scene.active .demo-frame-back { animation: demoFrameBack 2.4s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-frames-scene.active .demo-frame-mid { animation: demoFrameMid 2.1s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-frames-scene.active .demo-frame-front { animation: demoFrameFront 1.8s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-cut-scene.active .demo-cut-visual b { animation: demoScissors 2.5s ease-in-out infinite; }
.video-canvas.is-playing .demo-cut-scene.active .demo-cut-left { animation: demoCutLeft 2.5s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-cut-scene.active .demo-cut-right { animation: demoCutRight 2.5s ease-in-out infinite alternate; }
.video-canvas.is-playing .demo-outro.active .demo-orbit-one { animation: demoSpin 7s linear infinite; }
.video-canvas.is-playing .demo-outro.active .demo-orbit-two { animation: demoSpinReverse 5s linear infinite; }

@keyframes demoLetterOne { to { transform: translate(-82%, -58%) rotate(-18deg) scale(1.06); } }
@keyframes demoLetterTwo { to { transform: translate(-48%, -54%) rotate(0) scale(.96); } }
@keyframes demoLetterThree { to { transform: translate(-10%, -20%) rotate(20deg) scale(1.05); } }
@keyframes demoInterlock { to { transform: rotate(-3deg) scale(1.035); gap: 2px; } }
@keyframes demoFrameBack { to { transform: translate(-5px, -5px) rotateY(15deg) rotate(-7deg); } }
@keyframes demoFrameMid { to { transform: translate(6px, -4px) rotateY(-13deg) rotate(6deg); } }
@keyframes demoFrameFront { to { transform: translateY(-7px) scale(1.035); } }
@keyframes demoScissors { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
@keyframes demoCutLeft { to { transform: translateX(-5px) rotate(-1deg); } }
@keyframes demoCutRight { to { transform: translateX(5px) rotate(1deg); } }

.video-canvas.ratio-square .demo-copy strong { font-size: clamp(22px, 4vh, 38px); }
.video-canvas.ratio-wide .demo-intro { padding: 8%; }
.video-canvas.ratio-wide .demo-copy strong { font-size: clamp(18px, 3.4vh, 33px); }
.video-canvas.ratio-wide .demo-collage { height: 70%; width: 58%; }
.video-canvas.ratio-wide .demo-collage-scene { flex-direction: row; align-items: center; gap: 6%; }
.video-canvas.ratio-wide .demo-collage-copy { width: 34%; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
    .video-canvas.is-playing *, .video-canvas.is-playing::before { animation: none !important; }
}
