/* Neutral grey card palette (cool, no warm tint): card fill = block fill, hairlines sit just off it. JS reads these too. */
:root { --art-bg: #fafafa; --art-folder: #f6f6f6; --art-track: #ffffff; --art-ink: #000; --art-hot: #3a3a3a; --art-border: #d9d9d9; --art-shadow: none; --art-accent: #d6a630; }
:root[data-theme="dark"] { --art-bg: #1d1d1d; --art-folder: #191919; --art-track: #222222; --art-ink: #7d7d7d; --art-hot: #bdbdbd; --art-border: #2a2a2a; --art-shadow: none; --art-accent: #e2b65c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --art-bg: #1d1d1d; --art-folder: #191919; --art-track: #222222; --art-ink: #7d7d7d; --art-hot: #bdbdbd; --art-border: #2a2a2a; --art-shadow: none; --art-accent: #e2b65c; } }

/* Isometric outline art. One camera, 1.5px lines in the text colour, brass for the one thing that moves. */
.art {
  aspect-ratio: 3 / 2; border: 1px solid var(--art-border); border-radius: 14px; box-shadow: var(--art-shadow);
  background: var(--art-bg); color: var(--text); overflow: hidden;
}
.art svg { display: block; width: 100%; height: 100%; }
.art .o, .art .g, .art .t, .art .tick { fill: none; stroke: currentColor; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.art .o { fill: var(--art-bg); stroke-width: 1; }
.art .g { stroke-width: 1; opacity: .6; }
.art .t { vector-effect: none; }
.art .tick { stroke: var(--art-accent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: none; }

/* One block lifts at a time, is edited, and seats back exactly. A 14s loop: the to-do, then the table. */
.art.play .lift-a { animation: lift 14s cubic-bezier(.4, 0, .2, 1) infinite; }
.art.play .lift-b { animation: lift 14s cubic-bezier(.4, 0, .2, 1) 7s infinite; }
.art.play .lift-a .o, .art.play .lift-b .o { animation: brass 14s linear infinite; }
.art.play .lift-b .o { animation-delay: 7s; }
.art.play .lift-a .tick { animation: draw 14s ease-in-out infinite; }
@keyframes lift {
  0% { transform: translateY(0); }
  2.5% { transform: translateY(-16px); }
  7% { transform: translateY(-16px); }
  9.5% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
@keyframes brass {
  0%, 11% { stroke: currentColor; }
  2.5%, 8% { stroke: var(--art-accent); }
  100% { stroke: currentColor; }
}
@keyframes draw {
  0%, 2.5% { stroke-dashoffset: 1; }
  5.5%, 8% { stroke-dashoffset: 0; }
  9.5%, 100% { stroke-dashoffset: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .art.play .lift-a, .art.play .lift-b, .art.play .o, .art.play .tick { animation: none; }
  .art .tick { stroke-dashoffset: 0; }
}

/* Shown only until the 3D frame loads (or if WebGL is unavailable). */
.ph-note { display: grid; place-content: center; height: 100%; padding: 1.5rem; color: var(--muted); font-size: .875rem; text-align: center; }
