/* The monitor, pointer and edit tracks use the program film’s clock. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cut-demo {
  position: relative;
  min-width: 0;
  isolation: isolate;
  container-type: inline-size;
  --desk-ink: var(--ink);
  --desk-line: #51493f;
  --desk-soft: #d5c9b8;
  --wide-mask: 100%;
  --oracle-mask: 100%;
  --title-mask: 100%;
  --caption-mask: 100%;
  --playhead: 0%;
}
.demo-brief { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; padding: 8px 12px; border-left: 4px solid var(--honey); background: #faf5e8; color: var(--ink); font-size: clamp(.8rem,1.05vw,.98rem); line-height: 1.35; }
.demo-brief span { flex: none; color: #635340; font-weight: 650; }
.demo-brief q { font-weight: 530; }
.desk-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--desk-ink);
  color: #fff3dc;
  box-shadow: 0 5px 15px #271c101a;
}
.desk-title, .program-label, .monitor-footer, .booth-head, .timeline-caption, .demo-controls {
  display: flex;
  align-items: center;
}
.desk-title {
  gap: 9px;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--desk-line);
  background: #272520;
}
.desk-title strong, .booth-head strong, .timeline-caption strong { font-size: 13px; font-weight: 580; }
.project-glyph { width: 16px; height: 13px; position: relative; border: 1.5px solid var(--amber); border-radius: 2px; }
.project-glyph::before { content: ''; position: absolute; left: 2px; right: 2px; top: 3px; height: 3px; border-block: 1px solid var(--amber); }
.project-type, .program-label, .monitor-footer, .edit-length, .time-ruler, .track-id {
  font: 500 10px/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
}
.project-type { margin-left: auto; color: var(--desk-soft); letter-spacing: .07em; text-transform: uppercase; }
.demo-main { display: grid; grid-template-columns: minmax(0,2.35fr) minmax(0,1fr); height: clamp(210px,42cqw,355px); }
.demo-program { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: #100e0b; }
.program-label { padding: 7px 10px; justify-content: space-between; color: var(--desk-soft); }
.program-label span:first-child { text-transform: uppercase; letter-spacing: .07em; }
.monitor-image { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; background: #0c0a08; }
.monitor-image video { width: 100%; height: 100%; display: block; object-fit: contain; }
.shot-cue { position: absolute; inset: 6%; pointer-events: none; opacity: 0; }
.shot-cue::before, .shot-cue::after { content: ""; position: absolute; width: clamp(14px,2vw,28px); height: clamp(10px,1.3vw,20px); border: solid var(--honey); }
.shot-cue::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.shot-cue::after { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.monitor-footer { padding: 6px 10px; gap: 8px; color: var(--desk-soft); }
.monitor-footer > :last-child { margin-left: auto; }
.monitor-transport { color: var(--amber); font-size: 10px; }
.booth {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0,1fr) minmax(2.8em, auto) auto;
  align-items: center;
  padding: 8px clamp(8px,1.65cqw,16px) 10px;
  gap: 6px;
  border-left: 1px solid var(--desk-line);
  background: #ded4c0; color: var(--ink);
  font-size: clamp(12px,1.83cqw,16px);
}
.booth-head { gap: 6px; align-self: start; }
.booth-dot { background: var(--walnut); border-radius: 50%; width: 6px; height: 6px; }
.speech-meter { margin-left: auto; display: flex; align-items: center; gap: 2px; height: 14px; opacity: .43; }
.speech-meter i { width: 2px; height: 4px; background: var(--walnut); }
.speech-meter i:nth-child(2) { height: 11px; }
.speech-meter i:nth-child(3) { height: 8px; }
.bear-stage { display: grid; place-items: center; position: relative; align-self: stretch; min-height: 0; }
.plush-figure {
  display: block;
  width: auto;
  height: 100%;
  max-height: 147px;
  max-width: 88%;
  aspect-ratio: 248 / 252;
  background: url("assets/olly-poses.webp") 14.2857% center / 800% 100% no-repeat;
  mix-blend-mode: multiply;
  transform-origin: 50% 91%;
  transform: scaleX(-1);
}
.chat-line {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #b5a68e;
  border-radius: 2px;
  background: var(--stock);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
}
.cut-demo[data-phase="listen"] .chat-line { color: #211a10; background: #f0dfb6; border-color: #e8c680; }
.demo-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 7px;
  background: var(--ink);
  color: var(--stock);
  border: 1px solid #82653d;
  border-radius: 4px;
  font-size: clamp(11px,1.65cqw,14px);
  font-weight: 560;
}
.demo-action:enabled:hover { background: #4b3724; }
.demo-action:disabled { cursor: default; }
.action-glyph { font: 600 12px/1 var(--mono); }
.cut-demo[data-phase="review"] .demo-action { background: var(--amber); border-color: var(--amber); color: var(--night); }
.cut-demo[data-phase="listen"] .demo-action { background: #40321e; }
.cut-demo[data-speaking="true"] .speech-meter, .cut-demo[data-phase="listen"] .speech-meter { opacity: 1; }
.cut-demo[data-speaking="true"] .speech-meter i, .cut-demo[data-phase="listen"] .speech-meter i { animation: meter-bounce .42s ease-in-out infinite alternate; }
.speech-meter i:nth-child(2n) { animation-delay: -.14s !important; }
.cut-demo[data-phase="listen"] .plush-figure { animation: bear-listens 1.2s ease-in-out infinite alternate; }
.cut-demo[data-speaking="true"] .plush-figure { animation: bear-speaks .49s ease-in-out infinite alternate; }
.cut-demo[data-phase="done"] .plush-figure { animation: bear-claps .5s ease-out 1; }
@keyframes meter-bounce { to { transform: scaleY(.42); } }
@keyframes bear-listens { to { transform: translateY(-2%) rotate(-3deg) scaleX(-1); } }
@keyframes bear-speaks { to { transform: translateY(-3%) rotate(2deg) scale(-1.012,.985); } }
@keyframes bear-claps { 45% { transform: translateY(-8%) rotate(-4deg) scaleX(-1); } }
.edit-timeline { padding: 8px 12px 10px; border-top: 1px solid var(--desk-line); background: #211b15; }
.timeline-caption { gap: 8px; padding-bottom: 5px; }
#edit-status { font: 500 10px/1.3 var(--mono); color: #cebaa0; }
#edit-status::before { content: "/"; margin-right: 7px; color: #8c7658; }
.edit-length { margin-left: auto; color: #f6d17a; }
.timeline-content { --label-w: 24px; position: relative; }
.time-ruler { position: relative; margin-left: var(--label-w); color: #cabdab; height: 15px; background: repeating-linear-gradient(to right,#725c43 0 1px,transparent 1px 5.34188%) left bottom / 100% 3px no-repeat; }
.time-ruler span { position: absolute; top: -1px; }
.time-ruler span:nth-child(2) { left: 32.0513%; }
.time-ruler span:nth-child(3) { left: 64.1026%; }
.time-ruler span:nth-child(4) { left: 96.1538%; }
.track-row { display: flex; align-items: stretch; margin-top: 3px; }
.track-id { width: var(--label-w); flex: none; align-self: center; color: var(--desk-soft); }
.strip-lane { position: relative; flex: 1; overflow: hidden; border-radius: 2px; background: repeating-linear-gradient(to right,transparent 0 calc(32.0513% - 1px),#42372b calc(32.0513% - 1px) 32.0513%),#14100c; }
.caption-lane, .title-lane { height: clamp(14px,2.1cqw,18px); }
.broll-lane, .video-lane { height: clamp(20px,3.8cqw,29px); }
.audio-lane { height: clamp(13px,2.2cqw,18px); background: var(--walnut) url("assets/olly-voice.png") center / 100% 100% no-repeat; }
.video-lane { background: #2a231b url("assets/studio-strip.webp") center / 100% 100% no-repeat; }
.video-lane::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,transparent 41.88%,#21170b 41.88% calc(41.88% + 2px),transparent calc(41.88% + 2px) 56.84%,#21170b 56.84% calc(56.84% + 2px),transparent calc(56.84% + 2px)); }
.edit-clip, .caption-clip { position: absolute; inset-block: 0; overflow: hidden; white-space: nowrap; border-radius: 2px; }
.edit-clip b, .video-lane b { position: absolute; bottom: 1px; left: 2px; padding: 1px 4px; background: #19130ed9; color: #f7ebd8; font: 550 10px/1.1 var(--text); border-radius: 2px; }
.wide-clip { background: #544031 url("assets/studio-temple.webp") center / 100% 100% no-repeat; clip-path: inset(0 var(--wide-mask) 0 0); }
.oracle-clip { background: #62432d url("assets/studio-oracle.webp") center / 100% 100% no-repeat; clip-path: inset(0 var(--oracle-mask) 0 0); }
.motion-clip, .caption-clip { display: flex; align-items: center; padding-inline: 5px; font: 600 10px/1 var(--text); }
.motion-clip { color: #fff2d6; border-left: 2px solid #e8ad57; background: #6d4c32; clip-path: inset(0 var(--title-mask) 0 0); }
.caption-set { position: absolute; inset: 0; clip-path: inset(0 var(--caption-mask) 0 0); }
.caption-clip { color: #21190d; border-right: 1px solid #241b0e; background: #d3ac60; }
.playhead-lane { pointer-events: none; position: absolute; left: var(--label-w); right: 0; top: 13px; bottom: -1px; }
.demo-playhead { position: absolute; width: 2px; left: min(var(--playhead),calc(100% - 2px)); top: 0; bottom: 0; background: var(--amber); box-shadow: 0 0 2px #30210c; }
.demo-playhead::before { content: ''; position: absolute; width: 8px; height: 7px; background: var(--amber); left: -3px; top: -1px; clip-path: polygon(0 0,100% 0,100% 48%,50% 100%,0 48%); }
.edit-chapters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 5px; border-top: 1px solid var(--desk-line); background: #17120f; }
.edit-chapters button { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: 46px; height: clamp(46px,7.3cqw,63px); border: 0; padding: 6px 9px; color: #fff5e0; text-align: left; background: #34291e; border-radius: 3px; }
.edit-chapters img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 41%; opacity: .63; transition: opacity .16s; }
.edit-chapters button::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg,#140e09e8,transparent 115%); }
.edit-chapters span { position: relative; z-index: 1; font: 600 clamp(11px,1.8cqw,14px)/1.1 var(--text); }
.edit-chapters button:hover img, .edit-chapters button[aria-pressed=true] img { opacity: 1; }
.edit-chapters button[aria-pressed=true] { color: #ffda7c; }
.edit-chapters button[aria-pressed=true]::after { content: ''; position: absolute; z-index: 2; inset: 0; border: 1px solid #efc46e; border-bottom-width: 3px; border-radius: 3px; }
.edit-chapters button:focus-visible { z-index: 2; outline-offset: -3px; }
.guide-pointer { position: absolute; top: 0; left: 0; z-index: 3; width: 23px; height: 28px; pointer-events: none; opacity: 0; }
.guide-pointer i { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1.5px #000); }
.guide-pointer i::before, .guide-pointer i::after { content: ''; position: absolute; inset: 0; background: #20170d; clip-path: polygon(2% 0,96% 54%,60% 62%,78% 92%,57% 100%,39% 69%,16% 93%); }
.guide-pointer i::after { inset: 2px; background: var(--honey); }
.guide-pointer span { pointer-events: none; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border: 2px solid #ffdc65; border-radius: 50%; opacity: 0; }
.demo-controls { gap: 6px; padding-top: 5px; }
.demo-controls button { display: inline-flex; gap: 7px; align-items: center; min-height: 34px; padding: 5px 9px; border: none; border-radius: 4px; background: transparent; color: var(--walnut); font: 540 12px/1.2 var(--text); }
.demo-controls button:hover { color: var(--ink); background: #e4dcca; }
.demo-controls button:first-child { padding-left: 2px; }
.control-icon { color: var(--walnut); font-size: 14px; min-width: 13px; }
#demo-voice { margin-left: auto; }
.voice-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--walnut); }
#demo-voice[aria-pressed="true"] .voice-dot { background: var(--amber); border-color: var(--amber); }
.cut-demo:not([data-playing="true"]) *, .cut-demo:not([data-playing="true"]) *::after { animation-play-state: paused !important; }
@container (max-width: 510px) {
  .desk-title { min-height: 31px; padding-inline: 9px; }
  .demo-main { display: flex; flex-direction: column; height: auto; }
  .demo-program { display: grid; grid-template-rows: auto auto; grid-template-columns: 1fr auto; }
  .program-label { grid-row: 1; grid-column: 1; justify-content: flex-start; gap: 8px; }
  .monitor-image { grid-row: 2; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .monitor-footer { grid-row: 1; grid-column: 2; }
  .monitor-footer > :last-child { display: none; }
  .program-label, .monitor-footer { padding: 5px 7px; font-size: 9px; }
  .booth { position: relative; display: grid; grid-template-columns: 53px minmax(0,1fr) auto; grid-template-rows: 15px minmax(38px,auto); min-height: 67px; padding: 5px 6px; gap: 2px 6px; border-left: 0; border-top: 1px solid var(--desk-line); background: #ded4c0; }
  .booth-head { grid-area: 1 / 2 / 2 / 4; justify-self: start; }
  .booth-head strong { font-size: 11px; }
  .speech-meter { margin-left: 4px; }
  .bear-stage { grid-area: 1 / 1 / 3 / 2; }
  .plush-figure { height: 52px; max-width: 100%; }
  .chat-line { grid-area: 2 / 2; padding: 4px 6px; font-size: 11px; line-height: 1.24; }
  .demo-action { grid-area: 2 / 3; min-height: 28px; padding: 3px 5px; max-width: 88px; }
  .edit-timeline { padding: 7px 8px 9px; }
  .timeline-content { --label-w: 20px; }
  .guide-pointer { width: 18px; height: 22px; }
  .edit-chapters button { padding: 5px; }
  .caption-clip { font-size: 8px; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .cut-demo *, .cut-demo *::after { animation: none !important; }
  .guide-pointer { display: none; }
}


.comparison-player { overflow: hidden; background: #1d1712; color: #f5e8ce; border: 1px solid #53402d; border-radius: 5px; }
.compare-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #201a15; isolation: isolate; }
.compare-still, .compare-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-legend { position: absolute; inset: 0; pointer-events: none; }
.raw-legend { clip-path: inset(0 0 0 var(--wipe)); }
.compare-graded, .edit-legend { clip-path: inset(0 calc(100% - var(--wipe)) 0 0); }
.compare-side { position: absolute; top: 9px; padding: 4px 7px; border-radius: 2px; font: 550 11px/1.1 var(--mono); }
.edit-side { left: 9px; color: var(--ink); background: var(--honey); }
.raw-side { right: 9px; color: #fff3da; background: #201910d9; }
.wipe-handle { position: absolute; inset-block: 0; left: clamp(1px,var(--wipe),calc(100% - 1px)); width: 2px; transform: translateX(-50%); background: #ffe4a0; box-shadow: 0 0 3px #24170b; }
.wipe-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 38px; height: 32px; border-radius: 20px; border: 1px solid #4f391b; background: var(--honey); color: var(--ink); font: 700 17px/1 var(--text); }
.compare-frame input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-frame:has(input:focus-visible) { outline: 3px solid #ffd16b; outline-offset: -4px; }
.compare-tools { display: flex; align-items: center; gap: 12px; padding: 4px 6px; min-height: 40px; }
.compare-tools button { border: 0; border-radius: 3px; background: transparent; color: #fff1d2; font: 500 12px/1.3 var(--text); padding: 6px; min-height: 32px; }
.compare-tools button:hover { background: #483623; }
#compare-play span { color: #ffd16b; margin-right: 5px; }
#compare-play b { font-weight: 580; }
.compare-clock { font: 500 11px/1 var(--mono); color: #ccbca3; }
#compare-sound { margin-left: auto; }
#compare-sound[aria-pressed=true] { color: #ffd16b; }
