/* ---------- Design Tokens ---------- */
:root {
  --color-bg: #0a0a0a;
  --color-text: #ffffff;
  --color-gold: #b98a4a;
  --font-main: 'Raleway', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --fade-duration: 5s;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
}

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn var(--fade-duration) ease-in forwards;
}

.bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fallback only, JS sets the real size */
  object-position: center 48%;
}

/* phones: fade only the top edge of the image into black */
.is-portrait .bg img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%);
}

/* ---------- Streak canvas ---------- */
.streak-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

/* ---------- Content ---------- */
.content {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(20px, 5vh, 56px);
  pointer-events: none;
  text-align: center;
}

.stack {
  --w: clamp(170px, min(28vw, 40vh), 400px);
  /* everything scales from this */
  --logo-ratio: 8.7;
  /* visible logo width / height. See notes below. */
  --gap-tagline: 0.045;
  /* logo -> tagline */
  --gap-coming: 0.17;
  /* tagline -> COMING SOON */
  --gap-line: 0.06;
  /* COMING SOON -> gold line */
  --gap-slogan: 0.08;
  /* gold line -> slogan */

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Logo (transparent padding cropped away) ---------- */
.brand {
  width: var(--w);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeInFull 3s ease-in 0.5s forwards;
}

.logo-box {
  /* for the desktop view */
  margin-top: 12%;
  width: 100%;
  aspect-ratio: var(--logo-ratio);
  overflow: hidden;
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* crops the empty space around the logo */
  object-position: center 50%;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ---------- Tagline ---------- */
.tagline {
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--w) * 0.035);
  margin-top: calc(var(--w) * var(--gap-tagline));
}

.tagline p {
  font-weight: 500;
  font-size: max(8px, calc(var(--w) * 0.031));
  letter-spacing: 0.35em;
  padding-left: 0.35em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-gold);
}

.tagline .rule {
  display: block;
  width: calc(var(--w) * 0.1);
  height: 1px;
  background: var(--color-gold);
}

/* ---------- COMING SOON / line / slogan ---------- */
.coming-soon {
  margin-top: calc(var(--w) * var(--gap-coming));
  font-weight: 300;
  font-size: calc(var(--w) * 0.058);
  line-height: 1;
  letter-spacing: 0.7em;
  padding-left: 0.7em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

.gold-line {
  display: block;
  width: calc(var(--w) * 0.23);
  height: 1px;
  margin-top: calc(var(--w) * var(--gap-line));
  background: var(--color-gold);
}

.slogan {
  margin-top: calc(var(--w) * var(--gap-slogan));
  font-weight: 400;
  font-size: calc(var(--w) * 0.044);
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.gold-line.reveal {
  transform: scaleX(0);
  transition: opacity .6s ease-out, transform .9s ease-out;
}

.stack.visible .reveal {
  opacity: 1;
  transform: none;
}

.stack.visible .gold-line {
  transition-delay: 0.6s;
}

.stack.visible .slogan {
  transition-delay: 1.1s;
}

/* ---------- Keyframes ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.6;
  }
}

@keyframes fadeInFull {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- Phones / portrait ---------- */
@media (max-aspect-ratio: 1/1) {
  .content {
    padding-top: clamp(28px, 6vh, 64px);
  }

  .stack {
    --w: clamp(230px, 76vw, 460px);
  }

  .brand {
    margin-top: 50%;
  }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .content {
    padding-top: 12px;
  }

  .stack {
    --w: clamp(130px, 20vw, 200px);
    --gap-coming: 0.12;
  }
}