/* copied from site/css/site.css (DAW illustrations, js/daw.js); colours folded to one blue hue for the draft */
/* DAW illustrations (js/daw.js): a dark screen inside the white page, in the layout of a clip-launcher view and a
   timeline view. Greys and the bright clip colours belong to the screen only; the page keeps white / black / blue. */
.sec .wrap > .daw { max-width: 760px; }
.daw { margin-top: 8px; padding: 6px; background: #1b1b1b; color: #c4c4c4; font: 600 11px/1 var(--sans); user-select: none; }
.sv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .7fr); gap: 1px; background: #121212; }
.daw .th { display: flex; align-items: center; height: 22px; padding: 0 6px; background: var(--c); color: #101010; font-weight: 700; white-space: nowrap; overflow: hidden; }
.daw .th.main { background: #3a3a3a; color: #c4c4c4; }
.daw .sl { position: relative; height: 24px; background: #2e2e2e; }
.daw .sl:empty::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -4px 0 0 -4px; border: 1px solid #555; } /* empty slot */
.daw .sc { display: flex; align-items: center; padding: 0 6px; background: #262626; }
.daw .scene { display: flex; align-items: center; gap: 6px; color: #9a9a9a; }
.daw .scene::before, .daw .clip::before { content: ""; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; flex: none; }
.sv .clip { position: absolute; inset: 1px; display: flex; align-items: center; gap: 6px; padding: 0 6px; overflow: hidden; background: var(--c); color: #101010; white-space: nowrap; }
.sv .clip .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #101010; }
.daw .mx { display: flex; align-items: center; gap: 4px; height: 52px; padding: 6px; background: #262626; }
.daw .mx b, .daw .mx i { display: grid; place-items: center; width: 16px; height: 14px; font: 700 9px/1 var(--sans); font-style: normal; }
.daw .mx b { background: #f0b43c; color: #101010; }
.daw .mx i { background: #3a3a3a; color: #9a9a9a; }
.daw .fader { position: relative; flex: 1; align-self: stretch; margin-left: 4px; max-width: 6px; background: #121212; }
.daw .fader::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--v); background: #3ddc6b; opacity: .35; }
.av { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 1px; background: #121212; }
.av .tl { position: relative; overflow: hidden; background: #262626; }
.av .ruler { position: relative; height: 18px; background: #2e2e2e; }
.av .ruler span { position: absolute; top: 4px; padding-left: 3px; border-left: 1px solid #6a6a6a; color: #9a9a9a; font-size: .9em; }
.av .loopbar { position: absolute; bottom: 0; height: 4px; background: #9a9a9a; }
.av .locs { position: relative; height: 16px; background: #222; }
.av .loc { position: absolute; top: 2px; display: flex; align-items: center; gap: 3px; color: #d8d8d8; font-size: .9em; white-space: nowrap; }
.av .loc::before { content: ""; border-top: 5px solid #d8d8d8; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.av .lane { position: relative; height: 26px; border-top: 1px solid #1b1b1b; background: repeating-linear-gradient(90deg, #2b2b2b 0 calc(100% * 16 / 152 - 1px), #222 calc(100% * 16 / 152 - 1px) calc(100% * 16 / 152)); } /* a line every 16 bars */
.av .clip { position: absolute; top: 1px; bottom: 1px; padding: 2px 4px; overflow: hidden; background: color-mix(in srgb, var(--c) 72%, #1b1b1b); border-top: 7px solid var(--c); box-shadow: inset 1px 0 0 #1b1b1b; background-image: repeating-linear-gradient(90deg, rgba(16, 16, 16, .45) 0 5px, transparent 5px 11px); background-size: 100% 2px; background-position: 0 85%; background-repeat: no-repeat; color: #101010; font-size: .85em; line-height: 1; white-space: nowrap; transform-origin: 0 50%; }
.av .clip::before { display: none; }
.av .hds { background: #2e2e2e; }
.av .len { display: flex; align-items: center; height: 34px; padding: 0 6px; background: #222; color: #e8e8e8; line-height: 1.2; }
.av .hd { display: flex; align-items: center; height: 26px; padding: 0 6px; border-top: 1px solid #1b1b1b; border-left: 5px solid var(--c); background: #333; }
.av .ph { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #e8e8e8; opacity: 0; }
/* mixer (js/daw.js mixer): a spectrum line on the main out, strips with pan knob, meters and fader, one EQ device */
.mxv { display: grid; gap: 1px; background: #121212; }
.mxv .spec { display: block; width: 100%; height: 40px; background: #222; }
.mxv svg path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mxv .spec path { stroke: #d8d8d8; }
.mxv .strips { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; }
.mxv .st { display: grid; grid-template-rows: 22px 30px 96px 22px; background: #262626; }
.mxv .pan { position: relative; place-self: center; width: 18px; height: 18px; border: 2px solid #555; border-radius: 50%; }
.mxv .pan i { position: absolute; left: 50%; top: -2px; bottom: 50%; width: 2px; margin-left: -1px; background: #d8d8d8; transform-origin: 50% 100%; }
.mxv .lv { display: flex; justify-content: center; gap: 2px; padding: 6px 0 4px; }
.mxv .mt { position: relative; width: 5px; background: #121212; }
.mxv .mt i { position: absolute; inset: 0; background: linear-gradient(to top, #3ddc6b 0 62%, #f0b43c 62% 84%, #ff4a3a 84%); clip-path: inset(100% 0 0); }
.mxv .fd { position: relative; width: 14px; margin-left: 4px; background: linear-gradient(#555, #555) 50% 0 / 2px 100% no-repeat; }
.mxv .fd i { position: absolute; left: 0; right: 0; height: 6px; margin-bottom: -3px; background: #c4c4c4; }
.mxv .bt { display: flex; justify-content: center; align-items: center; gap: 4px; }
.mxv .bt b, .mxv .bt i { display: grid; place-items: center; width: 16px; height: 14px; font: 700 9px/1 var(--sans); font-style: normal; }
.mxv .bt b { background: #f0b43c; color: #101010; }
.mxv .bt i { background: #3a3a3a; color: #9a9a9a; }
.mxv .dev { display: grid; grid-template-columns: auto minmax(0, 1fr); background: #262626; }
.mxv .dt { padding: 6px 8px; background: #333; color: #d8d8d8; }
.mxv .eqv svg { display: block; width: 100%; height: 50px; background: #1e1e1e; }
.mxv .zero { stroke: #3a3a3a; }
.mxv .eq { stroke: #ffa529; }
.mxv .eqv { position: relative; }
.mxv .eqv > i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #ffa529; }
/* steps: js/daw.js adds a1 (first request done) and a2 (second) on the .daw; rs dims the screen before a loop
   restarts, cut drops transitions for that one reset frame. Motion only when allowed; otherwise the final state. */
@media (prefers-reduced-motion: no-preference) {
  .sv, .av, .mxv { transition: opacity .5s ease; }
  .daw.rs .sv, .daw.rs .av { opacity: 0; }
  .daw.cut *, .daw.cut *::before, .daw.cut *::after { transition: none !important; animation: none !important; }
  .sv .clip.add, .sv .clip.v2 { opacity: 0; transform: scale(.85); transition: opacity .2s ease var(--d), transform .25s cubic-bezier(.2, .9, .3, 1.3) var(--d); }
  .daw.a1 .sv .clip.add, .daw.a2 .sv .clip.v2 { opacity: 1; transform: none; }
  .daw.a1 .sv .clip.dr { animation: redo .5s ease .1s; }
  .daw .fader::after { transition: height .8s cubic-bezier(.3, .7, .3, 1) .2s; }
  .sv .clip.play::before { animation: blink 1s steps(1) infinite; }
  .sv .clip.play .prog { animation: prog 2s linear infinite; }
  .daw:not(.a1) .sv .clip.add::before, .daw:not(.a1) .sv .clip.add .prog { animation: none; }
  .av .clip:not(.loop) { transform: scaleX(0); transition: transform .45s cubic-bezier(.3, .7, .3, 1) var(--d); }
  .daw.a1 .av .clip:not(.loop) { transform: none; }
  .daw.a2 .av .clip.cb { animation: regrow .6s cubic-bezier(.3, .7, .3, 1); }
  .av .loop, .av .loopbar { transition: opacity .3s ease .2s; }
  .daw.a1 .av .loop, .daw.a1 .av .loopbar { opacity: 0; }
  .av .loc { opacity: 0; transition: opacity .3s ease var(--d); }
  .daw.a1 .av .loc { opacity: 1; }
  .av .len span { opacity: 0; transition: opacity .4s ease 3.8s; }
  .daw.a1 .av .len span { opacity: 1; }
  .daw.a1 .av .ph { opacity: 1; animation: head 3.6s linear .4s both; }
  .ask .cr { animation: blink2 1s steps(1) infinite; }
  .ask .re { transition: opacity .35s ease; }
}
.daw.a1 .fader::after { height: var(--v1); }
@media (prefers-reduced-motion: reduce) { .av .loop, .av .loopbar { display: none; } }
@keyframes prog { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { color: #3ddc6b; } }
@keyframes blink2 { 50% { opacity: 0; } }
@keyframes head { from { left: 0; } to { left: 100%; } }
@keyframes redo { 0% { transform: scale(1); filter: brightness(1); } 35% { transform: scale(.92); filter: brightness(1.35); } 100% { transform: none; filter: none; } }
@keyframes regrow { 0% { transform: scaleX(0); filter: brightness(1.4); } 100% { transform: none; filter: none; } }
/* the chat line under each screen: what you type (the app's ▸ prompt), then her answer with the page's speech mark */
.ask { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font: 600 12px/1.3 var(--sans); }
.ask p { margin: 0; }
.ask .me { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 30px; padding: 0 10px; background: #262626; color: #e8e8e8; }
.ask .pr { color: #9a9a9a; }
.ask .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask .cr { flex: none; width: 1px; height: 14px; margin-left: -6px; background: #e8e8e8; }
.ask .me.sent { color: #9a9a9a; }
.ask .me.sent .cr { visibility: hidden; }
.ask .re { flex: 0 1 auto; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; background: var(--white); color: var(--ink); font-weight: 700; white-space: nowrap; opacity: 0; }
.ask .re::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--blue); }
.ask .re.show { opacity: 1; }
.mxv .mt i { background: linear-gradient(to top, #6f86ff 0 70%, #c8d2ff 70%); }
.daw .fader::after { background: #6f86ff; }
.daw .mx b, .mxv .bt b { background: #c8d2ff; }
.mxv .eq { stroke: #6f86ff; } .mxv .eqv > i { background: #6f86ff; }
.sv .clip.play::before { animation: none; }
