:root {
  --black: #0b0d10;
  --warm-black: #181a1f;
  --champagne: #d4af37;
  --ivory: #f5efe6;
  --beige: #e7dbc2;
  --charcoal: #222222;
  --gold-glow: rgba(212, 175, 55, 0.18);
  --mouse-x: 0px;
  --mouse-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
}

body {
  color: var(--ivory);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

.scene {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(212, 175, 55, 0.11), transparent 28rem),
    radial-gradient(circle at 16% 24%, rgba(245, 239, 230, 0.06), transparent 24rem),
    linear-gradient(145deg, #050608 0%, var(--black) 42%, var(--warm-black) 100%);
  animation: backgroundReveal 1.8s ease-out both;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -6;
  opacity: 0.36;
  background:
    conic-gradient(from 90deg at 50% 50%, transparent 0 18%, rgba(212, 175, 55, 0.12) 24%, transparent 31% 58%, rgba(245, 239, 230, 0.08) 64%, transparent 72% 100%);
  filter: blur(72px);
  transform: translate3d(calc(var(--mouse-x) * 0.3), calc(var(--mouse-y) * 0.24), 0);
  animation: slowOrbit 42s ease-in-out infinite;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background: linear-gradient(112deg, transparent 0 34%, rgba(245, 239, 230, 0.08) 47%, rgba(212, 175, 55, 0.09) 51%, transparent 68% 100%);
  filter: blur(42px);
  transform: translateX(-72%) skewX(-18deg);
  animation: luxurySweep 16s ease-in-out 2.4s infinite;
}

.particle-field,
.ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle-field {
  z-index: -5;
  opacity: 0.9;
  transform: translate3d(calc(var(--mouse-x) * -0.22), calc(var(--mouse-y) * -0.18), 0);
}

.ribbons {
  z-index: -4;
  filter: blur(14px);
  transform: translate3d(calc(var(--mouse-x) * 0.18), calc(var(--mouse-y) * 0.16), 0);
}

.ribbon {
  position: absolute;
  width: 58vw;
  height: 18vh;
  min-height: 140px;
  border-radius: 50%;
  opacity: 0.09;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent, rgba(231, 219, 194, 0.22), rgba(212, 175, 55, 0.11), transparent),
    radial-gradient(ellipse at center, rgba(245, 239, 230, 0.14), transparent 68%);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.ribbon-left {
  top: 17%;
  left: -22vw;
  transform: rotate(13deg);
  animation: silkLeft 32s ease-in-out infinite;
}

.ribbon-right {
  right: -24vw;
  bottom: 18%;
  transform: rotate(-12deg);
  animation: silkRight 34s ease-in-out infinite;
}

.light-streaks {
  z-index: -3;
  transform: translate3d(calc(var(--mouse-x) * 0.12), calc(var(--mouse-y) * 0.2), 0);
}

.light-streaks span {
  position: absolute;
  top: -28vh;
  width: 1px;
  height: 30vh;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(245, 239, 230, 0.12), transparent);
  box-shadow: 0 0 34px rgba(212, 175, 55, 0.08);
  filter: blur(2px);
  animation: streakFall 26s ease-in-out infinite;
}

.light-streaks span:nth-child(1) {
  left: 14%;
  animation-delay: 1s;
}

.light-streaks span:nth-child(2) {
  left: 34%;
  height: 40vh;
  animation-delay: 9s;
}

.light-streaks span:nth-child(3) {
  left: 52%;
  animation-delay: 4s;
}

.light-streaks span:nth-child(4) {
  left: 73%;
  height: 36vh;
  animation-delay: 13s;
}

.light-streaks span:nth-child(5) {
  left: 88%;
  animation-delay: 6s;
}

.blooms {
  z-index: -2;
}

.blooms span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  opacity: 0;
  background: rgba(245, 239, 230, 0.95);
  box-shadow: 0 0 24px 10px rgba(212, 175, 55, 0.2);
  animation: bloom 19s ease-in-out infinite;
}

.blooms span:nth-child(1) {
  top: 28%;
  left: 22%;
}

.blooms span:nth-child(2) {
  right: 24%;
  bottom: 33%;
  animation-delay: 6.8s;
}

.blooms span:nth-child(3) {
  top: 18%;
  right: 32%;
  animation-delay: 13.4s;
}

.energy-rings {
  z-index: -2;
  display: grid;
  place-items: center;
  transform: translate3d(calc(var(--mouse-x) * -0.12), calc(var(--mouse-y) * -0.1), 0);
}

.energy-rings span {
  position: absolute;
  width: min(84vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 999px;
  opacity: 0;
  box-shadow:
    inset 0 0 72px rgba(212, 175, 55, 0.035),
    0 0 92px rgba(212, 175, 55, 0.05);
  filter: blur(2px);
  animation: ringPulse 18s ease-in-out infinite;
}

.energy-rings span:nth-child(2) {
  width: min(64vw, 560px);
  animation-delay: 4.5s;
}

.grain {
  z-index: -1;
  opacity: 0.025;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 22%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 38% 78%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 64%, #fff 0 0.8px, transparent 1.4px);
  background-size: 72px 72px, 96px 96px, 88px 88px, 110px 110px;
  animation: grainDrift 900ms steps(2, end) infinite;
}

.launch-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(100vw, 860px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(24px, 5vh, 56px) 20px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.logo-aura {
  position: absolute;
  top: clamp(1.6rem, 4vh, 3rem);
  left: 50%;
  width: min(38vw, 340px);
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.045) 42%, transparent 76%);
  filter: blur(28px);
  transform: translateX(-50%);
  animation: logoGlow 12s ease-in-out infinite;
}

.logo-shell {
  position: relative;
  isolation: isolate;
  width: clamp(138px, 20vw, 238px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  translate: 0 20px;
  scale: 0.95;
  animation:
    logoIntro 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards,
    logoFloat 18s ease-in-out 2.8s infinite;
}

.logo-shell::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  opacity: 0;
  border-radius: 32px;
  background: linear-gradient(105deg, transparent 16%, rgba(245, 239, 230, 0.1) 42%, rgba(212, 175, 55, 0.2) 50%, transparent 74%);
  filter: blur(28px);
  transform: translateX(-52%) scale(1.08);
  animation: logoSlideBehind 14s cubic-bezier(0.45, 0, 0.25, 1) 2.8s infinite;
}

.logo-frame {
  position: relative;
  z-index: 1;
  width: calc(100% - 10px);
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  border-radius: 20px;
  background: transparent;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(212, 175, 55, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.18);
  animation: logoFrameGlow 7.5s ease-in-out 3s infinite;
}

.logo-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.11) 42%, transparent 72%);
  filter: blur(11px);
  opacity: 0.62;
  animation: logoEdgeBreath 10s ease-in-out infinite;
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
  opacity: 1;
}

h1 {
  display: flex;
  width: min(100%, 860px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.18em;
  margin: clamp(22px, 4vh, 34px) 0 0;
  padding-inline: 0;
  color: var(--ivory);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.05rem, 5.2vw, 5.05rem);
  font-weight: 500;
  letter-spacing: clamp(0.08em, 1vw, 0.16em);
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 16px rgba(245, 239, 230, 0.12),
    0 0 34px rgba(212, 175, 55, 0.16);
  overflow: visible;
  opacity: 0;
  transform: translateY(30px);
  animation:
    fadeUp 1.2s ease-out 1.8s forwards,
    headlineGlow 6.5s ease-in-out 3s infinite;
}

h1 span {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
}

.intro {
  width: min(100%, 680px);
  margin: clamp(20px, 4vh, 32px) 0 0;
  color: rgba(245, 239, 230, 0.76);
  font-size: clamp(0.92rem, 1.8vw, 1.04rem);
  letter-spacing: 0.06em;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out 2.5s forwards;
}

.intro span {
  display: block;
}

@keyframes backgroundReveal {
  from {
    background-color: #000;
  }
}

@keyframes slowOrbit {
  0% {
    transform: translate3d(calc(var(--mouse-x) * 0.3), calc(var(--mouse-y) * 0.24), 0) scale(1);
  }

  50% {
    transform: translate3d(calc(var(--mouse-x) * 0.3 + 18px), calc(var(--mouse-y) * 0.24 - 10px), 0) scale(1.08);
  }

  100% {
    transform: translate3d(calc(var(--mouse-x) * 0.3), calc(var(--mouse-y) * 0.24), 0) scale(1);
  }
}

@keyframes luxurySweep {
  0%,
  38%,
  100% {
    opacity: 0;
    transform: translateX(-72%) skewX(-18deg);
  }

  52% {
    opacity: 0.36;
  }

  72% {
    opacity: 0;
    transform: translateX(72%) skewX(-18deg);
  }
}

@keyframes logoIntro {
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    translate: 0 0;
    scale: 1;
  }

  50% {
    translate: 0 -6px;
    scale: 1.01;
  }
}

@keyframes logoGlow {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translateX(-50%) scale(1.02);
    opacity: 0.72;
  }
}

@keyframes logoSlideBehind {
  0%,
  30%,
  100% {
    opacity: 0;
    transform: translateX(-52%) scale(1.08);
  }

  48% {
    opacity: 0.52;
  }

  70% {
    opacity: 0;
    transform: translateX(52%) scale(1.08);
  }
}

@keyframes logoEdgeBreath {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

@keyframes logoFrameGlow {
  0%,
  100% {
    box-shadow:
      0 34px 80px rgba(0, 0, 0, 0.42),
      0 0 36px rgba(212, 175, 55, 0.12),
      0 0 0 1px rgba(212, 175, 55, 0.18);
  }

  50% {
    box-shadow:
      0 38px 96px rgba(0, 0, 0, 0.5),
      0 0 52px rgba(212, 175, 55, 0.24),
      0 0 0 1px rgba(245, 239, 230, 0.24);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineGlow {
  0%,
  100% {
    color: var(--ivory);
    text-shadow:
      0 0 16px rgba(245, 239, 230, 0.12),
      0 0 34px rgba(212, 175, 55, 0.16);
  }

  50% {
    color: #fffaf0;
    text-shadow:
      0 0 18px rgba(245, 239, 230, 0.26),
      0 0 42px rgba(212, 175, 55, 0.28),
      0 0 78px rgba(212, 175, 55, 0.14);
  }
}

@keyframes silkLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(13deg) skewX(-9deg);
  }

  50% {
    transform: translate3d(19vw, 6vh, 0) rotate(7deg) skewX(8deg);
  }
}

@keyframes silkRight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-12deg) skewX(9deg);
  }

  50% {
    transform: translate3d(-18vw, -5vh, 0) rotate(-7deg) skewX(-8deg);
  }
}

@keyframes streakFall {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  14%,
  44% {
    opacity: 0.05;
  }

  100% {
    opacity: 0;
    transform: translateY(134vh);
  }
}

@keyframes bloom {
  0%,
  30%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }

  38%,
  46% {
    opacity: 0.68;
    transform: scale(1);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.82);
  }

  34%,
  62% {
    opacity: 0.58;
  }

  78% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes grainDrift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-3%, 2%);
  }
}

@media (max-width: 680px) {
  .scene {
    min-height: 100dvh;
  }

  .scene::after {
    opacity: 0.12;
  }

  .particle-field {
    opacity: 0.68;
  }

  .ribbons {
    filter: blur(18px);
    opacity: 0.68;
  }

  .launch-panel {
    width: 100vw;
    top: 48%;
    padding: 20px 18px;
  }

  .logo-aura {
    top: 18px;
    width: 220px;
    filter: blur(34px);
    opacity: 0.34;
  }

  .logo-shell {
    width: clamp(118px, 35vw, 148px);
  }

  .logo-frame {
    border-radius: 14px;
  }

  .brand-logo {
    border-radius: 14px;
  }

  h1 {
    width: calc(100vw - 44px);
    max-width: 342px;
    margin-top: 26px;
    font-size: clamp(1.28rem, 5.35vw, 1.62rem);
    letter-spacing: 0.008em;
    line-height: 1.12;
  }

  .intro {
    width: min(100%, 340px);
    margin-top: 24px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    line-height: 1.72;
  }
}

@media (max-width: 680px) and (max-height: 760px) {
  .logo-shell {
    width: clamp(108px, 19vh, 154px);
  }

  h1 {
    margin-top: 22px;
    font-size: clamp(1.38rem, 4.5vh, 2.4rem);
  }

  .intro {
    margin-top: 18px;
    line-height: 1.58;
  }

}

@media (max-width: 380px) {
  .launch-panel {
    top: 47%;
    padding-inline: 14px;
  }

  .logo-shell {
    width: clamp(104px, 32vw, 126px);
  }

  h1 {
    width: calc(100vw - 34px);
    max-width: 314px;
    font-size: clamp(1.08rem, 5vw, 1.28rem);
    letter-spacing: 0;
  }

  .intro {
    width: min(100%, 318px);
    font-size: 0.78rem;
    line-height: 1.62;
  }
}

@media (max-width: 340px) {
  h1 {
    width: calc(100vw - 28px);
    font-size: clamp(0.98rem, 4.8vw, 1.12rem);
  }

  .intro {
    width: min(100%, 292px);
    font-size: 0.74rem;
  }
}

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