:root {
  --ink: #26262a;
  --ink-soft: rgba(38, 38, 42, .62);
  --paper: rgba(250, 249, 246, .82);
  --photo: 1;
  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #ecebe7; }
body { overscroll-behavior: none; }

#scene, #photo, #empty { position: fixed; display: block; }
#scene, #empty { inset: 0; width: 100vw; height: 100vh; height: 100dvh; }
#photo, #empty { pointer-events: none; user-select: none; opacity: 0; will-change: opacity; }
.spacer { height: 800vh; }

#ui { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
body.ready #ui { opacity: 1; }

.title { position: absolute; left: clamp(16px, 3vw, 40px); top: clamp(14px, 3vh, 34px); }
.title h1 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.title p { margin: 6px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.title h1, .title p { text-shadow: 0 0 14px rgba(255, 255, 255, .7); }

.blend {
  position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  pointer-events: auto; opacity: var(--photo); transition: opacity .3s ease; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .08);
}
#ui.walking .blend { pointer-events: none; }
.blend .track { position: relative; display: inline-flex; align-items: center; }
.blend .stop { position: absolute; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: rgba(38, 38, 42, .45); pointer-events: none; }
.blend .track .stop:nth-of-type(1) { margin-left: 5px; } .blend .track .stop:nth-of-type(3) { margin-left: -10px; }
.blend .mid { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); font-size: 9px; letter-spacing: .12em; color: var(--ink-soft); pointer-events: none; }
.blend input { width: clamp(150px, 30vw, 300px); accent-color: #26262a; margin: 0; position: relative; z-index: 1; }
.blend input { -webkit-appearance: none; appearance: none; height: 2px; background: rgba(38, 38, 42, .25); border-radius: 2px; outline: none; }
.blend input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid rgba(38, 38, 42, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
.blend input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid rgba(38, 38, 42, .55); cursor: grab; }

.hint { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(14px, 3vh, 34px); margin: 0;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-shadow: 0 0 14px rgba(255, 255, 255, .7); }
.hint .hint-walk { display: none; }
#ui.walking .hint .hint-photo { display: none; }
#ui.walking .hint .hint-walk { display: inline; }

.rail { position: absolute; right: clamp(10px, 1.6vw, 22px); top: 50%; height: 26vh; width: 1px; transform: translateY(-50%); background: rgba(38, 38, 42, .18); }
#progress { width: 100%; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(0); }

.loading { position: fixed; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); background: #ecebe7; transition: opacity .8s ease; pointer-events: none; }
body.ready .loading { opacity: 0; }

@media (max-width: 640px) {
  .title p { font-size: 11px; }
  .hint { top: auto; bottom: calc(clamp(18px, 4vh, 40px) + 58px); right: 50%; transform: translateX(50%); white-space: nowrap;
    color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
  .blend { gap: 10px; padding: 10px 14px; }
}

/* offline check renders */
body.check, body.check html { overflow: hidden; }
body.check #ui, body.check .spacer, body.check .loading, body.check #photo, body.check #empty { display: none; }
body.check #scene { position: static; }
