* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #c9a227;
  --ink: #eeeeee;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html, body {
  height: 100%;
  background: #000;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* The stage has the image's aspect ratio and is sized like "cover",
   but never wider than 230vw — so on phones the title baked into
   the image is never cropped. UI is positioned inside the same box. */
.stage {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(max(100vw, 148.6vh), 230vw);
  aspect-ratio: 1712 / 1152;
  z-index: 0;
}
.stage img {
  display: block;
  width: 100%;
  height: 100%;
}
.stage--ui { z-index: 2; pointer-events: none; }

#matrix {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.38;
  pointer-events: none;
}

.contact {
  pointer-events: auto;
  position: absolute;
  left: 51.8%; /* horizontal centre of the baked-in title */
  top: 61%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 0.6em 1.5em;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.contact:hover,
.contact:focus-visible {
  border-color: var(--gold);
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  outline: none;
}
.contact:focus-visible { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.45); }

.foot {
  position: fixed;
  left: 0; right: 0; bottom: 14px;
  z-index: 2;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 2px #000;
}

/* Phones in portrait: the image does not fill the height, so fade
   its top and bottom edges into the black background. */
@media (max-aspect-ratio: 3/4) {
  /* centre the title (not the image) on narrow screens */
  .stage { left: calc(50% - 4.1vw); }
  .stage img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .contact { top: 64%; font-size: 1rem; letter-spacing: 2.5px; }
}

/* 404 page */
.lost {
  position: fixed; inset: 0; z-index: 2;
  display: grid; place-content: center; gap: 1.4rem;
  text-align: center; padding: 0 16px;
  font-family: var(--mono); letter-spacing: 2px;
}
.lost .contact { position: static; transform: none; }
