
:root {
  --ink: #030504;
  --cream: #f7f3ea;
  --cream-soft: rgba(247,243,234,.72);
  --acid: #dfff39;
  --acid-2: #98ff63;
  --mx: 50vw;
  --my: 50vh;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--cream);
}
body {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
button { font: inherit; }

.noscript {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: #030504; color: #f0eadb; letter-spacing: .18em;
}

.scene {
  position: relative; isolation: isolate; min-height: 100svh; overflow: hidden;
  background: linear-gradient(180deg, #6cb7ff 0%, #7ec0ff 26%, #9bd0ff 44%, #0a1111 100%);
}
.scene__bg,
.scene__vignette,
.scene__topglow,
.grain,
.scanlines,
.aurora,
.ring,
.cloud,
.hill { position: absolute; inset: 0; pointer-events: none; }

.scene__bg {
  z-index: -9;
  background: url('assets/poster-scenic-bg-sharp.jpg') center center / cover no-repeat;
  transition: opacity .9s ease, filter .9s ease, transform .9s ease;
}
.scene__bg--blur {
  opacity: 1;
  filter: blur(18px) saturate(1.06) brightness(1.02);
  transform: scale(1.08);
}
.scene__bg--sharp {
  opacity: 0;
  filter: saturate(1.05) brightness(1.01);
  transform: scale(1.02);
}
.scene.is-revealed .scene__bg--blur { opacity: 0; }
.scene.is-revealed .scene__bg--sharp { opacity: 1; }

.scene__vignette {
  z-index: -8;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 28%, rgba(0,0,0,.08) 48%, rgba(0,0,0,.54) 100%),
    linear-gradient(180deg, rgba(3,4,6,.10) 0%, rgba(3,4,6,.02) 26%, rgba(3,4,6,.34) 74%, rgba(3,4,6,.78) 100%);
}
.scene__topglow {
  z-index: -7;
  background:
    radial-gradient(circle at 52% 11%, rgba(255,255,255,.30), transparent 15%),
    radial-gradient(circle at 18% 11%, rgba(243,183,230,.24), transparent 16%),
    radial-gradient(circle at 84% 10%, rgba(214,185,255,.22), transparent 16%);
  filter: blur(10px);
}

.cloud {
  z-index: -6; inset: auto; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(255,255,255,.95) 0%, rgba(239,229,255,.95) 42%, rgba(226,204,255,.88) 63%, rgba(213,182,246,.72) 84%, rgba(213,182,246,0) 100%);
  filter: blur(18px); opacity: .82;
}
.cloud::before,
.cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud--one { width: min(30vw, 300px); height: min(20vw, 180px); top: 5vh; left: -4vw; animation: drift-one 18s ease-in-out infinite alternate; }
.cloud--one::before { width: 55%; height: 80%; left: 5%; top: 18%; }
.cloud--one::after { width: 40%; height: 65%; right: 8%; top: 10%; }
.cloud--two { width: min(34vw, 360px); height: min(22vw, 200px); top: 3vh; right: -6vw; transform: scale(1.05); animation: drift-two 22s ease-in-out infinite alternate; }
.cloud--two::before { width: 58%; height: 76%; left: 8%; top: 20%; }
.cloud--two::after { width: 42%; height: 62%; right: 10%; top: 12%; }

.hill--main {
  z-index: -5; left: 50%; bottom: -8vh; top: auto; width: min(46vw, 520px); height: min(56vw, 640px); transform: translateX(-50%);
  background: url('assets/hill-reveal.jpg') center 52% / cover no-repeat;
  clip-path: polygon(50% 0%, 75% 19%, 90% 47%, 100% 100%, 0% 100%, 10% 47%, 25% 19%);
  filter: blur(14px) saturate(1.08) brightness(.95) contrast(1.04);
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
  opacity: .84;
  transition: filter .9s ease, transform .9s ease, opacity .9s ease;
}
.scene.is-revealed .hill--main {
  filter: blur(0px) saturate(1.08) brightness(.96) contrast(1.05);
  transform: translateX(-50%) scale(1.015);
  opacity: .96;
}
.hill--main::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(0,0,0,.10) 62%, rgba(0,0,0,.40) 100%),
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.14), transparent 24%);
}

.grain { z-index: 20; opacity: .17; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); animation: grain .22s steps(2) infinite; }
.scanlines { z-index: 19; opacity: .08; background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.08) 4px); }

.aurora { z-index: -3; border-radius: 48% 52% 59% 41% / 56% 36% 64% 44%; filter: blur(46px); opacity: .36; mix-blend-mode: screen; inset: auto; }
.aurora--one { width: 64vw; height: 24vw; left: -12vw; top: 28vh; background: linear-gradient(90deg, transparent, rgba(218,255,57,.28) 42%, rgba(151,255,99,.20) 80%, transparent); transform: rotate(-10deg); animation: drift-three 14s ease-in-out infinite alternate; }
.aurora--two { width: 56vw; height: 20vw; right: -12vw; bottom: 18vh; background: linear-gradient(90deg, transparent, rgba(255,163,222,.20) 33%, rgba(214,185,255,.18) 72%, transparent); transform: rotate(9deg); animation: drift-four 16s ease-in-out infinite alternate; }

.ring { z-index: -2; border: 1px solid rgba(247,243,234,.16); border-radius: 50%; inset: auto; }
.ring--one { width: min(78vw, 1020px); aspect-ratio: 1; left: 50%; top: 49%; transform: translate(-50%, -50%); box-shadow: 0 0 130px rgba(223,255,57,.08) inset; animation: ring-breathe 7s ease-in-out infinite; }
.ring--two { width: min(54vw, 720px); aspect-ratio: 1; left: 50%; top: 49%; transform: translate(-50%, -50%); border-style: dashed; opacity: .48; animation: slow-spin-centered 36s linear infinite reverse; }

#particles {
  position: fixed; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen;
}
.cursor-glow {
  position: fixed; z-index: 3; width: 42vw; height: 42vw; min-width: 300px; min-height: 300px; left: var(--mx); top: var(--my); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(223,255,57,.10) 26%, rgba(95,176,255,.10) 42%, transparent 70%);
  filter: blur(12px); opacity: .75;
}

.topbar,
.footer {
  position: absolute; z-index: 30; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: clamp(20px, 3.6vw, 58px); font-size: 10px; font-weight: 700; letter-spacing: .18em; color: rgba(247,243,234,.76); text-transform: uppercase;
}
.topbar { top: clamp(20px, 4vh, 42px); }
.footer { bottom: max(20px, env(safe-area-inset-bottom)); }
.signal { display: inline-flex; align-items: center; gap: 10px; }
.signal__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px var(--acid); animation: blink 1.5s ease-in-out infinite; }

.sound { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 10px 0 10px 10px; background: transparent; color: inherit; cursor: pointer; }
.sound__bars { display: inline-flex; align-items: end; gap: 2px; height: 12px; }
.sound__bars i { display: block; width: 2px; height: 4px; background: currentColor; transform-origin: bottom; }
.sound[aria-pressed="true"] .sound__bars i { color: var(--acid); animation: equalize .8s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.55s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.18s; }

.hero {
  position: relative; z-index: 15; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(84px, 12vh, 130px) 20px clamp(90px, 10vh, 110px); text-align: center; perspective: 1100px;
}
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 3.5vh, 34px); color: rgba(247,243,234,.68); font-size: clamp(8px, .65vw, 10px); font-weight: 700; letter-spacing: .34em; }
.eyebrow__line { width: clamp(28px, 5vw, 70px); height: 1px; background: linear-gradient(90deg, transparent, rgba(247,243,234,.45)); }
.eyebrow__line:last-child { transform: scaleX(-1); }

.logo-wrap {
  position: relative; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .18s ease-out; will-change: transform;
}
.logo-image {
  display: block; width: min(74vw, 760px); height: auto; background: transparent;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.20)) drop-shadow(0 0 45px rgba(223,255,57,.13)) drop-shadow(0 18px 40px rgba(0,0,0,.18));
}
.scene.is-glitching .logo-image { animation: hue-jump .56s steps(2) both; }

.flare { position: absolute; z-index: 6; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(244,255,221,.95), 0 0 45px 13px rgba(223,255,57,.28); }
.flare::before,
.flare::after { content: ""; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); transform: translate(-50%, -50%); }
.flare::before { width: 120px; height: 1px; }
.flare::after { width: 1px; height: 88px; }
.flare--left { left: 4%; top: 70%; animation: flare-pulse 3s ease-in-out infinite; }
.flare--right { right: 4%; top: 13%; transform: scale(.72); animation: flare-pulse 3.6s ease-in-out .7s infinite; }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(480px, 62vw); margin-top: clamp(28px, 4.5vh, 42px); }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(223,255,57,.75)); }
.divider span:last-child { transform: scaleX(-1); }
.divider b { width: 4px; height: 4px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 20px 5px rgba(223,255,57,.45); }

.coming { margin: clamp(18px, 2.8vh, 28px) 0 0; font-size: clamp(16px, 1.45vw, 24px); font-weight: 700; letter-spacing: .54em; text-indent: .54em; text-transform: uppercase; color: white; text-shadow: 0 6px 28px rgba(0,0,0,.22); }
.subcopy { margin: 10px 0 0; color: rgba(247,243,234,.78); font-size: 9px; font-weight: 800; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; }

.portal {
  position: relative; width: 74px; height: 74px; margin-top: clamp(24px, 4vh, 40px); border: 0; border-radius: 50%; background: transparent; color: rgba(247,243,234,.72); cursor: pointer; outline: none;
}
.portal:focus-visible { box-shadow: 0 0 0 2px var(--cream), 0 0 0 6px rgba(152,255,99,.25); }
.portal__halo,
.portal__core { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.portal__halo {
  width: 62px; height: 62px; border: 1px solid rgba(152,255,99,.28); box-shadow: 0 0 18px rgba(152,255,99,.12), 0 0 45px rgba(152,255,99,.08) inset; animation: halo 2.2s ease-in-out infinite;
}
.portal__core { width: 10px; height: 10px; background: var(--acid); box-shadow: 0 0 18px 4px rgba(152,255,99,.62); }
.portal__label { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; font-size: 8px; font-weight: 800; letter-spacing: .28em; }
.portal:hover .portal__halo { border-color: rgba(214,255,199,.75); }

.message { min-height: 16px; margin: 26px 0 0; color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .28em; text-indent: .28em; text-transform: uppercase; opacity: 0; transition: opacity .35s ease; }
.message.is-visible { opacity: .9; }
.coordinates { opacity: .82; }

.shockwave {
  position: fixed; z-index: 8; left: 50%; top: 50%; width: 8px; height: 8px; border: 1px solid rgba(183,255,157,.8); border-radius: 50%; transform: translate(-50%, -50%) scale(0); pointer-events: none;
}
.scene.is-pulsing .shockwave { animation: shockwave 1.25s cubic-bezier(.1,.65,.2,1) both; }

.boot {
  position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, #70b8ff 0%, #5eaaff 50%, #0b1016 100%); color: rgba(247,243,234,.76); font-size: 8px; font-weight: 800; letter-spacing: .36em; transition: opacity .7s ease, visibility .7s ease;
}
.boot::before { content: ""; width: 170px; height: 1px; margin-bottom: 44px; background: rgba(247,243,234,.2); }
.boot__line { position: absolute; width: 0; height: 1px; background: var(--acid); box-shadow: 0 0 16px var(--acid); animation: bootline 1.2s cubic-bezier(.2,.8,.2,1) forwards; }
body.is-loaded .boot { opacity: 0; visibility: hidden; }
body:not(.is-loaded) .scene { opacity: 0; }
body.is-loaded .scene { animation: reveal 1.1s ease both; }

@keyframes reveal { from { opacity: 0; filter: blur(10px); transform: scale(1.02); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes slow-spin-centered { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(1turn); } }
@keyframes ring-breathe { 0%,100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: .9; transform: translate(-50%, -50%) scale(1.03); } }
@keyframes drift-one { to { transform: translate(7vw, 2vh) scale(1.06); } }
@keyframes drift-two { to { transform: translate(-8vw, 3vh) scale(1.1); } }
@keyframes drift-three { to { transform: translate(10vw, 10vh) rotate(-4deg) scale(1.13); } }
@keyframes drift-four { to { transform: translate(-8vw, -8vh) rotate(3deg) scale(1.12); } }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); } 50% { transform: translate(1%,-2%); } 75% { transform: translate(2%,2%); } 100% { transform: translate(-1%,-1%); } }
@keyframes blink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes equalize { from { height: 3px; } to { height: 12px; } }
@keyframes flare-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes halo { 0%,100% { transform: translate(-50%, -50%) scale(.82); opacity: .34; } 50% { transform: translate(-50%, -50%) scale(1.18); opacity: .9; } }
@keyframes shockwave { 0% { opacity: .9; transform: translate(-50%, -50%) scale(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(160); } }
@keyframes hue-jump {
  0%,100% { filter: drop-shadow(0 0 20px rgba(255,255,255,.20)) drop-shadow(0 0 45px rgba(223,255,57,.13)) drop-shadow(0 18px 40px rgba(0,0,0,.18)); }
  33% { filter: hue-rotate(20deg) saturate(1.1) drop-shadow(6px 0 0 rgba(255,100,180,.3)); }
  66% { filter: hue-rotate(-14deg) saturate(1.1) drop-shadow(-6px 0 0 rgba(100,255,220,.28)); }
}
@keyframes bootline { from { width: 0; } to { width: 170px; } }

@media (max-width: 900px) {
  .logo-image { width: min(84vw, 640px); }
  .hill--main { width: min(62vw, 480px); height: min(74vw, 560px); bottom: -5vh; }
}
@media (max-width: 700px) {
  .topbar, .footer { padding-inline: 18px; }
  .signal { max-width: 60vw; }
  .coordinates { display: none; }
  .eyebrow { letter-spacing: .22em; gap: 8px; }
  .coming { font-size: 13px; letter-spacing: .48em; text-indent: .48em; }
  .ring--one { width: 118vw; }
  .ring--two { width: 82vw; }
  .scene__bg { background-position: center center; }
  .cloud--one { width: 38vw; height: 22vw; top: 7vh; left: -10vw; }
  .cloud--two { width: 42vw; height: 24vw; top: 4vh; right: -14vw; }
  .hill--main { width: 74vw; height: 88vw; bottom: -1vh; }
}
@media (max-height: 700px) {
  .hero { padding-top: 74px; padding-bottom: 70px; }
  .eyebrow { margin-bottom: 18px; }
  .divider { margin-top: 24px; }
  .portal { margin-top: 20px; }
  .message { margin-top: 18px; }
  .logo-image { width: min(64vw, 620px); }
}
@media (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .cursor-glow, #particles { display: none; }
}
