/* Canvas section (round di1, 2026-11-01): Web clips and Notes and stickies act out their line, like the
   Browser, Folders and Comments cards beside them, with the same 34px cursor as Image to prompt's scenes
   (.dd-pointer and .dd-cursor in doodle-icons.css). Each scene loops while its card is on screen, like its
   neighbours, and stops when it scrolls away. Nothing plays with reduced motion.
   - Web clips (5.6s): the clip is selected, the cursor drags its bottom-right corner in, then its top-left,
     framing the first row of posters, and the view reframes onto it (1.8×) before easing back.
   - Notes and stickies (5.6s): the view pushes in on the note (1.3×), the cursor clicks below the last line
     and a new one types out; then it clicks the board and a sticky drops in. */
.home-main .cv-scene { position: relative; container-type: inline-size; }
.home-main .cv-zoom { position: absolute; inset: 0; }
.home-main .cv-zoom > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.home-main .cv-scene .dd-cursor { width: 30px; height: 30px; }

/* Web clips: the selection frame, at the clip's own edges in the capture (1–95.5% × 3.8–94%). */
.home-main .cv-frame {
  position: absolute; top: 3.8%; left: 1%; right: 4.5%; bottom: 6%; opacity: 0;
  box-shadow: 0 0 0 2px #3264b7; border-radius: 4px;
}
.home-main .cv-frame i { position: absolute; width: 9px; height: 9px; margin: -5px; background: #faf9f6; box-shadow: inset 0 0 0 1.5px #3264b7; border-radius: 2px; }
.home-main .cv-frame i:nth-child(1) { left: 0; top: 0; } .home-main .cv-frame i:nth-child(2) { right: 0; top: 0; margin-right: -5px; }
.home-main .cv-frame i:nth-child(3) { left: 0; bottom: 0; margin-bottom: -5px; } .home-main .cv-frame i:nth-child(4) { right: 0; bottom: 0; margin: 0 -5px -5px 0; }
.home-main .cv-clips { --px: 78%; --py: 72%; }
.home-main .cv-clips .cv-zoom { transform-origin: 0 0; }

/* Notes and stickies: the new line, set like the note's own text (Work Sans, about 25px on the 1040px capture,
   from x 8.5%, the next 39px line), and a new sticky in the capture's yellow (#fbf1b0). */
.home-main .cv-line { position: absolute; left: 8.5%; top: 43.8%; display: flex; align-items: center; white-space: nowrap; font: 400 2.4cqi/1.3 var(--font-sans); color: #121a2a; }
.home-main .cv-type { clip-path: inset(0 100% 0 0); }
.home-main .cv-caret { width: 2px; height: 1.15em; margin-left: 1px; background: #121a2a; opacity: 0; }
.home-main .cv-sticky {
  position: absolute; left: 6%; top: 77%; width: 25%; height: 20%; padding: 1.6cqi 1.8cqi; border-radius: 6px;
  background: #fbf1b0; box-shadow: 0 0 0 1px rgb(18 26 42 / 0.08), 0 6px 14px rgb(18 26 42 / 0.1);
  font: 400 2.4cqi/1.35 var(--font-sans); color: #121a2a; opacity: 0;
}
.home-main .cv-notes { --px: 72%; --py: 30%; }
.home-main .cv-notes .cv-zoom { transform-origin: 30% 42%; }

@keyframes cv-clips-frame {
  0%, 4% { opacity: 0; top: 3.8%; left: 1%; right: 4.5%; bottom: 6%; }
  8%, 18% { opacity: 1; top: 3.8%; left: 1%; right: 4.5%; bottom: 6%; }
  34%, 42% { opacity: 1; top: 3.8%; left: 1%; right: 44%; bottom: 18%; }
  52%, 56% { opacity: 1; top: 44.5%; left: 2%; right: 44%; bottom: 18%; }
  62% { opacity: 0; top: 44.5%; left: 2%; right: 44%; bottom: 18%; }
  100% { opacity: 0; top: 3.8%; left: 1%; right: 4.5%; bottom: 6%; }
}
@keyframes cv-clips-zoom { 0%, 56% { transform: none; } 66%, 84% { transform: translate(-2.2%, -63.85%) scale(1.8); } 96%, 100% { transform: none; } }
@keyframes cv-clips-ptr {
  0% { transform: translate(78%, 72%); } 16%, 18% { transform: translate(95.5%, 94%); } 34% { transform: translate(56%, 82%); }
  40%, 42% { transform: translate(1%, 3.8%); } 52%, 56% { transform: translate(2%, 44.5%); } 66% { transform: translate(1.4%, 16.2%); }
  80%, 100% { transform: translate(78%, 72%); }
}
@keyframes cv-clips-click { 0%, 16% { transform: none; } 18%, 34% { transform: scale(0.86); } 36%, 40% { transform: none; } 42%, 52% { transform: scale(0.86); } 54%, 100% { transform: none; } }

@keyframes cv-notes-zoom { 0%, 12% { transform: none; } 22%, 58% { transform: scale(1.3); } 68%, 100% { transform: none; } }
@keyframes cv-notes-ptr {
  0% { transform: translate(72%, 30%); } 14% { transform: translate(12%, 46%); } 22%, 26% { transform: translate(6.6%, 47.2%); }
  34%, 56% { transform: translate(44%, 64%); } 66%, 72% { transform: translate(16%, 84%); } 84% { transform: translate(40%, 96%); }
  100% { transform: translate(72%, 30%); }
}
@keyframes cv-notes-click { 0%, 22% { transform: none; } 24% { transform: scale(0.8); } 27%, 68% { transform: none; } 70% { transform: scale(0.8); } 73%, 100% { transform: none; } }
@keyframes cv-notes-type { 0%, 30% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(32, end); } 52%, 94% { clip-path: inset(0 0 0 0); opacity: 1; } 98%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes cv-notes-caret { 0%, 24% { opacity: 0; } 25%, 27% { opacity: 1; } 28%, 52% { opacity: 0; } 54%, 57% { opacity: 1; } 59%, 61% { opacity: 0; } 63%, 66% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes cv-notes-sticky { 0%, 70% { opacity: 0; transform: translateY(-18%) scale(1.06); } 78%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .home-main .cv-clips.is-on .cv-frame { animation: cv-clips-frame 5.6s var(--ease-in-out-soft) infinite; }
  .home-main .cv-clips.is-on .cv-zoom { animation: cv-clips-zoom 5.6s var(--ease-in-out-soft) infinite; }
  .home-main .cv-clips.is-on .dd-pointer { animation: cv-clips-ptr 5.6s var(--ease-in-out-soft) infinite; }
  .home-main .cv-clips.is-on .dd-cursor { animation: cv-clips-click 5.6s var(--ease-in-out-soft) infinite; }
  .home-main .cv-notes.is-on .cv-zoom { animation: cv-notes-zoom 5.6s var(--ease-in-out-soft) infinite; }
  .home-main .cv-notes.is-on .dd-pointer { animation: cv-notes-ptr 5.6s var(--ease-in-out-soft) infinite; }
  .home-main .cv-notes.is-on .dd-cursor { animation: cv-notes-click 5.6s var(--ease-in-out-soft) infinite; }
  .home-main .cv-notes.is-on .cv-type { animation: cv-notes-type 5.6s linear infinite; }
  .home-main .cv-notes.is-on .cv-caret { animation: cv-notes-caret 5.6s linear infinite; }
  .home-main .cv-notes.is-on .cv-sticky { animation: cv-notes-sticky 5.6s var(--ease-out-soft) infinite; }
}
