/* Vexion awakening page: palette B "Klassiek holo" (docs/DESIGN.md §3). */
:root {
  --void: #02070d;
  --photon: #4fd8ff;
  --text: #cfefff;
  --font-display:
    "Sora", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.space {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vmin, 4rem) 1.5rem;
  text-align: center;
}

/* The Kern gets a square stage that scales with the shortest side of the screen. */
.stage {
  position: relative;
  width: min(68vmin, 34rem);
  aspect-ratio: 1;
}

/* On portrait screens the width is the limiting side, so the Kern may take more of it. */
@media (max-aspect-ratio: 3 / 4) {
  .stage {
    width: min(84vw, 34rem);
  }
}

.core {
  display: block;
  width: 100%;
  height: 100%;
}

.core[hidden] {
  display: none;
}

.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.fallback[hidden] {
  display: none;
}

/* Wordmark and tagline fade in after the Kern has woken up (opacity/transform only). */
.wordmark {
  margin-top: clamp(1rem, 4vmin, 2.5rem);
  /* Trailing letter-spacing is compensated so the word stays optically centred. */
  padding-left: 0.42em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1.1;
  text-shadow: 0 0 1.5rem rgb(79 216 255 / 0.35);
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 2s both;
}

.tagline {
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.125rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 2.45s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .tagline {
    animation: none;
  }
}
