@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;350;400;450;500;600&display=swap');

:root {
  --bg: #000000;
  --black: #000;

  --white: #f2eee5;
  --text: rgba(242, 238, 229, 0.78);
  --muted: rgba(242, 238, 229, 0.52);

  --gold: #b29a63;
  --gold-bright: #d6a462;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  overflow: hidden;
}

/* =================== SPLASH STAGE =================== */
.splash {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--bg);
  cursor: pointer;
  outline: none;
  overflow: hidden;
  user-select: none;
}

.splash:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gold-bright);
}

/* =================== Background image (full bleed) =================== */
.splash__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  animation: splash-bg-enter 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

@keyframes splash-bg-enter {
  0%   { opacity: 0; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1.00); }
}

/* =================== Eintreten indicator (bottom-center) =================== */
.splash__enter {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 4vh, 56px);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation:
    splash-enter-fadein 0.8s ease-out 1.0s forwards,
    splash-pulse 2.4s ease-in-out 1.8s infinite;
}

@keyframes splash-enter-fadein {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.splash__enter-label {
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-bright);
  opacity: 0.92;
}

.splash__chevron {
  color: var(--gold-bright);
  opacity: 0.86;
}

@keyframes splash-pulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%      { transform: translate(-50%, 6px); opacity: 0.72; }
}

/* =================== Reduced motion =================== */
@media (prefers-reduced-motion: reduce) {
  .splash__bg {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .splash__enter {
    animation: none;
    opacity: 1;
  }
}

/* =================== Responsive =================== */
/* The splash image is a landscape (16:9) composition with the "ImigraData"
   wordmark + tagline baked in. On narrow/portrait screens, object-fit:cover
   would crop the sides and cut the wordmark ("Dat..."). On those screens we
   switch to `contain` so the FULL composition (wordmark + tagline + planet)
   always fits; the letterbox blends into the black body, keeping it elegant. */
@media (max-width: 900px) and (orientation: portrait) {
  /* Center the full landscape composition vertically; show it at full width so
     the complete "ImigraData" wordmark + tagline are always visible, never
     cropped. The black body fills the space above/below, blending seamlessly. */
  .splash {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .splash__bg {
    position: static;
    inset: auto;
    width: auto;
    max-width: 100vw;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
  }
}

@media (max-width: 720px) {
  .splash__enter { bottom: 24px; gap: 8px; }
  .splash__enter-label { font-size: 10px; letter-spacing: 0.22em; }
}
