:root {
  /* Design typography tokens: IBM Plex Mono* Mono** Monoo serial numbers; Roboto Flex* Flex** Flexx pulled from scanline noise; Roboto Flex letters dilating and compressing in sync with blinks and glitches.; “eyes.cash” wordmark; Space Grotesk* Grotesk** Groteskk short explanatory fragments. */
  --void: #050505;
  --bone: #F4F1EA;
  --silver: #B8B8B8;
  --charcoal: #1A1A1A;
  --flash: #FFFFFF;
  --graphite: #0B0D10;
  --display: "Roboto Flex", Roboto, system-ui, sans-serif;
  --text: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fluid-xl: clamp(5rem, 17vw, 19rem);
  --fluid-title: clamp(4rem, 14vw, 16rem);
  --fluid-copy: clamp(0.86rem, 1.2vw, 1.25rem);
  --pupil-x: 0px;
  --pupil-y: 0px;
  --open-amount: 1;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  background:
    radial-gradient(circle at 50% 18%, rgba(184,184,184,0.08), transparent 24rem),
    linear-gradient(180deg, var(--void), var(--graphite) 45%, var(--void));
  font-family: var(--text);
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: difference;
  opacity: 0.38;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
  background:
    radial-gradient(circle at 18% 34%, transparent 0 18%, rgba(244,241,234,0.035) 18.2% 18.6%, transparent 18.8%),
    radial-gradient(circle at 72% 46%, transparent 0 24%, rgba(184,184,184,0.03) 24.2% 24.7%, transparent 25%),
    conic-gradient(from 88deg at 50% 50%, transparent, rgba(244,241,234,0.04), transparent 18%, transparent 100%);
  animation: driftGrid 18s linear infinite;
}

.stage { position: relative; z-index: 2; }

.scene {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.2rem, 3vw, 3rem);
  background: var(--void);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(184,184,184,0.055) 14.2% 14.4%, transparent 14.6% 28%, rgba(244,241,234,0.03) 28.2% 28.4%, transparent 28.6% 72%, rgba(244,241,234,0.035) 72.2% 72.4%, transparent 72.6%),
    radial-gradient(ellipse at center, transparent 0 33%, rgba(26,26,26,0.52) 65%, rgba(5,5,5,1));
}

.dot-nav {
  position: fixed;
  top: 50%;
  right: clamp(0.8rem, 2vw, 2rem);
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--silver);
  border-radius: 50%;
  background: var(--void);
  box-shadow: inset 0 0 0 0.12rem var(--void), 0 0 1rem transparent;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.nav-dot span { display: none; }
.nav-dot.is-active { background: var(--flash); transform: scale(1.35, 0.62); box-shadow: 0 0 1.4rem rgba(255,255,255,0.7); }

.flash {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--flash);
  opacity: 0;
  mix-blend-mode: difference;
}

.flash.is-flashing { animation: flashFrame 180ms steps(2, end); }

.cursor-eye {
  position: fixed;
  left: 0;
  top: 0;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--silver);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: 80;
  background: radial-gradient(circle, var(--flash) 0 12%, transparent 13%), var(--charcoal);
  box-shadow: 0 0 1rem rgba(244,241,234,0.25);
  mix-blend-mode: difference;
}

.dust {
  position: fixed;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--bone);
  pointer-events: none;
  z-index: 70;
  opacity: 0.8;
  animation: dustFade 680ms ease-out forwards;
}

.aurora {
  position: absolute;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 15%, rgba(244,241,234,0.34) 23%, rgba(184,184,184,0.1) 31%, transparent 42%),
    linear-gradient(82deg, transparent 0 48%, rgba(255,255,255,0.18) 54%, rgba(11,13,16,0.24) 62%, transparent 72%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: auroraSway 9s ease-in-out infinite alternate;
}

.top-veil { top: -12vh; left: -5vw; right: -5vw; height: 34vh; opacity: 0.7; }

.scan-window {
  width: min(72vmin, 48rem);
  height: min(72vmin, 48rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,241,234,0.05), transparent 62%);
  mask-image: radial-gradient(circle, black 0 70%, transparent 71%);
}

.coin-eye {
  position: relative;
  width: min(54vmin, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(244,241,234,0.22) 0 1px, transparent 1px 9px),
    conic-gradient(from 12deg, var(--silver), var(--charcoal), var(--bone), var(--graphite), var(--silver));
  box-shadow: inset 0 0 3rem rgba(5,5,5,0.9), 0 0 4rem rgba(244,241,234,0.16), 0 0 0 1px rgba(244,241,234,0.18);
  transform: scaleY(calc(0.08 + (var(--open-amount) * 0.92)));
  transition: transform 600ms cubic-bezier(.2,.8,.1,1);
}

.hero-eye { animation: eyeOpen 1800ms cubic-bezier(.16,.9,.18,1) both, coinWobble 7s ease-in-out infinite 2s; }

.ring { position: absolute; inset: 10%; border-radius: 50%; border: 1px dashed rgba(244,241,234,0.32); animation: spin 16s linear infinite; }
.ring-two { inset: 24%; border-style: solid; opacity: 0.44; animation-duration: 9s; animation-direction: reverse; }

.pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(circle at 48% 38%, var(--flash) 0 7%, var(--void) 8% 100%);
  transform: translate(calc(-50% + var(--pupil-x)), calc(-50% + var(--pupil-y)));
  box-shadow: 0 0 1rem rgba(255,255,255,0.28), inset 0 0 2rem #000;
  transition: transform 80ms linear;
}

.lid { position: absolute; left: -5%; right: -5%; height: 51%; background: var(--void); z-index: 5; }
.lid-top { top: -2%; transform-origin: top; animation: lidTop 1800ms cubic-bezier(.16,.9,.18,1) both, blinkTop 6s ease-in-out 3s infinite; }
.lid-bottom { bottom: -2%; transform-origin: bottom; animation: lidBottom 1800ms cubic-bezier(.16,.9,.18,1) both, blinkBottom 6s ease-in-out 3s infinite; }

.wordmark, .final-domain {
  position: absolute;
  font-family: var(--display);
  font-size: var(--fluid-xl);
  font-variation-settings: "wght" 760, "wdth" 118, "opsz" 96;
  letter-spacing: -0.09em;
  line-height: 0.76;
  color: var(--bone);
  bottom: clamp(2rem, 7vh, 5rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: wordDilate 5s ease-in-out infinite alternate;
}

.wordmark i, .final-domain i { font-style: normal; display: inline-block; animation: dotBlink 4.8s steps(1, end) infinite; }

.glitch-text { position: relative; text-shadow: 0.035em 0 rgba(184,184,184,0.5), -0.025em 0 rgba(255,255,255,0.22); }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch-text::before { color: var(--flash); transform: translate(-0.035em, -0.015em); clip-path: inset(0 0 58% 0); }
.glitch-text::after { color: var(--silver); transform: translate(0.045em, 0.02em); clip-path: inset(48% 0 0 0); }
.glitch-text.is-tearing::before, .glitch-text.is-tearing::after { animation: textTear 220ms steps(2, end); }

.rim-caption {
  position: absolute;
  max-width: 18rem;
  font-size: var(--fluid-copy);
  line-height: 1.25;
  color: var(--silver);
  letter-spacing: 0.02em;
}
.rim-caption.left { left: clamp(1.2rem, 6vw, 6rem); top: 32vh; transform: rotate(-8deg); }
.rim-caption.right { right: clamp(1.2rem, 8vw, 8rem); top: 30vh; transform: rotate(9deg); text-align: right; }
.rim-caption.lower { top: auto; bottom: 24vh; }

.micro-code {
  position: absolute;
  left: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 3rem);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.8vw, 0.82rem);
  color: var(--silver);
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.scene-count { background: radial-gradient(ellipse at center, var(--graphite), var(--void) 70%); }
.receipt-corridor { position: absolute; inset: 0; perspective: 900px; transform-style: preserve-3d; }
.receipt-strip {
  position: absolute;
  width: min(24rem, 42vw);
  height: clamp(5rem, 12vh, 8rem);
  background: linear-gradient(90deg, transparent, rgba(244,241,234,0.94) 12% 88%, transparent);
  color: var(--void);
  overflow: hidden;
  box-shadow: 0 0 2rem rgba(244,241,234,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--mono);
  text-transform: uppercase;
  animation: receiptFloat 7s ease-in-out infinite;
}
.receipt-strip::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(5,5,5,0.17) 7px 8px); }
.receipt-strip b { font-family: var(--text); font-size: clamp(0.72rem, 1.4vw, 1.2rem); position: relative; }
.receipt-strip em { font-style: normal; font-size: 0.72rem; position: relative; color: var(--charcoal); }
.strip-a { left: 5vw; top: 20vh; transform: rotateY(52deg) rotateZ(-7deg); }
.strip-b { right: 7vw; top: 34vh; transform: rotateY(-48deg) rotateZ(6deg); animation-delay: -1s; }
.strip-c { left: 16vw; bottom: 20vh; transform: rotateY(44deg) rotateZ(9deg); animation-delay: -2s; }
.strip-d { right: 18vw; bottom: 12vh; transform: rotateY(-38deg) rotateZ(-5deg); animation-delay: -3s; }

.scene-title {
  font-family: var(--display);
  font-size: var(--fluid-title);
  font-variation-settings: "wght" 820, "wdth" 72, "opsz" 120;
  color: var(--bone);
  letter-spacing: -0.12em;
  line-height: 0.78;
  z-index: 3;
  animation: titleCompress 6s ease-in-out infinite alternate;
}

.cash-drawer-icon {
  position: absolute;
  left: 12vw;
  bottom: 12vh;
  width: 5rem;
  height: 2.7rem;
  border: 1px solid var(--silver);
  background: var(--charcoal);
}
.cash-drawer-icon span { position: absolute; left: 50%; top: -35%; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--bone); transform: translateX(-50%) scaleY(0.28); animation: drawerBlink 4s ease-in-out infinite; }

.scene-watch { background: radial-gradient(circle at 62% 44%, rgba(184,184,184,0.07), transparent 31rem), var(--void); }
.dot-field { position: absolute; inset: 0; }
.dot-field span {
  position: absolute;
  width: clamp(0.7rem, 2vw, 1.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(244,241,234,0.55);
  background: radial-gradient(circle, var(--flash) 0 11%, var(--void) 12% 36%, var(--silver) 37% 38%, transparent 39%);
  transform: scaleY(1);
  animation: dotBlink 5s steps(1, end) infinite, dotDrift 12s ease-in-out infinite alternate;
}
.dot-field span:nth-child(1) { left: 7%; top: 14%; animation-delay: -0.3s; }
.dot-field span:nth-child(2) { left: 21%; top: 8%; animation-delay: -1.1s; }
.dot-field span:nth-child(3) { left: 42%; top: 18%; animation-delay: -2.2s; }
.dot-field span:nth-child(4) { left: 69%; top: 9%; animation-delay: -3.1s; }
.dot-field span:nth-child(5) { left: 84%; top: 21%; animation-delay: -1.7s; }
.dot-field span:nth-child(6) { left: 12%; top: 38%; animation-delay: -4.2s; }
.dot-field span:nth-child(7) { left: 29%; top: 33%; animation-delay: -2.8s; }
.dot-field span:nth-child(8) { left: 57%; top: 32%; animation-delay: -0.9s; }
.dot-field span:nth-child(9) { left: 74%; top: 41%; animation-delay: -3.9s; }
.dot-field span:nth-child(10) { left: 92%; top: 36%; animation-delay: -2.4s; }
.dot-field span:nth-child(11) { left: 4%; top: 61%; animation-delay: -1.8s; }
.dot-field span:nth-child(12) { left: 24%; top: 55%; animation-delay: -3.4s; }
.dot-field span:nth-child(13) { left: 47%; top: 62%; animation-delay: -4.9s; }
.dot-field span:nth-child(14) { left: 65%; top: 58%; animation-delay: -0.5s; }
.dot-field span:nth-child(15) { left: 83%; top: 66%; animation-delay: -2.1s; }
.dot-field span:nth-child(16) { left: 15%; top: 79%; animation-delay: -3.5s; }
.dot-field span:nth-child(17) { left: 36%; top: 83%; animation-delay: -1.4s; }
.dot-field span:nth-child(18) { left: 55%; top: 78%; animation-delay: -4.6s; }
.dot-field span:nth-child(19) { left: 77%; top: 84%; animation-delay: -2.7s; }
.dot-field span:nth-child(20) { left: 94%; top: 78%; animation-delay: -0.8s; }
.dot-field span:nth-child(n+21) { width: 0.55rem; opacity: 0.7; }
.dot-field span:nth-child(21) { left: 33%; top: 13%; }
.dot-field span:nth-child(22) { left: 51%; top: 47%; }
.dot-field span:nth-child(23) { left: 9%; top: 88%; }
.dot-field span:nth-child(24) { left: 89%; top: 52%; }

.eye-aurora {
  width: min(68vmin, 40rem);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.55;
  mask-image: radial-gradient(circle, black 0 48%, transparent 50%);
}
.watch-title { transform: translateY(-6vh); mix-blend-mode: difference; }
.watch-code { left: auto; right: clamp(1rem, 3vw, 3rem); }

.scene-afterimage { background: linear-gradient(180deg, var(--void), #000 45%, var(--graphite)); }
.ledger-eye { position: absolute; inset: 0; display: grid; place-items: center; }
.ledger-line { width: 82vw; height: 1px; background: var(--flash); box-shadow: 0 0 2rem rgba(255,255,255,0.55); animation: lineBreathe 5s ease-in-out infinite; }
.closed-eyes { position: absolute; width: 84vw; display: flex; justify-content: space-between; top: 54%; }
.closed-eyes span { width: clamp(1.6rem, 5vw, 4rem); height: 0.55rem; border-top: 1px solid var(--silver); border-radius: 50%; opacity: 0.55; }
.final-domain { bottom: auto; top: 36vh; font-size: clamp(4rem, 15vw, 18rem); font-variation-settings: "wght" 620, "wdth" 102, "opsz" 120; }
.final-copy { position: absolute; top: 58vh; color: var(--silver); font-size: clamp(1rem, 2vw, 1.7rem); letter-spacing: 0.04em; }
.final-code { writing-mode: horizontal-tb; left: 50%; transform: translateX(-50%); text-align: center; width: max-content; }

@keyframes eyeOpen { from { transform: scaleY(0.02) rotate(-2deg); filter: brightness(2); } to { transform: scaleY(1) rotate(0); filter: brightness(1); } }
@keyframes lidTop { from { transform: translateY(0); } to { transform: translateY(-102%); } }
@keyframes lidBottom { from { transform: translateY(0); } to { transform: translateY(102%); } }
@keyframes blinkTop { 0%, 88%, 100% { transform: translateY(-102%); } 91%, 94% { transform: translateY(-12%); } }
@keyframes blinkBottom { 0%, 88%, 100% { transform: translateY(102%); } 91%, 94% { transform: translateY(12%); } }
@keyframes coinWobble { 0%,100% { rotate: -1deg; } 50% { rotate: 1.2deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wordDilate { from { font-variation-settings: "wght" 520, "wdth" 72, "opsz" 72; filter: blur(0.6px); } to { font-variation-settings: "wght" 860, "wdth" 135, "opsz" 120; filter: blur(0); } }
@keyframes titleCompress { from { font-variation-settings: "wght" 360, "wdth" 151, "opsz" 80; } to { font-variation-settings: "wght" 880, "wdth" 42, "opsz" 130; } }
@keyframes dotBlink { 0%, 84%, 100% { transform: scaleY(1); opacity: 1; } 88%, 93% { transform: scaleY(0.08); opacity: 0.86; } }
@keyframes dotDrift { from { translate: 0 0; } to { translate: 1.2rem -1.6rem; } }
@keyframes auroraSway { from { transform: translateX(-4%) skewX(-8deg); opacity: 0.38; } to { transform: translateX(5%) skewX(7deg); opacity: 0.78; } }
@keyframes driftGrid { to { transform: rotate(1turn); } }
@keyframes receiptFloat { 0%,100% { filter: blur(0); translate: 0 0; } 50% { filter: blur(0.4px); translate: 0 -1rem; } }
@keyframes drawerBlink { 0%, 70%, 100% { transform: translateX(-50%) scaleY(0.28); } 78%, 88% { transform: translateX(-50%) scaleY(1); } }
@keyframes lineBreathe { 0%,100% { width: 76vw; opacity: 0.55; } 50% { width: 88vw; opacity: 1; } }
@keyframes textTear { 0% { opacity: 0; } 30%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flashFrame { 0%, 35% { opacity: 0.92; } 36%, 100% { opacity: 0; } }
@keyframes dustFade { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

@media (max-width: 760px) {
  body { cursor: auto; }
  .cursor-eye { display: none; }
  .wordmark, .final-domain { letter-spacing: -0.11em; }
  .rim-caption.left, .rim-caption.right { top: 16vh; left: 1rem; right: auto; max-width: 14rem; text-align: left; transform: rotate(-4deg); }
  .receipt-strip { width: 70vw; }
  .strip-a { left: -12vw; }
  .strip-b { right: -18vw; }
  .strip-c { left: -8vw; }
  .strip-d { right: -14vw; }
  .dot-nav { right: 0.7rem; }
  .micro-code { letter-spacing: 0.1em; }
}
