:root {
  --bg-deep: #080c12;
  --bg-mid: #0f1620;
  --ink: #f4efe6;
  --ink-soft: #a8b0bc;
  --gold: #e8b86d;
  --gold-bright: #ffd98a;
  --coral: #e07a5f;
  --mint: #5ec4b6;
  --violet: #9b7ede;
  --display: "Unbounded", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  color: var(--ink);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* ── Background scene ── */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(224, 122, 95, 0.12), transparent 55%),
    radial-gradient(80% 60% at 0% 0%, rgba(94, 196, 182, 0.1), transparent 50%),
    linear-gradient(175deg, var(--bg-deep) 0%, var(--bg-mid) 48%, #141c28 100%);
  animation: bg-shift 18s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(12deg) brightness(1.04); }
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.aurora-a {
  width: 55vmin;
  height: 40vmin;
  top: -12vmin;
  left: 10%;
  background: linear-gradient(135deg, rgba(232, 184, 109, 0.45), rgba(155, 126, 222, 0.25));
  animation: aurora-drift-a 16s ease-in-out infinite;
}

.aurora-b {
  width: 48vmin;
  height: 38vmin;
  top: 20%;
  right: -8%;
  background: linear-gradient(200deg, rgba(94, 196, 182, 0.35), rgba(224, 122, 95, 0.2));
  animation: aurora-drift-b 22s ease-in-out infinite;
}

.aurora-c {
  width: 60vmin;
  height: 35vmin;
  bottom: -8vmin;
  left: 25%;
  background: linear-gradient(90deg, rgba(155, 126, 222, 0.3), rgba(232, 184, 109, 0.15));
  animation: aurora-drift-c 20s ease-in-out infinite;
}

@keyframes aurora-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(8vw, 6vh) scale(1.12); opacity: 0.7; }
}

@keyframes aurora-drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.45; }
  50% { transform: translate(-6vw, 8vh) rotate(8deg); opacity: 0.65; }
}

@keyframes aurora-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, -4vh) scale(1.08); }
}

.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");
  pointer-events: none;
  animation: grain-flicker 0.5s steps(2) infinite;
}

@keyframes grain-flicker {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 1%); }
}

.rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 109, 0.08);
  animation: ring-pulse 6s ease-out infinite;
}

.ring-1 {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  animation-delay: 0s;
}

.ring-2 {
  width: min(92vw, 680px);
  height: min(92vw, 680px);
  animation-delay: 2s;
  border-color: rgba(94, 196, 182, 0.06);
}

.ring-3 {
  width: min(112vw, 840px);
  height: min(112vw, 840px);
  animation-delay: 4s;
  border-color: rgba(155, 126, 222, 0.05);
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(3px * var(--s));
  height: calc(3px * var(--s));
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(255, 217, 138, 0.8);
  animation: spark-twinkle 3.5s ease-in-out infinite;
  animation-delay: var(--d);
  opacity: 0;
}

@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  20% { opacity: 0.9; transform: scale(1) translateY(-4px); }
  50% { opacity: 0.4; transform: scale(0.8) translateY(-8px); }
  80% { opacity: 1; transform: scale(1.1) translateY(-2px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.35;
  will-change: transform;
}

.orb-a {
  width: 28vmin;
  height: 28vmin;
  bottom: 8%;
  left: 6%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.6), transparent 70%);
  animation: orb-float-a 13s ease-in-out infinite;
}

.orb-b {
  width: 22vmin;
  height: 22vmin;
  top: 12%;
  right: 10%;
  background: radial-gradient(circle, rgba(94, 196, 182, 0.5), transparent 70%);
  animation: orb-float-b 17s ease-in-out infinite;
}

@keyframes orb-float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4vw, -3vh); }
}

@keyframes orb-float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3vw, 5vh); }
}

/* ── Hero content ── */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.brand-wrap {
  position: relative;
  display: inline-block;
  perspective: 600px;
}

.brand-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse at center, rgba(232, 184, 109, 0.22), transparent 65%);
  filter: blur(24px);
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.brand {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 11vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  filter: drop-shadow(0 4px 28px rgba(232, 184, 109, 0.35));
}

.brand-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(48px) rotateX(60deg);
  color: var(--gold-bright);
  animation:
    letter-pop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    letter-shimmer 4s ease-in-out 1s infinite;
}

@keyframes letter-shimmer {
  0%, 100% {
    color: var(--gold-bright);
    text-shadow: 0 0 20px rgba(255, 217, 138, 0.3);
  }
  50% {
    color: var(--mint);
    text-shadow: 0 0 32px rgba(94, 196, 182, 0.45);
  }
}

.brand-letter:nth-child(1) { animation-delay: 0.05s; }
.brand-letter:nth-child(2) { animation-delay: 0.12s; }
.brand-letter:nth-child(3) { animation-delay: 0.19s; }
.brand-letter:nth-child(4) { animation-delay: 0.26s; }
.brand-letter:nth-child(5) { animation-delay: 0.33s; }
.brand-letter:nth-child(6) { animation-delay: 0.40s; }
.brand-letter:nth-child(7) { animation-delay: 0.47s; }

.brand-wrap {
  animation: brand-sway 5.5s ease-in-out 1.1s infinite;
}

@keyframes letter-pop {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes brand-sway {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
}

.welcome {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: welcome-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.welcome-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--ink-soft);
  animation: welcome-glow 3s ease-in-out infinite;
}

@keyframes welcome-glow {
  0%, 100% { color: var(--ink-soft); text-shadow: none; }
  50% { color: var(--gold); text-shadow: 0 0 24px rgba(232, 184, 109, 0.35); }
}

.welcome-line {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--mint), transparent);
  animation: line-draw 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

@keyframes line-draw {
  to { width: min(200px, 42vw); }
}

@keyframes welcome-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand-letter {
    opacity: 1;
    transform: none;
    color: var(--gold-bright);
    animation: none;
  }

  .welcome {
    opacity: 1;
  }

  .welcome-line {
    width: min(200px, 42vw);
  }
}
