/* Palette and radii come straight from the editor's theme (src/renderer/ui/theme.css). */
:root {
  --bg: #09090a;
  --panel: #111113;
  --panel-2: #16161a;
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.11);
  --text: #ececef;
  --soft: #b9b9c1;
  --muted: #8d8d96;
  --dim: #5a5a63;
  --accent: #f2f2f4;
  --sky: #82cbff;
  --clip-video: #e8707f;
  --clip-element: #ad9cf2;
  --clip-audio: #52c48e;
  --r-lg: 10px;
  --r-xl: 14px;
  --font: 'InterVariable', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --lane: 28px;
  --dock-h: calc(30px + 20px + 4 * var(--lane) + 1px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font-family: var(--font); font-feature-settings: 'cv11', 'ss01', 'calt'; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
code.mono { font-size: 0.86em; padding: 0.1em 0.38em; border-radius: 5px; background: rgba(255, 255, 255, 0.07); }
kbd { font: 10.5px var(--mono); min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
::selection { background: rgba(130, 203, 255, 0.3); }

/* ---------- pinned stage ---------- */
#reel { position: relative; height: 1200vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; }

/* title bar (same shape as the editor's) */
.bar { flex: none; height: 44px; display: flex; align-items: center; gap: 22px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; position: relative; z-index: 5; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; }
.bar-menu { display: flex; gap: 4px; }
.bar-menu a { padding: 4px 9px; border-radius: 6px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.bar-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.bar-menu a.on { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.bar-crumb { display: flex; gap: 8px; color: var(--dim); font-size: 12px; padding-left: 18px; border-left: 1px solid var(--line); }
.bar-crumb span:first-child { color: var(--text); }
.bar-crumb i { font-style: normal; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bar-chip { display: flex; align-items: center; gap: 9px; height: 24px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; color: var(--muted); }
.bar-chip i { width: 1px; height: 11px; background: var(--line-2); }
.bar-gh { color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; }
.bar-gh:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.bar-gh svg { width: 16px; height: 16px; }

/* The preview: every size below is in container units, like Cascade's stage. */
.preview { position: relative; flex: 1; min-height: 0; container: preview / size; overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 7cqh 7cqw 6cqh; visibility: hidden; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 2.4cqh; font-size: 12px; color: var(--muted); }
.tc { color: var(--sky); font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 5px; background: rgba(130, 203, 255, 0.1); }
h1, h2 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, min(8.6cqw, 15cqh), 136px); line-height: 0.93; letter-spacing: -0.05em; }
h2 { font-size: clamp(30px, min(4.6cqw, 8.2cqh), 72px); line-height: 1; letter-spacing: -0.042em; }
.lede { font-size: clamp(15px, min(1.45cqw, 2.6cqh), 20px); color: var(--soft); margin: 2.6cqh 0 0; max-width: 34em; letter-spacing: -0.006em; text-wrap: pretty; }
.w { display: inline-block; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3.6cqh; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; transition: background 0.15s, border-color 0.15s; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.btn-primary { background: var(--accent); color: #0b0b0d; border-color: transparent; }
.btn-primary:hover { background: #fff; }
.btn-quiet { border-color: transparent; color: var(--muted); }

.copy { max-width: min(46cqw, 640px); }

/* screenshots sit in a panel, the way the editor frames its preview */
.hero-shot, .shot-card { margin: 0; padding: 0.55cqw; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 50px 140px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.hero-shot img, .shot-card img { border-radius: 8px; width: 100%; }

/* 1 · intro */
.s-intro .intro-copy { position: relative; z-index: 2; }
.s-intro .lede { max-width: 36em; }
.hero-shot { position: absolute; left: 50%; top: 50%; width: min(88cqw, 150cqh); translate: -50% -50%; transform-origin: 48% 28%; z-index: 1; }
.callout { position: absolute; left: var(--x); top: var(--y); translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: 999px; background: rgba(12, 12, 14, 0.86); backdrop-filter: blur(10px); border: 1px solid var(--line-2); font-size: clamp(11px, 1cqw, 13.5px); font-weight: 500; white-space: nowrap; }
.callout i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(130, 203, 255, 0.2); }

/* 2 · stage */
.s-stage { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5cqw; align-items: center; }
.demo { display: flex; flex-direction: column; gap: 2.4cqh; }
.live-wrap { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.live {
  position: relative; width: calc(100% * var(--k, 1)); aspect-ratio: 16 / 9;
  container-type: size; border-radius: 8px; overflow: hidden;
  background: #000 url(assets/frame.webp) center / cover no-repeat;
  outline: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.res { position: absolute; top: 3cqh; right: 2.4cqw; font-size: max(9px, 2.6cqw); padding: 0.4em 0.7em; border-radius: 5px; background: rgba(0, 0, 0, 0.6); color: var(--sky); }
.lt {
  position: absolute; left: 6cqw; bottom: 11cqh;
  display: flex; flex-direction: column; gap: 0.4cqh;
  padding: 2cqh 2.4cqw;
  border-radius: calc(var(--rad, 0) * 1cqw);
  background: rgba(13, 13, 16, calc(var(--fill, 0) * 0.72));
  backdrop-filter: blur(calc(var(--bl, 0) * 1.2cqw));
  box-shadow: 0 1.4cqh 4cqh rgba(0, 0, 0, calc(var(--sh, 0) * 0.55));
  translate: calc(var(--slide, 0) * -40cqw) 0;
  opacity: calc(1 - var(--slide, 0) * 0.9);
}
.lt b { font-size: 3.4cqw; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; white-space: nowrap; }
.lt span { font-size: 2.1cqw; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.lt.raw b, .lt.raw span { font-family: 'Times New Roman', Times, serif; font-weight: 400; letter-spacing: 0; color: #fff; }
.props { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: clamp(10.5px, 0.95cqw, 12.5px); }
.props li { padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.props b { color: var(--text); font-weight: 500; }
.props span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.props li.on { border-color: rgba(173, 156, 242, 0.5); background: rgba(173, 156, 242, 0.1); }
.demo-note { margin: 0; font-size: 13.5px; color: var(--muted); }

/* 3 · agents */
.s-agents { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 5cqw; align-items: center; }
.providers { list-style: none; padding: 0; margin: 3cqh 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.providers li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.providers svg, .chat-mark svg { width: 16px; height: 16px; color: #ececef; display: block; }
.agent-demo { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 1.6cqw; align-items: center; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px; font-size: clamp(12px, 1cqw, 13.5px); min-height: min(56cqh, 440px); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); }
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-head .mono { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 11px; }
.bubble { align-self: flex-end; max-width: 88%; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); min-height: 1.5em; white-space: pre-wrap; }
.bubble:empty, .reply:empty { visibility: hidden; }
.calls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.92em; color: var(--muted); }
.calls li { display: flex; align-items: center; gap: 8px; }
.calls li::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: rgba(173, 156, 242, 0.35); border: 1px solid rgba(173, 156, 242, 0.6); }
.reply { margin: 0; color: var(--soft); }
.live-sm { width: 100%; }
.recap { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9cqw; font-weight: 700; letter-spacing: -0.03em; text-shadow: 0 0.6cqw 2.4cqw rgba(0, 0, 0, 0.6); }
.undo { position: absolute; left: 3cqw; bottom: 4cqh; font-size: max(9px, 2.8cqw); padding: 0.35em 0.7em; border-radius: 5px; background: rgba(0, 0, 0, 0.62); color: var(--soft); }
.s-agents .shot-card { position: absolute; left: 50%; top: 50%; width: min(78cqw, 128cqh); translate: -50% -50%; z-index: 3; }
.shot-card figcaption { padding: 10px 6px 4px; font-size: 12px; color: var(--muted); }

/* 4 · motion */
.s-motion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 3cqh 5cqw; }
.s-motion .copy { grid-column: 1; }
.ease-card { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); }
.ease-tabs { display: flex; gap: 4px; font-size: 12px; }
.ease-tabs span { padding: 5px 10px; border-radius: 6px; color: var(--muted); }
.ease-tabs span.on { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.ease-graph { width: 100%; height: min(36cqh, 300px); }
.ease-graph .grid { stroke: rgba(255, 255, 255, 0.06); fill: none; }
.ease-graph .curve { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ease-dot { fill: var(--sky); }
.ease-track { position: relative; height: 40px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.ease-track span { position: absolute; top: 6px; left: calc(6px + var(--v, 0) * (100% - 140px)); height: 26px; width: 128px; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, var(--clip-element) 40%, #15151a); border: 1px solid rgba(255, 255, 255, 0.85); font-size: 12px; font-weight: 600; }
.shot-wide { grid-column: 1; grid-row: 2; align-self: end; }

/* 5 · plugins */
.s-plugins { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5cqw; align-items: center; }
.plug-demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 1.6cqw; align-items: center; }
.code { margin: 0; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); font-size: clamp(10px, 0.92cqw, 12.5px); line-height: 1.7; color: #c9c9d0; overflow: hidden; white-space: pre; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); }
.code code { display: block; padding: 14px 18px 18px; }
.code-tab { display: block; padding: 9px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.code .k { color: #f0a3b0; } .code .s { color: #9fd8a9; } .code .f { color: var(--sky); } .code .n { color: #f2c98a; }
.ln { opacity: 0.08; transition: opacity 0.2s; }
.ln.on { opacity: 1; }
.plug-side { display: flex; flex-direction: column; gap: 12px; }
.toast { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: rgba(82, 196, 142, 0.12); border: 1px solid rgba(82, 196, 142, 0.35); color: #9be3bd; font-size: 12px; }
.toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--clip-audio); }
.wiggle-img { position: absolute; inset: -4%; background: url(assets/frame.webp) center / cover no-repeat; }
.prop-chip { position: absolute; left: 3cqw; bottom: 4cqh; font-size: max(9px, 3.2cqw); padding: 0.35em 0.7em; border-radius: 5px; background: rgba(0, 0, 0, 0.62); color: #e9e5ff; }

/* 6 · export */
.s-export { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5cqw; align-items: center; }
.formats { list-style: none; padding: 0; margin: 3cqh 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.formats li { padding: 5px 10px; border-radius: 6px; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.formats li.on { color: #ffe7ea; background: rgba(232, 112, 127, 0.14); border-color: rgba(232, 112, 127, 0.4); }
.export-stack { position: relative; padding-bottom: 8cqh; }
.job { position: absolute; left: 6%; right: 18%; bottom: 0; padding: 16px 18px; border-radius: var(--r-xl); background: rgba(22, 22, 26, 0.92); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; gap: 10px; }
.job-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.job-row.mono { font-size: 11.5px; color: var(--muted); }
.job-name { font-weight: 600; }
.job-state { color: var(--sky); font-size: 12px; }
.job-state.done { color: #9be3bd; }
.job-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.job-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, rgba(130, 203, 255, 0.8), var(--accent)); }

/* 7 · outro */
.s-outro { display: grid; align-items: center; }
.outro { max-width: min(62cqw, 860px); }
.outro-logo { width: clamp(44px, 7cqh, 72px); height: auto; margin-bottom: 3.4cqh; }
.outro h2 { font-size: clamp(36px, min(6.4cqw, 11cqh), 104px); line-height: 0.95; }

.scroll-hint { white-space: nowrap; position: absolute; left: 50%; bottom: 2.6cqh; translate: -50% 0; margin: 0; font-size: 12px; color: var(--dim); display: flex; gap: 8px; align-items: center; }

/* ---------- the timeline dock ---------- */
.dock { flex: none; height: var(--dock-h); background: #0e0e10; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; user-select: none; position: relative; z-index: 5; }
.dock-top { height: 30px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.dock-tc { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; width: 92px; }
.dock-play { display: grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, 0.07); color: var(--text); cursor: pointer; }
.dock-play:hover { background: rgba(255, 255, 255, 0.13); }
.dock-play svg { width: 10px; height: 10px; grid-area: 1 / 1; }
.dock-play .i-pause, .dock.playing .i-play { display: none; }
.dock.playing .i-pause { display: block; }
.dock-hint { margin-left: auto; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.dock-hint kbd:nth-of-type(2) { margin-left: 8px; }

.dock-body { flex: 1; display: flex; min-height: 0; }
.heads { width: 112px; flex: none; border-right: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.head-ruler { height: 20px; border-bottom: 1px solid var(--line); }
.head { height: var(--lane); display: flex; align-items: center; gap: 8px; padding-left: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.head b { font-weight: 500; color: var(--text); font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.lanes { position: relative; flex: 1; min-width: 0; cursor: col-resize; touch-action: none; }
.ruler { position: relative; height: 20px; border-bottom: 1px solid var(--line); overflow: hidden; }
.tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line-2); padding: 3px 0 0 5px; font: 10px var(--mono); color: var(--dim); white-space: nowrap; }
.tick.minor { top: 13px; padding: 0; }
.lane { position: relative; height: var(--lane); border-bottom: 1px solid var(--line); }
.lane:last-of-type { border-bottom: 0; }
.lane canvas { position: absolute; inset: 3px 0; width: 100%; height: calc(100% - 6px); }

.clip { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; overflow: hidden; font-size: 10.5px; line-height: 1.2; font-weight: 600; display: flex; align-items: flex-start; padding: 3px 7px 0; white-space: nowrap; border: 1px solid transparent; transition: border-color 0.15s, filter 0.15s; }
.clip span { position: relative; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.clip.element { background: color-mix(in srgb, var(--clip-element) 34%, #15151a); color: #e9e5ff; }
.clip.video { background: color-mix(in srgb, var(--clip-video) 30%, #15151a); color: #ffe7ea; align-items: center; padding-top: 0; }
.clip.video::before { content: ''; position: absolute; inset: 0; background: var(--thumb) left center / auto 100% repeat-x; opacity: 0.4; }
.clip.on { border-color: rgba(255, 255, 255, 0.92); }
.lanes:hover .clip:hover { filter: brightness(1.15); }
.kf { position: absolute; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(20, 20, 24, 0.9); pointer-events: none; }
.kf.hit { background: #fff; border-color: #fff; }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #fff; pointer-events: none; will-change: transform; z-index: 2; }
.playhead span { position: absolute; top: 2px; left: -5.5px; width: 12px; height: 13px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); border-radius: 2px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: #0b0b0c; }
.foot-top, .foot-bottom { width: min(1180px, calc(100vw - 2 * clamp(20px, 5vw, 64px))); margin: 0 auto; }
.foot-top { padding: 72px 0 64px; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-title { margin: 18px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.foot-sub { margin: 0; color: var(--muted); max-width: 30em; font-size: 14.5px; }
.foot-links { display: flex; gap: 64px; }
.foot-links div { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.foot-links span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
/* Bottom row mirrors the Paperboard/paperdocs footer: copyright left, socials | Milenium right. */
.foot-bottom { padding: 20px 0 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); }
.copyright { margin: 0; font-size: 13px; color: var(--muted); }
.credit { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 12px; }
.credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.credit a:hover { color: var(--text); }
.foot-right { display: flex; align-items: center; gap: 18px; }
.separator { width: 1px; height: 14px; background: var(--line-2); flex-shrink: 0; }
.social, .milenium-link { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: color 0.15s; }
.social svg { display: block; height: 14px; width: auto; }
.social:hover, .milenium-link:hover { color: var(--text); }
.milenium { display: inline-block; height: 14px; aspect-ratio: 444 / 86; background-color: currentColor; -webkit-mask: url(assets/milenium.svg) center / contain no-repeat; mask: url(assets/milenium.svg) center / contain no-repeat; }

/* ---------- portrait / small previews: stack the scenes ---------- */
@container preview (aspect-ratio < 1.15) {
  .scene { padding: 5cqh 6cqw; }
  .s-stage, .s-agents, .s-plugins, .s-export, .s-motion { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; gap: 3.6cqh; }
  .copy { max-width: none; }
  .copy .lede { display: none; }
  .hero-shot { width: 94cqw; }
  .callout { display: none; }
  .props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-demo, .plug-demo { grid-template-columns: minmax(0, 1fr); }
  .agent-demo .live-sm, .plug-side .live-sm { display: none; }
  .chat { min-height: 0; }
  .ease-card { grid-column: 1; grid-row: auto; }
  .shot-wide { display: none; }
  .s-agents .shot-card { width: 94cqw; }
  .outro { max-width: none; }
  .code { font-size: 10px; }
  .code code { padding: 10px 12px 12px; }
  .export-stack { padding-bottom: 0; }
  .job { position: relative; left: auto; right: auto; margin: -3cqh 4% 0; }
}
@media (max-width: 760px) {
  .credit { display: block; margin: 6px 0 0; padding: 0; border: 0; }
  :root { --lane: 22px; }
  .bar-menu, .bar-chip, .bar-crumb, .dock-hint, .kf { display: none; }
  .heads { width: 40px; }
  .head { padding-left: 6px; font-size: 0; gap: 0; }
  .clip { font-size: 9.5px; padding-top: 2px; }
  .foot-links { gap: 40px; }
  .foot-bottom { justify-content: flex-start; }
}

/* One-off entrance on load; everything after that is driven by the playhead. */
@keyframes rise { from { opacity: 0; transform: translateY(0.4em); filter: blur(10px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(40px); } }
.js .w, .js #intro-lede, .js #intro-cta, .js .s-intro .eyebrow { animation: rise 1.1s var(--ease-out) both; }
.js .hero-shot img { animation: fade-up 1.6s 0.5s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .js .w, .js #intro-lede, .js #intro-cta, .js .s-intro .eyebrow, .js .hero-shot img { animation: none; } }
