/* ————————————————————————————————————————————
   TIME MANDALA — sacred frequencies, ancient futures
   ———————————————————————————————————————————— */

:root {
  --ink: #050505;
  --gold: #e8b86d;
  --gold-bright: #ffd9a0;
  --ochre: #cc7722;
  --mist: rgba(232, 184, 109, 0.55);
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", sans-serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ——— the scene ——— */

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(
      ellipse 120% 90% at 50% 45%,
      #141414 0%,
      #0a0a0a 55%,
      #040404 100%
    );
}

/* ——— atmosphere layers ——— */

.veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse 90% 70% at 50% 50%,
    transparent 0%,
    transparent 55%,
    rgba(5, 5, 5, 0.55) 85%,
    rgba(2, 2, 2, 0.9) 100%
  );
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.5%); }
  50%  { transform: translate(1.5%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ——— hero composition ——— */

.hero {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 4vw, 3rem);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  animation: drift-down 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.kicker {
  font-size: clamp(0.55rem, 1.3vw, 0.72rem);
  font-weight: 300;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* balance the trailing tracking */
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.rune {
  font-size: 0.6rem;
  color: var(--ochre);
  opacity: 0.7;
  animation: rune-pulse 4s ease-in-out infinite;
}

.rune:last-child {
  animation-delay: 2s;
}

@keyframes rune-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 0.9;  transform: scale(1.1); }
}

/* ——— the name ——— */

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 3vh, 2rem);
  /* sit the name just below the mandala's center */
  margin-top: auto;
  margin-bottom: auto;
  transform: translateY(24vh);
}

.band-name {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.5vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 5.5rem);
  line-height: 1;
}

.word {
  display: inline-flex;
}

.letter {
  display: inline-block;
  letter-spacing: 0.18em;
  background: linear-gradient(
    175deg,
    var(--gold-bright) 0%,
    var(--gold) 45%,
    #9c7235 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(232, 184, 109, 0.25));
  opacity: 0;
  animation: letter-reveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.9s + var(--i) * 0.09s);
}

@keyframes letter-reveal {
  0% {
    opacity: 0;
    transform: translateY(0.5em) scale(1.15);
    filter: blur(14px) drop-shadow(0 0 24px rgba(232, 184, 109, 0));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) drop-shadow(0 0 24px rgba(232, 184, 109, 0.25));
  }
}

.divider {
  width: 1px;
  height: 0.85em;
  background: linear-gradient(to bottom, transparent, var(--mist), transparent);
  animation: divider-grow 2s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
}

@keyframes divider-grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.tagline {
  font-size: clamp(0.6rem, 1.6vw, 0.85rem);
  font-weight: 200;
  letter-spacing: 0.85em;
  text-indent: 0.85em;
  text-transform: uppercase;
  color: rgba(216, 205, 189, 0.75);
  animation: drift-up 2.2s cubic-bezier(0.22, 1, 0.36, 1) 2.2s both;
}

/* ——— footer whisper ——— */

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: drift-up 2.4s cubic-bezier(0.22, 1, 0.36, 1) 2.8s both;
}

.hero-bottom .line {
  width: clamp(2rem, 8vw, 5rem);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232, 184, 109, 0.35), transparent);
}

.whisper {
  font-size: clamp(0.55rem, 1.2vw, 0.68rem);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: rgba(232, 184, 109, 0.5);
  white-space: nowrap;
  animation: whisper-breathe 6s ease-in-out 3s infinite;
}

@keyframes whisper-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@keyframes drift-down {
  from { opacity: 0; transform: translateY(-1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drift-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ——— small screens: stack the name ——— */

@media (max-width: 640px) {
  .band-name {
    flex-direction: column;
    gap: 0.6rem;
    font-size: clamp(2.6rem, 13vw, 4rem);
  }
  .divider {
    width: 0.85em;
    height: 1px;
  }
  .hero-center {
    transform: translateY(26vh);
  }
}

/* ——— respect stillness ——— */

@media (prefers-reduced-motion: reduce) {
  .grain,
  .rune,
  .whisper {
    animation: none;
  }
  .letter,
  .divider,
  .tagline,
  .hero-top,
  .hero-bottom {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
}
