:root { color-scheme: dark; }
* { box-sizing: border-box; margin: 0; }
html { background: #000; }
body {
  background: #000;
  color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- hero: one long scroll track, the stage stays pinned ---------- */
.hero { position: relative; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }

/* Fixed 1920x1080 design space, scaled to the screen by scene.js */
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; will-change: transform; }
.stage .scene, .stage canvas, .stage .sharp, .stage .layer { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.scene { will-change: transform, opacity; }
#sc2 { visibility: hidden; }
.stage canvas { display: block; }
.sharp { opacity: 0; pointer-events: none; }
.layer { pointer-events: none; transform-origin: 960px 540px; will-change: transform; }
.layer img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }

/* click area for the CTA; it sits inside the button layer so it moves with it */
.hit {
  position: absolute; left: 632px; top: 811px; width: 640px; height: 127px;
  border-radius: 56px; pointer-events: auto; cursor: pointer; outline-offset: 6px;
}
.layer.button img { transition: filter .25s ease; }
.layer.button:has(.hit:hover) img,
.layer.button:has(.hit:focus-visible) img { filter: brightness(1.1) saturate(1.08); }

.hint {
  position: absolute; left: 0; right: 0; bottom: 34px; text-align: center;
  font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.7);
  pointer-events: none;
}
.hint::after {
  content: ""; display: block; width: 1px; height: 38px; margin: 12px auto 0;
  background: linear-gradient(rgba(255,255,255,.8), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.loader {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: #000;
  transition: opacity .6s ease, visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader div { width: min(260px, 60vw); text-align: center; font-size: 12px; letter-spacing: .3em; color: rgba(255,255,255,.7); }
.loader i { display: block; height: 2px; margin-top: 14px; background: #f7d11a; transform: scaleX(0); transform-origin: left; }

/* ---------- placeholder for the next scene ---------- */
.next { min-height: 100vh; display: grid; place-items: center; padding: 16px; text-align: center; background: #0b0b0b; }
.next h2 { font-size: clamp(28px, 5vw, 64px); color: #f7d11a; letter-spacing: -.01em; }
.next p { margin-top: 14px; color: rgba(255,255,255,.6); }

@media (prefers-reduced-motion: reduce) { .hint::after { animation: none; } }
