/* Stand-alone coming-soon teaser. Self-contained (does not load site.css), no
   inline styles — the site ships a strict CSP (style-src 'self'). */

:root {
  --gold: #d4a574;
  --gold-bright: #f4cc98;
  --text: #ccd3dd;
  --text-strong: #f1f5fa;
  --text-muted: #8691a0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* mobile URL-bar safe; falls back to the line above */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text);
  font: 16px/1.6 "Bahnschrift", "Segoe UI", Tahoma, sans-serif;
  background-color: #070a0f;
}

/* ---- Background reel (plays once, holds its last frame) ----------------- */
.teaser-video-shell {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #070a0f url("../media/ZuluHotel_Background.da2fd0c03b9d.png") center / cover no-repeat;
}

.teaser-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop window biased slightly upward: the fiery end-title lives in the top
     ~14-46% of the frame, so ultrawide screens keep it whole; 16:9 / 16:10
     are barely affected. */
  object-position: 50% 38%;
  filter: saturate(1.02) brightness(0.78) contrast(1.04);
  transform: scale(1.03);
}

/* Narrow / portrait viewports: cover would slice the wide end-title down to a
   third, so letterbox the reel instead — the bars dissolve into the
   near-black page background. */
@media (max-aspect-ratio: 1/1) {
  .teaser-video-shell {
    background-image: none;
  }

  .teaser-video {
    object-fit: contain;
    object-position: center center;
    transform: none;
  }
}

.teaser-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 165, 116, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(6, 9, 14, 0.16), rgba(6, 9, 14, 0.42));
}

/* ---- Language switch ---------------------------------------------------- */
.teaser-lang {
  position: fixed;
  top: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}

.teaser-lang-pill {
  min-width: 46px;
  padding: 7px 12px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  background: rgba(8, 12, 18, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: 160ms ease;
}

.teaser-lang-pill:hover,
.teaser-lang-pill.is-active {
  color: var(--gold-bright);
  border-color: rgba(212, 165, 116, 0.5);
  background: rgba(212, 165, 116, 0.12);
}

/* ---- Content ------------------------------------------------------------ */
.teaser-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  text-align: center;
  padding: 24px;
  animation: teaser-rise 900ms ease both;
}

/* ---- Countdown ---------------------------------------------------------- */
.teaser-countdown {
  margin: 0 auto;
  /* Pushed ~100px below the optical centre so the wordmark baked into the
     intro reel stays clear of the cells (scales down on short screens). */
  transform: translateY(clamp(64px, 12vh, 110px));
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: clamp(8px, 2.4vw, 18px);
  max-width: 560px;
}

.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 2.4vw, 20px) 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 17, 24, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cd-num {
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: clamp(0.62rem, 1.8vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* Launched state — swap the grid for a single celebratory line. */
.teaser-countdown.is-launched {
  display: block;
  border: 0;
  background: none;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 800;
  color: var(--gold-bright);
}

@keyframes teaser-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teaser-content {
    animation: none;
  }
}

@media (max-width: 420px) {
  .teaser-countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .cd-cell {
    border-radius: 13px;
  }
}
