:root { color-scheme: light; background: #fff; color: #596269; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: #fff; overflow: hidden; overscroll-behavior: none; }
main { min-height: 100svh; display: grid; place-items: center; position: relative; overflow: hidden; }
.scene { position: relative; width: min(92vw, 1280px, calc(92svh * 1.5)); aspect-ratio: 3 / 2; margin: 0; transform: translate(1.5vw, 2vh); isolation: isolate; }
.pond { display: block; pointer-events: none; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; filter: saturate(.94) contrast(.985); }
#motion { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }
.still-person { position: absolute; left: 13.35%; top: 31.93%; width: 16.93%; aspect-ratio: 3 / 4; background: url('/assets/person.webp?rev=6') 0 0 / 400% 300% no-repeat; mix-blend-mode: multiply; opacity: 1; }
.motion-ready .still-person { opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .scene { width: min(108vw, 760px, calc(92svh * 1.5)); transform: translate(4vw, 2vh); flex-shrink: 0; }
}
@media (max-width: 380px) and (orientation: portrait) {
  .scene { width: min(100vw, calc(90svh * 1.5)); transform: translate(0, 1vh); }
}
@media (max-width: 640px) and (orientation: landscape) {
  .scene { width: min(94vw, 760px, calc(88svh * 1.5)); transform: translate(1vw, 0); }
}
@media (prefers-reduced-motion: reduce) {
  #motion { display: none; }
  .motion-ready .still-person { opacity: 1; }
}

.scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-fallback[hidden], .load-retry[hidden] { display: none; }
.assets-failed .pond, .assets-failed #motion, .assets-failed .still-person { visibility: hidden; }
.load-retry { position: absolute; inset: 45% 0 auto; text-align: center; font-size: 14px; color: #596269; }
.load-retry a { color: inherit; }
