@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@700;800;900&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --ink: #030407;
  --ice: #dff7ff;
  --violet: #a984ff;
}

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

html, body { width: 100%; min-height: 100%; background: var(--ink); }

body {
  overflow-x: hidden;
  font-family: "DM Sans", sans-serif;
  color: #fff;
}

.starfield {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.24) 100%);
}

.starfield canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.intro-copy,
.starfield-headers,
.outro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.intro-copy {
  z-index: 2;
  align-content: center;
  justify-items: center;
  pointer-events: none;
  text-align: center;
}

.intro-kicker,
.intro-hint,
.dimension-label,
.dimension-subtitle {
  font-size: clamp(0.58rem, 0.75vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro-kicker {
  margin-bottom: 1.45rem;
  color: rgba(223, 247, 255, 0.56);
}

.intro-copy h1,
.starfield-headers h1,
.outro h1 {
  margin: 0;
  font-size: clamp(3rem, 8.2vw, 10.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.88;
  text-transform: uppercase;
}

.intro-copy h1 {
  color: #f7fdff;
  text-shadow: 0 0 48px rgba(172, 235, 255, 0.2);
}

.intro-copy h1 span { color: #86e6ff; }

.intro-hint {
  margin-top: 2.15rem;
  color: rgba(223, 247, 255, 0.42);
}

.starfield-headers {
  z-index: 2;
  pointer-events: none;
}

.starfield-headers h1 {
  position: absolute;
  width: min(76rem, 82vw);
  color: #fff;
  text-align: center;
  text-shadow: 0 0 42px rgba(152, 210, 255, 0.18);
  visibility: hidden;
  will-change: opacity, transform;
}

.outro {
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(119, 81, 255, 0.28), transparent 18%),
    radial-gradient(circle at 50% 50%, #17102f 0%, #080611 48%, #020205 100%);
}

.outro::before,
.outro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.outro::before {
  inset: -24%;
  opacity: 0.65;
  background:
    conic-gradient(from 80deg at 50% 50%, transparent 0deg, rgba(182, 132, 255, 0.2) 20deg, transparent 57deg, rgba(95, 224, 255, 0.15) 116deg, transparent 155deg);
  transform: rotate(-14deg);
}

.outro::after {
  width: min(84vw, 72rem);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(203, 177, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 105px rgba(112, 55, 255, 0.26), inset 0 0 80px rgba(76, 223, 255, 0.08);
  transform: translate(-50%, -50%) rotate(-12deg) scaleX(0.55);
}

.outro-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 74rem);
  text-align: center;
  padding-bottom: clamp(2rem, 6vh, 5rem);
}

.dimension-label {
  margin-bottom: clamp(1.25rem, 3vw, 2.3rem);
  color: rgba(227, 215, 255, 0.7);
}

.logo-placeholder {
  position: relative;
  display: grid;
  width: clamp(5.4rem, 10vw, 8.4rem);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: clamp(1.65rem, 3vw, 2.65rem);
  border: 1px solid rgba(160, 224, 255, 0.8);
  border-radius: 50%;
  color: rgba(222, 247, 255, 0.95);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  box-shadow: 0 0 34px rgba(113, 217, 255, 0.28);
}

.logo-placeholder::before,
.logo-placeholder::after,
.logo-placeholder i {
  content: "";
  position: absolute;
  border: 1px solid rgba(189, 141, 255, 0.5);
  border-radius: 50%;
}

.logo-placeholder::before { inset: 12%; }
.logo-placeholder::after {
  inset: -13%;
  border-color: rgba(116, 222, 255, 0.24);
  transform: rotate(45deg) scaleX(0.42);
}
.logo-placeholder i {
  inset: -13%;
  border-color: rgba(189, 141, 255, 0.25);
  transform: rotate(-45deg) scaleX(0.42);
}

.outro h1 {
  max-width: 100%;
  margin-bottom: 1.35rem;
  color: #f4eeff;
  font-size: clamp(3rem, 7.6vw, 9.4rem);
  text-shadow: 0 0 48px rgba(205, 168, 255, 0.48);
}

.dimension-subtitle {
  color: rgba(227, 215, 255, 0.48);
}



@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}



body {
  font-family: "Inter", sans-serif;
}

.intro-kicker,
.intro-hint,
.dimension-label,
.dimension-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.intro-copy h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.starfield-headers h1,
.outro h1 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.starfield-headers h1 {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.journey-word,
.final-word {
  display: inline-block;
  white-space: nowrap;
}

.journey-char,
.final-char {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.outro h1 {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Playful multiverse arrival */
.outro {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 228, 75, 0.82), transparent 13%),
    radial-gradient(circle at 77% 19%, rgba(255, 70, 181, 0.68), transparent 19%),
    radial-gradient(circle at 78% 78%, rgba(77, 237, 255, 0.68), transparent 18%),
    radial-gradient(circle at 25% 76%, rgba(142, 103, 255, 0.7), transparent 22%),
    linear-gradient(135deg, #2a0c59 0%, #171674 42%, #042a5e 100%);
}

.outro::before {
  inset: -20%;
  opacity: 0.9;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(255, 255, 255, 0.34) 0 1.2%, transparent 1.7%),
    radial-gradient(ellipse at 75% 64%, rgba(255, 255, 255, 0.32) 0 1%, transparent 1.6%),
    conic-gradient(from 24deg at 50% 50%, rgba(255, 75, 181, 0.32), transparent 18%, rgba(77, 237, 255, 0.28) 35%, transparent 53%, rgba(255, 228, 75, 0.3) 70%, transparent 86%);
  transform: rotate(15deg);
}

.outro::after {
  width: min(86vw, 76rem);
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 14px rgba(255, 80, 186, 0.09),
    0 0 0 34px rgba(81, 233, 255, 0.07),
    0 0 105px rgba(136, 90, 255, 0.55),
    inset 0 0 85px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) rotate(18deg) scaleX(0.62);
}

.dimension-label {
  color: rgba(255, 250, 205, 0.92);
  text-shadow: 0 0 18px rgba(255, 228, 75, 0.6);
}

.logo-placeholder {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fffde4;
  background: linear-gradient(135deg, rgba(255, 70, 181, 0.45), rgba(77, 237, 255, 0.35));
  box-shadow: 0 0 0 8px rgba(255, 228, 75, 0.12), 0 0 38px rgba(255, 75, 181, 0.5);
}

.logo-placeholder::before { border-color: rgba(255, 228, 75, 0.86); }
.logo-placeholder::after { border-color: rgba(77, 237, 255, 0.72); }
.logo-placeholder i { border-color: rgba(255, 120, 200, 0.72); }

.outro h1 {
  font-weight: 700;
  letter-spacing: 0.12em;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.dimension-subtitle {
  color: rgba(241, 250, 255, 0.76);
}

/* Generated illustrated universe artwork */
.outro {
  background-image:
    linear-gradient(90deg, rgba(9, 3, 39, 0.36), rgba(14, 6, 48, 0.1) 48%, rgba(7, 5, 34, 0.42)),
    url("./assets/encore-multiverse.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.outro::before {
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(circle at center, rgba(9, 4, 48, 0.02) 0 20%, rgba(6, 3, 30, 0.38) 75%),
    linear-gradient(180deg, rgba(4, 0, 25, 0.12), rgba(4, 0, 25, 0.3));
  transform: none;
}

.outro::after {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 105px rgba(255, 91, 204, 0.42), inset 0 0 85px rgba(106, 237, 255, 0.12);
}

.logo-placeholder {
  overflow: visible;
  padding: 0.5rem;
  background: rgba(19, 8, 68, 0.22);
}

.logo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.24));
}

/* Final frame: pure logo, compact headline, one punchy festival line */
.logo-placeholder {
  display: block;
  width: clamp(8rem, 16vw, 13rem);
  height: auto;
  aspect-ratio: auto;
  margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo-placeholder::before,
.logo-placeholder::after,
.logo-placeholder i {
  display: none;
}

.logo-placeholder img {
  width: 100%;
  height: auto;
  max-height: 13rem;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.outro h1 {
  max-width: none;
  margin-bottom: clamp(1.2rem, 2.5vw, 2.2rem);
  font-size: clamp(1.6rem, 3.2vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dimension-subtitle {
  max-width: 92vw;
  font-size: clamp(0.55rem, 0.7vw, 0.75rem);
  letter-spacing: 0.3em;
  white-space: nowrap;
}

/* Responsive Mobile & Tablet Design System */
@media (max-width: 768px) {
  .intro-copy {
    padding: 0 1.2rem;
  }

  .intro-copy h1 {
    font-size: clamp(2.6rem, 12vw, 5rem);
    letter-spacing: 0.03em;
  }

  .intro-kicker,
  .intro-hint {
    font-size: clamp(0.65rem, 2.8vw, 0.8rem);
    letter-spacing: 0.22em;
  }

  .starfield-headers h1 {
    width: 84vw;
    font-size: clamp(2.2rem, 9.5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: normal;
    text-align: center;
  }

  .outro-copy {
    width: 90vw;
    padding-bottom: clamp(1.5rem, 4vh, 3rem);
  }

  .logo-placeholder {
    top: 0.5rem;
    width: clamp(12rem, 54vw, 18rem);
    margin-bottom: 0.8rem;
    transform: none;
  }

  .outro h1 {
    width: 86vw;
    font-size: clamp(1.6rem, 7.5vw, 2.8rem);
    letter-spacing: 0.02em;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }

  .dimension-subtitle {
    font-size: clamp(0.55rem, 2.8vw, 0.78rem);
    letter-spacing: 0.16em;
    white-space: normal;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .intro-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .starfield-headers h1 {
    width: 86vw;
    font-size: clamp(1.8rem, 8.5vw, 2.8rem);
    line-height: 1.1;
  }

  .logo-placeholder {
    top: 0.2rem;
    width: clamp(10.5rem, 60vw, 15rem);
    margin-bottom: 0.6rem;
  }

  .outro h1 {
    width: 88vw;
    font-size: clamp(1.4rem, 6.8vw, 2.2rem);
    line-height: 1.15;
  }

  .dimension-subtitle {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
  }
}

@media (max-height: 650px) {
  .logo-placeholder {
    width: clamp(8rem, 28vh, 12rem);
    top: 0;
    margin-bottom: 0.4rem;
  }

  .outro h1 {
    font-size: clamp(1rem, 3.5vh, 1.6rem);
    margin-bottom: 0.4rem;
  }

  .outro-copy {
    padding-bottom: 1rem;
  }
}

.logo-placeholder {
  position: relative;
  top: 3.2rem;
  width: clamp(21.8rem, 40vw, 32.8rem);
  margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
  transform: scale(1.05);
  transform-origin: center bottom;
}

.logo-placeholder img {
  width: 100%;
  max-height: none;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 50px rgba(124, 245, 255, 0.22));
}


/* Sci-fi title treatment */
.outro h1 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.warp-exit {
  position: absolute;
  inset: -22%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.16);
  transform-origin: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.98) 0 1.6%, rgba(172,240,255,0.94) 3.2%, rgba(114,121,255,0.62) 8%, rgba(255,70,186,0.34) 17%, rgba(92,39,255,0.12) 32%, transparent 56%);
  filter: blur(2px);
  mix-blend-mode: screen;
}

.starfield canvas {
  transform-origin: center;
  will-change: transform, filter, opacity;
}

/* Portal-membrane exit: an understated dimensional opening */
.warp-exit {
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(46vw, 44rem);
  aspect-ratio: 2.1;
  border: 1px solid rgba(208, 248, 255, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.92) 0 1.2%, rgba(164,239,255,0.66) 4.5%, rgba(137,115,255,0.2) 18%, transparent 56%);
  box-shadow:
    0 0 18px rgba(169, 241, 255, 0.5),
    0 0 70px rgba(126, 99, 255, 0.24),
    inset 0 0 18px rgba(255, 255, 255, 0.3);
  filter: blur(1px);
  mix-blend-mode: screen;
}

.warp-exit::before {
  content: "";
  position: absolute;
  inset: 14% -7%;
  border-radius: 50%;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(154,232,255,0.68);
  box-shadow: 0 0 20px rgba(148, 227, 255, 0.46);
}

.warp-exit::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.92), transparent);
  box-shadow: 0 0 18px rgba(154, 236, 255, 0.9);
}

/* Liquid dimensional drop */
.warp-exit {
  width: min(28vw, 27rem);
  aspect-ratio: 0.76;
  border: 1px solid rgba(214, 249, 255, 0.8);
  border-radius: 58% 42% 56% 44% / 52% 48% 62% 38%;
  background:
    radial-gradient(ellipse at 38% 28%, rgba(255,255,255,0.95) 0 2%, transparent 9%),
    radial-gradient(ellipse at 50% 48%, rgba(173,243,255,0.8) 0 7%, rgba(127,106,255,0.4) 26%, rgba(255,82,196,0.13) 50%, transparent 72%);
  box-shadow:
    0 0 22px rgba(175, 241, 255, 0.6),
    0 0 82px rgba(155, 94, 255, 0.32),
    inset 0 0 24px rgba(255, 255, 255, 0.38);
  clip-path: polygon(50% 0%, 72% 18%, 87% 44%, 85% 68%, 69% 90%, 50% 100%, 30% 90%, 15% 68%, 13% 44%, 28% 18%);
}

.warp-exit::before {
  inset: 8% 14%;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(220, 249, 255, 0.78) 50%, transparent 57%);
  box-shadow: none;
}

.warp-exit::after {
  left: 27%;
  right: 27%;
  top: 32%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.94), rgba(160,237,255,0.4) 32%, transparent 70%);
  box-shadow: 0 0 24px rgba(154, 236, 255, 0.72);
}

/* Restore the refined portal membrane */
.warp-exit {
  width: min(46vw, 44rem);
  aspect-ratio: 2.1;
  border: 1px solid rgba(208, 248, 255, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.92) 0 1.2%, rgba(164,239,255,0.66) 4.5%, rgba(137,115,255,0.2) 18%, transparent 56%);
  box-shadow:
    0 0 18px rgba(169, 241, 255, 0.5),
    0 0 70px rgba(126, 99, 255, 0.24),
    inset 0 0 18px rgba(255, 255, 255, 0.3);
  clip-path: none;
}

.warp-exit::before {
  inset: 14% -7%;
  border-radius: 50%;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(154,232,255,0.68);
  background: transparent;
  box-shadow: 0 0 20px rgba(148, 227, 255, 0.46);
}

.warp-exit::after {
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.92), transparent);
  box-shadow: 0 0 18px rgba(154, 236, 255, 0.9);
}
