/* Sources — prestige splash */

:root {
  --bg: #050810;
  --ivory: #f4f1ea;
  --ivory-dim: rgba(244, 241, 234, 0.45);
  --gold: #c9a962;
  --gold-bright: #e8cf96;
  --cyan: #4fb6ef;
  --logo-size: clamp(13rem, 32vw, 19rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  cursor: default;
}

#atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  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");
  background-size: 180px 180px;
  animation: grain-drift 8s steps(10) infinite;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 62% at 50% 44%,
    transparent 0%,
    transparent 42%,
    rgba(5, 8, 16, 0.6) 100%
  );
}

.stage {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  perspective: 1100px;
}

/* ── Logo ── */

.logo-stage {
  position: relative;
  width: var(--logo-size);
  height: var(--logo-size);
  margin-bottom: clamp(1.8rem, 4.5vh, 3rem);
  transform-style: preserve-3d;
  will-change: transform;
}

.logo-halo {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(79, 182, 239, 0.16) 0%,
    rgba(38, 131, 198, 0.07) 38%,
    transparent 68%
  );
  filter: blur(30px);
  animation: halo-breathe 5.5s ease-in-out infinite;
}

#logoSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 34px rgba(79, 182, 239, 0.22));
  opacity: 0;
  animation: svg-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

#logoSvg .ring-drift {
  opacity: 0;
}

/* ── Typography ── */

.wordmark {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  line-height: 1;
  background: linear-gradient(
    100deg,
    var(--ivory) 0%,
    var(--ivory) 42%,
    #fffdf4 50%,
    var(--ivory) 58%,
    var(--ivory) 100%
  );
  background-size: 240% 100%;
  background-position: 115% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation:
    rise-in 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards,
    shine 9s ease-in-out 3.2s infinite;
}

.hairline {
  width: 0;
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 30%,
    var(--gold-bright) 50%,
    var(--gold) 70%,
    transparent
  );
  opacity: 0;
  animation: hairline-in 1.3s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.descriptor {
  margin-top: 1.3rem;
  font-size: clamp(0.62rem, 1.6vw, 0.74rem);
  font-weight: 400;
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: rise-in 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.tagline {
  position: relative;
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  min-height: 1.7em;
  width: min(90vw, 36rem);
}

.tagline-line {
  position: absolute;
  left: 0;
  right: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 2.9vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.045em;
  line-height: 1.5;
  color: var(--ivory-dim);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.tagline-line.is-active {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 1.6s;
  transition-delay: 1.25s;
}

/* ── Keyframes ── */

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ring-in {
  to { opacity: 1; }
}

@keyframes svg-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hairline-in {
  to {
    width: clamp(64px, 10vw, 96px);
    opacity: 1;
  }
}

@keyframes shine {
  0%, 52% { background-position: 115% 0; }
  68%, 100% { background-position: -25% 0; }
}

@keyframes grain-drift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  30% { transform: translate(1%, 2%); }
  50% { transform: translate(-1%, 1%); }
  70% { transform: translate(3%, -1%); }
  90% { transform: translate(-2%, 2%); }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  #logoSvg,
  #logoSvg .ring-spin,
  #logoSvg .ring-drift,
  .logo-halo,
  .grain,
  .wordmark,
  .hairline,
  .descriptor {
    animation: none !important;
  }

  #logoSvg,
  #logoSvg .ring-drift,
  .wordmark,
  .descriptor {
    opacity: 1 !important;
    transform: none !important;
  }

  .wordmark {
    color: var(--ivory);
    background: none;
  }

  .hairline {
    width: 80px;
    opacity: 1;
  }

  .tagline-line.is-active {
    transition: none;
  }
}

/* ── Small screens ── */

@media (max-width: 480px) {
  .wordmark {
    letter-spacing: 0.17em;
    text-indent: 0.17em;
  }

  .descriptor {
    letter-spacing: 0.44em;
    text-indent: 0.44em;
  }
}
