/* Interval 3D PC intro — full-viewport gate before the marketing site */
.relo-intro {
  --ri-ink: #f4f4f4;
  --ri-mint: #a3f7bf;
  --ri-bg0: #000000;
  --ri-bg1: #070b0c;
  --ri-bg2: #0c1214;
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 42%, #10181a 0%, transparent 58%),
    linear-gradient(180deg, var(--ri-bg0) 0%, var(--ri-bg1) 48%, var(--ri-bg2) 100%);
  color: var(--ri-ink);
  font-family: "PP Neue Montreal", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  user-select: none;
}

.relo-intro.is-exiting {
  pointer-events: none;
}

.relo-intro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.relo-intro__hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.relo-intro__click {
  pointer-events: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ri-ink);
  cursor: pointer;
  padding: 1.25rem 1.75rem;
  margin: 0;
  font: inherit;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 500;
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 1);
}

@media (max-width: 767px) {
  .relo-intro__click {
    letter-spacing: 0.18em;
  }
}

.relo-intro__click-label {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.relo-intro__click-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform-origin: left center;
}

.relo-intro__click:hover .relo-intro__click-label,
.relo-intro__click:focus-visible .relo-intro__click-label {
  color: var(--ri-mint);
}

.relo-intro__click:focus-visible {
  outline: 2px solid var(--ri-mint);
  outline-offset: 6px;
}

.relo-intro__click[hidden],
.relo-intro__skip[hidden],
.relo-intro__loader[hidden] {
  display: none !important;
}

.relo-intro__skip {
  pointer-events: auto;
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.78);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.relo-intro__skip:hover,
.relo-intro__skip:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.relo-intro__loader {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 3;
}

.relo-intro__flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(163, 247, 191, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(0, 0, 0, 0.15));
  mix-blend-mode: screen;
}

.relo-intro__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(70% 60% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

body.relo-intro-active {
  overflow: hidden !important;
  height: 100dvh;
}

body.relo-intro-active > :not(.relo-intro) {
  visibility: hidden;
}

@keyframes relo-intro-underline {
  0%, 100% { transform: scaleX(0.35); opacity: 0.35; }
  50% { transform: scaleX(1); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .relo-intro__click-label::after {
    animation: none;
    transform: scaleX(1);
  }
}

.relo-intro__hint {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.6s ease;
}

.relo-intro__hint.is-gone {
  opacity: 0;
}

.relo-intro__hint[hidden] {
  display: none !important;
}
/* The visible CTA is painted on the 3D screen; this button stays only for keyboard / screen readers. */
.relo-intro__click,
.relo-intro__click:hover .relo-intro__click-label,
.relo-intro__click:focus-visible .relo-intro__click-label {
  color: transparent !important;
  text-shadow: none !important;
}
.relo-intro__click-label::after {
  display: none;
}

/* ---------- Boot pre-roll: black -> logo -> matrix terminal ---------- */
.relo-boot {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.9s ease;
}
.relo-boot.is-leaving { opacity: 0; pointer-events: none; }
.relo-boot__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: ri-rain-in 2.4s ease 1.6s forwards;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 0%, transparent 28%, #000 85%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 0%, transparent 28%, #000 85%);
}
@keyframes ri-rain-in { to { opacity: 0.38; } }
.relo-boot__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 4vh, 2.4rem);
  padding: 0 1.5rem;
  text-align: center;
}
.relo-boot__logo {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  opacity: 0;
  transform: scale(0.4);
}
.relo-boot__logo.is-in { animation: ri-pop 0.95s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes ri-pop {
  0% { opacity: 0; transform: scale(0.4); filter: blur(10px); }
  55% { opacity: 1; transform: scale(1.14); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.relo-boot__term {
  min-height: 8.2em;
  font: 400 clamp(15px, 2vw, 22px) / 1.7 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !important;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
  opacity: 0;
  background: rgba(0, 0, 0, 0.72);
  padding: 0.6em 1em;
  border-radius: 6px;
}
.relo-boot__term.is-in { opacity: 1; transition: opacity 0.4s ease; }
.relo-boot__term * { font-family: inherit !important; font-weight: 400 !important; }
.relo-boot__line { margin: 0; min-height: 1.7em; white-space: pre-wrap; }
.relo-boot__line--dim { color: rgba(255, 255, 255, 0.6); }
.relo-boot__cursor { display: inline-block; margin-left: 2px; animation: ri-blink 1s steps(1) infinite; }
@keyframes ri-blink { 50% { opacity: 0; } }
.relo-boot__key {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  font: inherit !important;
  cursor: pointer;
  text-shadow: inherit;
}
.relo-boot__key:hover, .relo-boot__key:focus-visible { background: #fff; color: #000; outline: none; text-shadow: none; }
.relo-intro__skip { z-index: 7; }

/* The call to action is painted on the 3D glass; no DOM focus box over it. */
.relo-intro__click:focus-visible { outline: none !important; }
.relo-intro__click:focus-visible .relo-intro__click-label { color: transparent !important; }

/* [Y] / [N] tap targets (keyboard Y / N / Enter also work) */
.relo-intro__yn {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  font: 400 clamp(15px, 1.6vw, 20px) ui-monospace, "SF Mono", Menlo, Consolas, monospace !important;
  color: rgba(255, 255, 255, 0.7);
}
.relo-intro__yn[hidden] { display: none; }
.relo-intro__yn button {
  appearance: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.5em 1.1em;
  font: inherit !important;
  cursor: pointer;
}
.relo-intro__yn button:hover, .relo-intro__yn button:focus-visible { background: #fff; color: #000; outline: none; }

/* white matrix rain over the dive into the monitor */
.relo-intro__matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: #000;
}
