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

:root {
  --bg-deep: #07090d;
  --text-primary: #f4f0ea;
  --text-muted: rgba(244, 240, 234, 0.62);
  --accent-ray: rgba(255, 248, 230, 0.14);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sky-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 18% 8%, rgba(255, 236, 200, 0.16), transparent 58%),
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(18, 28, 42, 0.95), transparent 70%),
    linear-gradient(180deg, #0d1218 0%, #07090d 55%, #050608 100%);
  opacity: 0;
  animation: sky-in 2.4s ease forwards;
}

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

.god-rays {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(
      from 215deg at 12% 0%,
      transparent 0deg,
      var(--accent-ray) 8deg,
      transparent 16deg,
      rgba(255, 248, 230, 0.08) 22deg,
      transparent 30deg,
      rgba(255, 248, 230, 0.05) 38deg,
      transparent 48deg
    );
  filter: blur(28px);
  opacity: 0;
  transform: translate3d(0, -2%, 0);
  animation:
    rays-in 3s ease 0.4s forwards,
    rays-drift 14s ease-in-out 3.4s infinite alternate;
}

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

@keyframes rays-drift {
  from { transform: translate3d(0, -2%, 0) rotate(-1deg); opacity: 0.85; }
  to { transform: translate3d(1%, 1%, 0) rotate(1.5deg); opacity: 1; }
}

#rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: rain-in 2.8s ease 1s forwards;
}

@keyframes rain-in {
  to { opacity: 0.4; }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 68% at 50% 46%, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
}

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

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  gap: clamp(1.5rem, 4vh, 2.75rem);
}

.hero {
  width: min(42vw, 380px);
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  filter: blur(6px);
}

.hero.is-visible {
  animation: hero-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-in {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: transparent;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: filter;
}

.hero-shimmer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  opacity: 0;
}

.hero-shimmer.run {
  animation: shimmer 1.4s ease 0.1s forwards;
}

@keyframes shimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.copy {
  text-align: center;
  max-width: 34rem;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
}

.copy.is-visible {
  animation: copy-in 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.title {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.92;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.title-line {
  display: block;
}

.title-line + .title-line {
  margin-top: -0.08em;
}

.subtitle {
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.15rem;
}

.tagline {
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.coming-soon {
  font-size: clamp(calc((0.72rem + 3px) * 2 - 3px), calc((1.6vw + 3px) * 2 - 3px), calc((0.82rem + 3px) * 2 - 3px));
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

@media (min-width: 768px) {
  .stage {
    grid-template-columns: minmax(280px, 380px) minmax(240px, 1fr);
    align-items: center;
    justify-items: center;
    max-width: 960px;
    margin: 0 auto;
    gap: clamp(2.5rem, 6vw, 4rem);
  }

  .hero {
    width: min(32vw, 380px);
  }

  .copy {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .stage {
    align-content: center;
  }

  .hero {
    width: min(70vw, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.noscript-fallback {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--bg-deep);
  color: var(--text-primary);
}
