:root {
  --ink: #07090d;
  --gold: #d4b483;
  --gold-bright: #f0d9a8;
  --mint: #7dffb3;
  --fog: rgba(232, 236, 244, 0.78);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  color: var(--fog);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  -webkit-text-size-adjust: 100%;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.55) contrast(1.15) brightness(0.42);
}

.veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(7, 9, 13, 0.15), rgba(7, 9, 13, 0.72) 70%, rgba(7, 9, 13, 0.92)),
    linear-gradient(120deg, rgba(12, 40, 28, 0.35), transparent 45%, rgba(80, 50, 10, 0.28));
  mix-blend-mode: multiply;
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}

.scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  padding:
    calc(1.25rem + var(--safe-top))
    1.25rem
    calc(1.5rem + var(--safe-bottom));
}

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mint) 70%, white);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 1.1s ease 0.25s forwards;
  text-shadow: 0 0 24px rgba(125, 255, 179, 0.25);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 180, 131, 0.18);
  opacity: 0;
  animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards;
}

h1 .line {
  display: block;
}

.dots {
  display: inline-block;
  animation: blink 1.6s steps(1, end) infinite;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes drift {
  from { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
  to   { transform: scale(1.12) translate3d(1.4%, 0.8%, 0); }
}

@keyframes scanPulse {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.42; }
}

/* ——— Mobile / narrow ——— */
@media (max-width: 767px) {
  .bg-video {
    object-position: 58% 35%;
    filter: saturate(0.45) contrast(1.2) brightness(0.32);
    transform: scale(1.08);
  }

  .veil {
    background:
      radial-gradient(ellipse 95% 70% at 50% 38%, rgba(7, 9, 13, 0.05), rgba(7, 9, 13, 0.78) 62%, rgba(7, 9, 13, 0.96)),
      linear-gradient(180deg, rgba(8, 18, 14, 0.55), transparent 40%, rgba(20, 12, 4, 0.55));
  }

  .scan { display: none; }

  .vignette {
    box-shadow: inset 0 0 70px 28px rgba(0, 0, 0, 0.7);
  }

  .field { opacity: 0.55; }

  .hero {
    place-content: end center;
    padding-bottom: calc(18vh + var(--safe-bottom));
  }

  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.85rem;
    opacity: 0.9;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    max-width: 11ch;
    margin: 0 auto;
  }

  h1 .brand { margin-bottom: 0.15em; }

  h1 .soon {
    font-size: 0.72em;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--gold-bright) 88%, white);
  }
}

/* ——— Desktop / tablet landscape ——— */
@media (min-width: 768px) {
  .bg-video {
    filter: saturate(0.55) contrast(1.15) brightness(0.42);
    transform: scale(1.06);
    animation: drift 28s ease-in-out infinite alternate;
  }

  .scan {
    opacity: 0.35;
    animation: scanPulse 6s linear infinite;
  }

  .vignette {
    box-shadow: inset 0 0 140px 48px rgba(0, 0, 0, 0.55);
  }

  .hero {
    place-content: center;
    padding: 3rem 2.5rem;
  }

  .eyebrow {
    font-size: clamp(0.72rem, 1.1vw, 0.88rem);
    letter-spacing: 0.28em;
    margin-bottom: 1.4rem;
  }

  h1 {
    font-size: clamp(3.2rem, 6.2vw, 5.6rem);
    white-space: nowrap;
  }

  /* desktop: brand + soon on one visual line via inline-ish blocks */
  h1 .line {
    display: inline;
  }

  h1 .soon {
    margin-left: 0.18em;
  }
}

@media (min-width: 768px) and (max-height: 520px) {
  .hero { padding-block: 1.25rem; }
  h1 { font-size: clamp(2.4rem, 7vh, 4rem); }
  .eyebrow { margin-bottom: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video, .scan, .dots, .eyebrow, h1 { animation: none !important; opacity: 1; }
}
