:root {
  --bg: #090a0d;
  --text: #f4f1ea;
  --gold: #c4a574;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  display: grid;
  place-items: end center;
  overflow: hidden;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fullscreen scene ---------- */

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transform-origin: center 60%;
  animation:
    scene-in 1.8s ease-out forwards,
    ken-burns 44s ease-in-out 1.8s infinite alternate;
}

/* Edge falloff + a lift from the bottom so the wordmark always has contrast. */
.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 6, 9, 0.82) 0%, rgba(5, 6, 9, 0.28) 26%, transparent 52%),
    linear-gradient(to bottom, rgba(5, 6, 9, 0.45) 0%, transparent 30%),
    radial-gradient(ellipse 120% 85% at 50% 45%, transparent 40%, rgba(5, 6, 9, 0.55) 100%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Wordmark ---------- */

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding: 0 1.5rem clamp(2.5rem, 8vh, 5rem);
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(0.7rem, 3vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(14px);
  animation: title-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.title::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  animation: line-in 1s ease 1.5s forwards;
}

/* ---------- Motion ---------- */

@keyframes scene-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-in {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-img,
  .title,
  .title::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
