/* A small, self-contained placeholder while the full product scene decodes. */
[data-scene-load] { isolation: isolate; }
.scene-loader { display: none; }
.js [data-scene-load] > .product-scene { transition: opacity 420ms ease; }
.js [data-scene-load]:not([data-scene-load="ready"]) > .product-scene { opacity: 0; }
.js [data-scene-load]:not([data-scene-load="ready"]) > .composition-scan { visibility: hidden; }
.js .scene-loader {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center;
  justify-items: center; gap: 18px; padding: 20px; background: var(--paper);
  text-align: center; opacity: 1; visibility: visible;
  transition: opacity 420ms ease, visibility 0s;
}
.js [data-scene-load="ready"] .scene-loader {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 420ms ease, visibility 0s 420ms;
}
.scene-loader-art { width: clamp(136px, 13vw, 176px); height: auto; overflow: visible; }
.scene-loader-paper { fill: none; stroke: var(--ink); stroke-opacity: .3; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.scene-loader-lines { fill: none; stroke: var(--ink); stroke-opacity: .18; stroke-width: 2; stroke-linecap: round; }
.scene-loader-ink { fill: none; stroke: var(--vermilion); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: scene-write 3.4s ease-in-out infinite; }
.scene-loader-ink:nth-child(2) { animation-delay: 160ms; }
.scene-loader-ink:nth-child(3) { animation-delay: 320ms; }
.scene-loader-ink:nth-child(4) { animation-delay: 480ms; }
.scene-loader-caret { fill: none; stroke: var(--vermilion); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; animation: scene-breathe 3.4s ease-in-out infinite; }
.scene-loader-copy { display: grid; justify-items: center; gap: 8px; }
.scene-loader-label { font: 500 14px/1.5 var(--sans); color: var(--graphite); }
.scene-loader-rhythm { display: flex; gap: 5px; height: 3px; }
.scene-loader-rhythm i { width: 15px; height: 2px; background: var(--vermilion); opacity: .18; animation: scene-rhythm 1.7s ease-in-out infinite; }
.scene-loader-rhythm i:nth-child(2) { animation-delay: 160ms; }
.scene-loader-rhythm i:nth-child(3) { animation-delay: 320ms; }
.scene-loader-retry { margin-top: 2px; padding: 10px 16px; min-height: 44px; border: 1px solid var(--hairline); border-radius: 4px; font: 500 13px/1.4 var(--sans); color: var(--ink); background: transparent; cursor: pointer; }
.scene-loader-retry[hidden] { display: none; }
.scene-loader-retry:hover { border-color: var(--ink); }
.scene-loader-retry[aria-disabled="true"] { opacity: .6; cursor: wait; }
.scene-loader-retry:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }
[data-scene-load="ready"] .scene-loader *,
[data-scene-load="error"] .scene-loader * { animation: none; }
[data-scene-load="error"] .scene-loader-ink { stroke-dashoffset: 0; opacity: .35; }
[data-scene-load="error"] .scene-loader-rhythm { visibility: hidden; }
@keyframes scene-write {
  0%, 12% { stroke-dashoffset: 1; opacity: 0; }
  18% { opacity: .75; }
  55%, 76% { stroke-dashoffset: 0; opacity: .75; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes scene-breathe {
  0%, 100% { transform: translateY(0); opacity: .65; }
  45%, 60% { transform: translateY(-4px); opacity: 1; }
}
@keyframes scene-rhythm { 0%, 70%, 100% { opacity: .18; } 35% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-scene-load] > .product-scene, .js .scene-loader,
  .js [data-scene-load="ready"] .scene-loader { transition: none; }
  .scene-loader * { animation: none !important; }
  .scene-loader-ink { stroke-dashoffset: 0; opacity: .6; }
}
