:root {
  --bg: #0a0a0a;
  --acid: #e6ff2a;
  --white: #f7f7f2;
  --gutter: clamp(16px, 2.6vw, 36px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 500;
}

.video, .shade { position: fixed; inset: 0; pointer-events: none; }
.video { z-index: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.video.on { opacity: 1; }
.video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
}

.shade {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, .62), transparent 22%),
    linear-gradient(to left, rgba(10, 10, 10, .62), transparent 44%),
    linear-gradient(to top, rgba(10, 10, 10, .86), transparent 48%);
}

.gate {
  position: fixed;
  z-index: 10;
  inset: 0;
  width: 100%;
  overflow: hidden;
  border: 0;
  background: var(--acid);
  color: var(--bg);
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(72px, 22vw, 300px);
  line-height: 1;
  cursor: pointer;
  transition: transform .9s var(--ease), visibility .9s;
}
.gate span { display: inline-block; transition: transform .35s var(--ease); }
.gate:focus-visible { outline: none; }
.gate.off { transform: translateY(-100%); visibility: hidden; }

.page {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: var(--gutter) 0 0;
  visibility: hidden;
}
.entered .page { visibility: visible; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gutter);
}

.when {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-size: clamp(14px, 2vw, 21px);
  text-shadow: 0 1px 5px #000, 0 1px 12px #000;
}
.when time { color: var(--acid); font-size: clamp(25px, 3.2vw, 39px); font-weight: 700; font-variant-numeric: tabular-nums; }

.deck { display: flex; align-items: center; gap: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.deck button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.deck button:hover, .deck button:focus-visible { background: var(--acid); color: var(--bg); outline: none; }
#volume { width: 84px; height: 18px; margin: 0; accent-color: var(--acid); cursor: pointer; }

.links {
  --tile: clamp(68px, 22vw, 100px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, var(--tile));
  gap: 2px;
  padding: 10px 12px;
}
.links a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--tile);
  border: 1px solid transparent;
  color: var(--white);
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.links a svg {
  display: block;
  width: clamp(42px, 13vw, 60px);
  aspect-ratio: 1;
  fill: currentColor;
}
.links a:hover, .links a:focus-visible {
  z-index: 1;
  border-color: var(--acid);
  background: #e6ff2a20;
  color: var(--acid);
  outline: none;
}
.links a:focus-visible { box-shadow: inset 0 0 0 1px var(--acid); }
.links .link-label {
  position: absolute;
  inset: auto auto calc(100% + 15px) 50%;
  transform: translateX(-50%);
  padding: 4px 7px;
  border: 1px solid var(--acid);
  background: var(--bg);
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s;
}
.links a:hover .link-label, .links a:focus-visible .link-label { opacity: 1; }
.links .menu-scan {
  position: absolute;
  z-index: 2;
  inset: 5px 0;
  width: 2px;
  background: var(--acid);
  box-shadow: 0 0 11px var(--acid);
  opacity: 0;
  pointer-events: none;
}
.entered .links .menu-scan { animation: menu-scan 1.95s .2s linear both; }
.entered .links svg {
  animation: scan-flash .28s ease both;
  animation-delay: calc(.22s + var(--scan-order) * 235ms);
}
@keyframes menu-scan {
  0% { opacity: 0; left: 3%; }
  6% { opacity: 1; }
  82%, 92% { opacity: 1; left: 97%; }
  100% { opacity: 0; left: 97%; }
}
@keyframes scan-flash {
  42% { color: var(--acid); filter: drop-shadow(0 0 6px var(--acid)); }
}

.links a::after {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, #e6ff2a42, #e6ff2a0a 70%);
  box-shadow: 0 0 10px #e6ff2a30;
}
@media (prefers-reduced-motion: no-preference) {
  .entered .links:not(:hover):not(:focus-within) a::after {
    animation: menu-idle-pulse 4.8s linear infinite;
    animation-delay: calc(2.5s + var(--scan-order) * 280ms);
  }
}
@keyframes menu-idle-pulse {
  0%, 10%, 100% { opacity: 0; }
  4% { opacity: 1; }
}

.strip {
  margin-top: auto;
  flex: none;
  overflow: hidden;
  padding: 6px 0;
  background: var(--acid);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.run { display: inline-block; animation: run 26s linear infinite; }
.run span { padding: 0 18px; }

.name {
  display: flex;
  flex: none;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 6px var(--gutter) 2px;
  color: var(--white);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 16vw;
  font-weight: 400;
  line-height: 1.08;
  white-space: nowrap;
}
.name span { display: inline-block; transition: color .15s; }
.entered .name span { animation: up .9s var(--ease) both; animation-delay: calc(.12s + var(--i) * 45ms); }
.name span:hover { color: var(--acid); }

@keyframes up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes run { to { transform: translateX(-50%); } }

@media (max-width: 560px) {
  .when { flex-direction: column; gap: 2px; }
  #volume { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAYAAABX5MJvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACbSURBVFhH7ZRBCoAgEEW7g7gtaNkpuk7b9kHrLlFH6AidpmsYfyGI4OJDmtB/MIjyyJlRaxohhMiEMWac5vbYz/7CiHnsZMdauy5b5243OIyYx052lISniiSKXkx8HFWGkdqQcSlQJdodBtZiDzAuBdqNcw8Da7EHGJeCqY5xKZhzZtxXKPo6UqBKtPvT/4SS8FSRRBUXUwjxGx5up8AJCYfabgAAAABJRU5ErkJggg==") 16 16, crosshair; }
  .gate, .links a, .deck button, #volume {
    cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAYAAABX5MJvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAO9SURBVFhH1Zc/aFRBEMYt7SK8nXfGS3LxjOGMhcFCRCzUKlilEhtFEMQUgoqghUJAIZAmaGMqk0ZSCEYsDBYSC8UmcKCFaKNYGKxMZ7qV33Pn3Lf3/l20yQfL/Xmzu7Mz33yzb8eO7Yw4jo9GUXTCH6HNf4eI7I7j+LIxZkVE7PGT/fb0ZL0zTk30W/43xrRF5FatVhsO19gyGo3GThGZrg/IxsUrg/bR03326+aY/W6zx5NXI3bqxqBtjtRw6CHOh2v2BEJujFk/d2nArn1rpTZb/TBqn7/Z3xkv10ZTzz9ttOzNuw2L88aYs+HalcDE4aZssoEuzEac8sDBGqH/KCKrOowx7zg90Xr8YqQz5+3nUXvocGI/He5RCBxgIgvoqYgGUTHGXM3LN6EXkQs4CE80esznt4jMhXMyQQqIgC6AI0eOJaSbgx+hfR4gpx9JeASZIXdomwKbcFqdiAMslJVTSnLq+tDiwrPmaz6zSlQ5penhYC6V46FtB8aYGXKqISQlcRxPhnaAHN+ZbSS2fOblPIqiFuSEyNjOzu8lrcuhXQLy2b8n+vX+x580nDlfx3gmtFNUdQIQSVKhZHVp6T4cOYT5GJEOwljEgV6cAFTPg8VmYs+niCyFNokRQoMRKSkjUK9OwA+NBtEWkZ+pQ/b19e2ixlUJ+V6mdFWIGYLoatUh86k5eMmfPESQ0H99hiGn9EfehmW2pEBT0hVtSAIReUg5+ezllITbH/zXmeyhzLYwhXikpJxfauLEgj4j3MpqHfzXmeyhzJZ9VALCfZISQpb1oc/cstP5KLPl5DQ19rl3fzgtAeQNbech5UlD8p8V5dlHmS3Sj1ixD5GnD3Um05CQUx6ilIhWkUaALVZHW1u+E8N0OzDGfFFpJSqZiuahkGQZ8A+KFNQHxCINKSNCpYtSRlzjUgYBenWC9a/dHkrsqUA/5b7ROA0LL7XtdoXLQy9OsDbd2O9LuYqMPihxyB3dr+ACU8kJdz1oU3XYkvLCvkTbbY399diVK9e4LgmvQkznwIqmgQjDt6IIJ6BskHDtI67/ryPtoW0ROBARUBFkuLLMvkuE4Kqu4sWgu8JsFshLj8LdM+fggPYJTRmdOjcNIVwYlwkduqGhZCG9aaN2TpAmVJj0xk34NaVeBNpdJVkFnIhLrn+FV3KpLOMoUsx3vY/4do4Dy5UjkAVEi1OwWNnblw6ccYoIl7JLcSvgfULfQ9lAI0GvoRnxHR651782m//T6YtAXt0LjjYp3r4SfrBxVjlvC/wG8PqUFNY0WyAAAAAASUVORK5CYII=") 16 16, pointer;
  }
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-trail { display: none; }
}

.name-atmosphere {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: clamp(150px, 42dvh, 500px);
  pointer-events: none;
}
.strip, .name { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .name-atmosphere { display: none; }
}

.enter-preview { position: relative; }
.gate[data-enter-effect]:focus-visible .enter-preview { outline: 2px solid currentColor; outline-offset: 6px; }
.gate[data-enter-effect="echo"] .enter-preview::before,
.gate[data-enter-effect="echo"] .enter-preview::after {
  content: "ENTER";
  position: absolute;
  inset: 0;
  color: #454b14;
  -webkit-text-stroke: 1px currentColor;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  pointer-events: none;
}
.gate[data-enter-effect="scan"] .enter-preview::after {
  content: "ENTER";
  position: absolute;
  inset: 0;
  background: #141606;
  color: #eeffd1;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gate[data-enter-effect="wave"]:not(.off) .enter-preview:hover > span {
    animation: preview-enter-wave 1.3s ease-in-out infinite;
    animation-delay: calc(var(--letter-order) * 90ms);
  }
  .gate[data-enter-effect="echo"]:not(.off) .enter-preview:hover::before {
    --direction: 1;
    animation: preview-enter-echo 1.2s ease-out infinite;
  }
  .gate[data-enter-effect="echo"]:not(.off) .enter-preview:hover::after {
    --direction: -1;
    animation: preview-enter-echo 1.2s ease-out infinite;
  }
  .gate[data-enter-effect="scan"]:not(.off) .enter-preview:hover::after {
    animation: preview-enter-sweep 1.55s linear infinite;
  }
  .gate[data-enter-effect="magnet"] .enter-preview > span { transition: transform .16s ease-out; }
  .gate[data-enter-effect="magnet"]:not(.off) .enter-preview:hover > span {
    transform: perspective(350px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
      translate(var(--move-x, 0px), var(--move-y, 0px)) scale(1.05);
  }
}
@keyframes preview-enter-wave {
  0%, 62%, 100% { transform: translateY(0); }
  30% { transform: translateY(-.14em); }
}
@keyframes preview-enter-echo {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: .8; }
  80%, 100% { opacity: 0; transform: translateX(calc(var(--direction) * .23em)); }
}
@keyframes preview-enter-sweep {
  0% { clip-path: inset(0 100% 0 0); }
  15.254% { clip-path: inset(0 82% 0 0); }
  84.746% { clip-path: inset(0 0 0 82%); }
  100% { clip-path: inset(0 0 0 100%); }
}

@font-face {
  font-family: "Montserrat Alt1";
  src: url("fonts/MontserratAlt1-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: Deserta;
  src: url("fonts/Deserta.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
.name[data-title-font="montserrat-alt1"] {
  font-family: "Montserrat Alt1", Impact, sans-serif;
  font-weight: 900;
}
.name[data-title-font="deserta"] {
  font-family: Deserta, Impact, sans-serif;
  font-weight: 400;
}
