Skip to content

Play a finished motion-graphics ad in sync with the rough drafts it grew from, and export the breakdown as MP4.

19.5 KB
Raw Blame
/* Null — Launch Studio. Minimal dark theme.
   One neutral surface scale, one brand accent, no decoration. */

:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --panel: #111112;
  --surface: #17171a;
  --raised: #1e1e21;
  --line: #242427;
  --line-soft: #1b1b1e;
  --text: #ececee;
  --muted: #86868c;
  --faint: #5c5c62;
  --accent: #daef79;
  --paper: #eeefdf;
  --radius: 6px;
  --gutter: 24px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-size: 13px; font-weight: 500; margin: 0; letter-spacing: 0; }

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }

svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
use[href="#i-play"], use[href="#i-spark"] { fill: currentColor; stroke: none; }
.svg-library { display: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 50;
  padding: 8px 12px; background: var(--raised); border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Decoration the simple theme drops. */
.logo-dot, .logo-mark, .crumb, .project-caret, .demo-label, .live-dot,
.top-divider, .avatar, .subtle-label, .panel-description, .identity-footnote,
.concept-note, .brand-divider, .tiny-dot, .studio-footer, .monitor-dot,
.library-heading p, .timeline-hint, .direction-label, .direction-copy,
.footer-mark, .footer-dot, .brand-overlay-divider { display: none; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font-size: 12px; white-space: nowrap;
}
.button:hover:not(:disabled) { background: var(--raised); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #101010; }
.button.primary:hover:not(:disabled) { filter: brightness(1.08); }
.button.subtle { background: none; color: var(--muted); }
.button.subtle:hover { color: var(--text); }
.button.small { height: 26px; padding: 0 10px; font-size: 11px; }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 28px; height: 28px; border-radius: var(--radius); color: var(--muted);
}
.icon-button:hover:not(:disabled) { background: var(--surface); color: var(--text); }
.mute-slash { position: absolute; width: 17px; height: 1px; background: currentColor; transform: rotate(-45deg); }
.text-button { color: var(--muted); font-size: 12px; padding: 4px 6px; border-radius: 4px; }
.text-button:hover:not(:disabled) { color: var(--text); background: var(--surface); }
.text-button.remove-clip:hover:not(:disabled) { color: #f08a7a; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 var(--gutter);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.logo { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.project-link { color: var(--muted); font-size: 12px; }
.project-link:hover { color: var(--text); }
.project-name { font-size: 12px; color: var(--muted); }
.save-state { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); }
.save-state span { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Shell ---------- */

.workspace { display: flex; align-items: flex-start; }

.rail {
  position: sticky; top: 48px;
  display: flex; flex-direction: column; gap: 2px;
  width: 64px; padding: 12px 8px; flex: none;
  border-right: 1px solid var(--line);
  height: calc(100vh - 48px);
}
.rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 0; border-radius: var(--radius);
  color: var(--faint); font-size: 10px;
}
.rail-item:hover { color: var(--text); background: var(--surface); }
.rail-item.active { color: var(--text); }
.rail-bottom { margin-top: auto; text-align: center; font-size: 10px; color: #303034; }

main { flex: 1; min-width: 0; }

.studio-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter) 0;
}
.studio-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.studio-title h1 { font-size: 14px; font-weight: 500; }

.view-toggle { display: flex; gap: 2px; padding: 2px; background: var(--surface); border-radius: var(--radius); }
.view-toggle button { padding: 5px 11px; border-radius: 4px; font-size: 11px; color: var(--muted); }
.view-toggle button.active { background: var(--raised); color: var(--text); }

/* ---------- Preview + brand ---------- */

.upper-workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) 248px;
  gap: 24px; padding: 16px var(--gutter) 24px;
}
.preview-area { min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.canvas-top, .monitor-source {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
}
.canvas-top span, .monitor-source span { display: flex; align-items: center; gap: 7px; }
.canvas-sep { color: #2e2e32; }
.monitor-source i { width: 3px; height: 3px; border-radius: 50%; background: #2e2e32; display: inline-block; }
.monitor-option { width: 20px; height: 20px; border-radius: 4px; color: var(--faint); }
.monitor-option:hover, .monitor-option[aria-pressed="true"] { color: var(--text); background: var(--surface); }

.transport {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.transport-start, .transport-end { display: flex; align-items: center; gap: 8px; }
.transport-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #101010;
}
.transport-play:disabled { background: var(--raised); color: var(--faint); }
.time-readout { display: flex; gap: 5px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.time-readout strong { color: var(--text); font-weight: 500; }
.cut-label { font-size: 10px; letter-spacing: .07em; color: var(--faint); }

.brand-panel { scroll-margin-top: 64px; border-left: 1px solid var(--line); padding-left: 24px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--muted); }
.panel-title svg { color: var(--faint); }
.field-label { display: block; margin: 14px 0 6px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.brand-panel > .field-label:first-of-type { margin-top: 0; }

.brand-panel input:not([type=color]), .brand-panel textarea, .brand-panel select {
  width: 100%; padding: 8px 10px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  resize: none;
}
.brand-panel input:focus, .brand-panel textarea:focus, .brand-panel select:focus { border-color: #3a3a40; outline: none; }
.brand-panel select { appearance: none; cursor: pointer; }

.palette { display: flex; align-items: center; gap: 7px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; background: var(--swatch); border: 1px solid transparent; }
.swatch.active { box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--swatch); }
.custom-color { position: relative; width: 20px; height: 20px; display: grid; place-items: center; border: 1px dashed #333338; border-radius: 50%; color: var(--faint); cursor: pointer; font-size: 12px; }
.custom-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.overlay-toggle { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--muted); cursor: pointer; }
.overlay-toggle input { position: absolute; right: 0; width: 1px; height: 1px; opacity: 0; }
.toggle-track { width: 30px; height: 17px; border-radius: 9px; background: var(--raised); position: relative; transition: background .15s; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.overlay-toggle input:checked + .toggle-track { background: var(--accent); }
.overlay-toggle input:checked + .toggle-track::after { transform: translateX(13px); background: #101010; }

/* ---------- Timeline ---------- */

.timeline-panel { padding: 0 var(--gutter) 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.timeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.timeline-heading { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.timeline-heading h2 { color: var(--text); }
.clip-count { font-size: 11px; color: var(--faint); }
.timeline-tools { display: flex; align-items: center; gap: 4px; }
.tool-divider { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }

.timeline-scroll { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 14px; overflow-x: auto; scrollbar-width: thin; }
.timeline-body { position: relative; }

/* Sections: one live box per clip, each looping its own part of the reference.
   Widths follow clip length, so every box sits directly above its span on the waveform. */
.timeline-body { min-width: 100%; }
.clips-track { display: flex; gap: 8px; min-height: 96px; }
.empty-track {
  flex: 1; display: grid; place-items: center; min-height: 96px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  font-size: 11px; color: var(--faint);
}
.timeline-clip {
  position: relative; min-width: 72px; height: 96px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #000; text-align: left;
}
.timeline-clip .section-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--radius) - 1px); opacity: .6; transition: opacity .2s; pointer-events: none;
}
.timeline-clip span {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
  padding: 6px 8px; font-size: 11px; line-height: 1.25; border-radius: inherit;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, .8));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.timeline-clip small { font-size: 9px; color: #b9b9be; letter-spacing: .04em; }
.clip-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
/* Pointer from each section down to its span on the waveform. */
.timeline-clip::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom: 0; border-top: 6px solid #36363b;
}
.timeline-clip.selected, .timeline-clip.playing { border-color: var(--accent); }
.timeline-clip.playing::after { border-top-color: var(--accent); }
.timeline-clip.selected .section-video, .timeline-clip.playing .section-video, .timeline-clip:hover .section-video { opacity: 1; }
.timeline-clip.dragging { opacity: .4; }

.ruler { position: relative; height: 14px; margin: 16px 0 4px; font-size: 10px; color: #3d3d42; font-variant-numeric: tabular-nums; }
.ruler span { position: absolute; top: 0; transform: translateX(-50%); }
.ruler span:first-child { transform: none; }
.ruler span:last-child { transform: translateX(-100%); }

/* Waveform lane: the sequence's audio, section spans, and the moving playhead. */
.wave-lane { position: relative; height: 64px; border-radius: 4px; background: var(--bg); cursor: pointer; }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-spans { position: absolute; inset: 0; display: flex; gap: 8px; pointer-events: none; }
.wave-spans i { position: relative; min-width: 72px; border-left: 1px solid var(--line); }
.wave-spans i:first-child { border-left-color: transparent; }
.wave-spans i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.wave-spans i.playing::before { background: var(--accent); }

.playhead { position: absolute; top: -6px; bottom: -4px; left: 0; width: 1px; background: var(--text); pointer-events: none; z-index: 2; }
.playhead span { position: absolute; top: -3px; left: -4px; width: 9px; height: 9px; border-radius: 2px; background: var(--text); }

.timeline-scrubber { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.wave-lane:has(.timeline-scrubber:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.clip-inspector {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; font-size: 12px; color: var(--muted);
}
.clip-inspector > div { display: flex; align-items: center; gap: 6px; }
.clip-inspector label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); }
.clip-inspector input {
  width: 62px; padding: 5px 7px; font-size: 11px; font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
}
.clip-inspector input:focus { outline: none; border-color: #3a3a40; }

/* ---------- Library ---------- */

.library-panel { scroll-margin-top: 56px; padding: 20px var(--gutter) 40px; border-top: 1px solid var(--line); }
.library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.library-title-row { display: flex; align-items: center; gap: 10px; }
.library-title-row h2 { font-size: 14px; }
.library-count { font-size: 11px; color: var(--faint); }
.library-actions { display: flex; align-items: center; gap: 8px; }

.search-box {
  display: flex; align-items: center; gap: 7px; width: 220px; height: 30px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--faint);
}
.search-box:focus-within { border-color: #3a3a40; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 12px; }
.upload-button { position: relative; cursor: pointer; }

.reference-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.reference-tab {
  display: flex; align-items: center; gap: 6px; flex: none;
  height: 28px; padding: 0 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11px; color: var(--muted); white-space: nowrap; max-width: 190px;
}
.reference-tab span { overflow: hidden; text-overflow: ellipsis; }
.reference-tab img { width: 20px; height: 13px; object-fit: cover; border-radius: 2px; }
.reference-tab:hover { color: var(--text); }
.reference-tab.active { border-color: #3d3d43; color: var(--text); background: var(--raised); }

.source-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 12px; font-size: 11px; color: var(--faint); }

.segment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.library-loading, .library-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; font-size: 12px; color: var(--faint); }

.segment-card { cursor: grab; }
.segment-visual {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.segment-visual img, .segment-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.segment-visual video { z-index: 1; }
.segment-card:hover .segment-visual { border-color: #3d3d43; }

.segment-number, .segment-length {
  position: absolute; z-index: 2; top: 6px; font-size: 9px; letter-spacing: .06em;
  padding: 2px 5px; border-radius: 3px; background: rgba(8, 8, 9, .72); color: #c9c9ce;
}
.segment-number { left: 6px; }
.segment-length { right: 6px; }
.segment-preview {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  color: #fff; opacity: 0; transition: opacity .12s;
}
.segment-card:hover .segment-preview { opacity: 1; }
.segment-preview svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6)); }
.segment-add {
  position: absolute; z-index: 3; right: 6px; bottom: 6px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #101010; opacity: 0; transition: opacity .12s;
}
.segment-card:hover .segment-add, .segment-add:focus-visible { opacity: 1; }

.segment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 12px; }
.segment-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segment-meta small { font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.segment-subtitle { margin-top: 2px; font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Toast + dialog ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  padding: 9px 14px; font-size: 12px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

dialog {
  width: min(760px, 92vw); padding: 16px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
dialog::backdrop { background: rgba(6, 6, 7, .8); }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-top h2 { font-size: 14px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: .08em; color: var(--faint); margin-bottom: 3px; }
#dialog-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.dialog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 11px; color: var(--faint); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root { --gutter: 16px; }
  .upper-workspace { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
  .brand-panel { padding-left: 18px; }
  .save-state { display: none; }
}
@media (max-width: 820px) {
  .rail { display: none; }
  .upper-workspace { grid-template-columns: 1fr; }
  .brand-panel { scroll-margin-top: 64px; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .library-heading, .library-actions { flex-wrap: wrap; }
  .search-box { width: 150px; }
  .project-name, .project-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}