@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  color: #f8f9ff;
  background: #050817;
  --night: #050817;
  --ink: #f8f9ff;
  --muted: #aeb7d6;
  --pink: #7980ff;
  --purple: #5659d8;
  --violet: #303889;
  --lilac: #cbd5ff;
  --cyan: #73e8f1;
  --line: rgb(185 198 255 / 16%);
  --serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: transparent;
  overflow-x: hidden;
}

a { color: inherit; }
.cosmos { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #050817; }
.cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    radial-gradient(circle at 18% 20%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 12%, #d7e2ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 66%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 83%, #8e9cff 0 1px, transparent 1.5px);
  background-size: 170px 190px, 230px 260px, 310px 330px, 390px 420px;
}
.cosmos__stars { position: absolute; inset: -20%; will-change: transform; }
.cosmos__stars::before,
.cosmos__stars::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 12vw 8vh #fff, 27vw 22vh #a9b7ff, 45vw 7vh #fff, 63vw 31vh #7eeaf2,
    84vw 14vh #fff, 92vw 47vh #8e9cff, 8vw 63vh #fff, 31vw 78vh #fff,
    57vw 56vh #d8e0ff, 76vw 87vh #fff, 19vw 94vh #7482ff, 96vw 96vh #fff;
}
.cosmos__stars::after { left: 8%; top: 34%; opacity: .45; transform: scale(.55); }
.cosmos__stars--far { transform: rotate(19deg) scale(.8); opacity: .35; }
.cosmos__aurora {
  position: absolute;
  width: 75vw;
  height: 72vw;
  top: -35vw;
  right: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(86 89 216 / 34%), rgb(115 232 241 / 8%) 45%, transparent 68%);
  filter: blur(45px);
}
.cosmos__glow {
  position: absolute;
  width: 65vw;
  height: 65vw;
  bottom: -46vw;
  left: -20vw;
  border-radius: 50%;
  background: rgb(48 56 137 / 26%);
  filter: blur(80px);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; text-decoration: none; }
.brand__logo { width: 3.2rem; height: 3.2rem; display: block; object-fit: contain; filter: drop-shadow(0 0 14px rgb(121 128 255 / 30%)); }
.brand__name { display: flex; flex-direction: column; gap: .12rem; text-transform: uppercase; }
.brand__name strong { font-size: 1rem; letter-spacing: .22em; }
.brand__name small { color: #8d98ba; font-size: .55rem; letter-spacing: .19em; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  color: #d6d0e7;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .06em;
  transition: color .25s ease;
}
.site-nav a:hover { color: white; }
.home-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem .72rem .72rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .04em;
  backdrop-filter: blur(18px);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.home-link svg {
  width: 2rem;
  height: 2rem;
  padding: .45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7e88ff, #4c50bd);
  box-shadow: 0 0 22px rgb(103 112 255 / 32%);
  fill: none;
  stroke: white;
  stroke-width: 1.5;
}
.home-link:hover { transform: translateY(-2px); border-color: rgb(255 255 255 / 32%); background: rgb(255 255 255 / 10%); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(440px, 1.28fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  max-width: 1600px;
  margin: 0 auto;
  padding: 9rem clamp(1.25rem, 7vw, 7rem) 5rem;
}
.hero__copy { position: relative; z-index: 2; }
.eyebrow,
.section-kicker {
  margin: 0 0 1.25rem;
  color: var(--lilac);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
  font-weight: 600;
}
.eyebrow { display: flex; align-items: center; gap: .75rem; }
.eyebrow span { width: 2.5rem; height: 1px; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.075em;
  text-shadow: 0 0 50px rgb(112 122 255 / 24%);
}
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgb(220 228 255 / 76%); }
.hero__lede {
  max-width: 31rem;
  margin: 2.5rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.8;
}
.story-link { display: inline-flex; align-items: center; gap: 1rem; color: white; text-decoration: none; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.story-link span { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid var(--line); border-radius: 50%; background: rgb(255 255 255 / 5%); transition: transform .25s ease, background .25s ease; }
.story-link:hover span { transform: translateY(4px); background: rgb(255 255 255 / 12%); }

.lunar-stage { position: relative; width: min(59vw, 880px); justify-self: center; }
.lunar-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(117 130 255 / 28%), transparent 68%);
  filter: blur(38px);
}
.video-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 3024 / 1948;
  border: 1px solid rgb(186 199 255 / 25%);
  border-radius: 1.5rem;
  overflow: hidden;
  background: #080b20;
  box-shadow: 0 0 0 6px rgb(136 150 255 / 5%), 0 34px 100px rgb(0 0 0 / 48%), 0 0 70px rgb(78 90 211 / 20%);
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-frame__shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgb(255 255 255 / 6%), transparent 24%, transparent 78%, rgb(112 125 255 / 9%)); box-shadow: inset 0 0 40px rgb(98 113 255 / 10%); }
.video-frame__label { position: absolute; left: 1.15rem; bottom: 1rem; display: flex; align-items: center; gap: .55rem; margin: 0; padding: .55rem .75rem; border: 1px solid rgb(184 199 255 / 18%); border-radius: 999px; color: #dce4ff; background: rgb(5 8 23 / 72%); backdrop-filter: blur(12px); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.video-frame__label span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.video-frame__toggle { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border: 1px solid rgb(184 199 255 / 22%); border-radius: 50%; color: #f2f5ff; background: rgb(5 8 23 / 72%); backdrop-filter: blur(12px); cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.video-frame__toggle:hover { transform: scale(1.05); border-color: rgb(202 213 255 / 42%); background: rgb(25 31 75 / 82%); }
.video-frame__toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hero__index { position: absolute; right: clamp(1.25rem, 4vw, 4.5rem); bottom: 2rem; color: #767087; font-family: var(--serif); font-size: .9rem; letter-spacing: .1em; }

.story {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 82vh;
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: .15fr 1fr .68fr .7fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--line);
}
.story__number { color: #6d647f; font-family: var(--serif); font-size: .9rem; }
.story h2,
.world h2,
.finale h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.story h2 { max-width: 8em; font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: .98; }
.story h2 em,
.finale h2 em { color: var(--lilac); font-weight: 400; }
.story__body { padding-top: 3.25rem; }
.story__body p { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.05rem; line-height: 1.9; }
.story__body p:first-child::first-letter { float: left; margin: .1rem .65rem 0 0; color: white; font-family: var(--serif); font-size: 4rem; line-height: .72; }
.story__portrait { align-self: end; width: min(100%, 23rem); max-height: 38rem; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 20px 50px rgb(59 69 166 / 28%)); }

.memory { max-width: 1440px; margin: 0 auto; padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 5vw, 5rem); display: grid; grid-template-columns: .55fr 1.45fr; align-items: center; gap: clamp(2.5rem, 6vw, 6.5rem); }
.memory h2 { margin: 0; max-width: 9em; font-family: var(--serif); font-size: clamp(3rem, 5.4vw, 5.2rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.memory h2 em { color: var(--lilac); font-weight: 400; }
.memory__copy > p:not(.section-kicker) { max-width: 31rem; margin: 2rem 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.memory__legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; color: #8f9bbb; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.memory__legend span { display: flex; align-items: center; gap: .5rem; }
.memory__legend i { width: 1.6rem; height: 1px; background: #8ea0ca; }
.memory__legend span:nth-child(2) i { background: var(--cyan); }
.memory__legend span:nth-child(3) i { border-top: 1px dashed #99a9d2; background: transparent; }
.memory__visual { position: relative; margin: 0; }
.memory__visual::before { content: ""; position: absolute; inset: 8% 5%; z-index: -1; border-radius: 50%; background: rgb(87 99 224 / 22%); filter: blur(50px); }
.memory__visual img { width: 100%; display: block; border: 1px solid rgb(185 198 255 / 22%); border-radius: 1.25rem; box-shadow: 0 30px 90px rgb(0 0 0 / 45%), 0 0 50px rgb(84 96 220 / 12%); }
.memory__visual figcaption { margin-top: .9rem; color: #7f8aac; font-size: .7rem; letter-spacing: .12em; text-align: right; text-transform: uppercase; }

.world { position: relative; isolation: isolate; padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 7vw, 7rem); overflow: hidden; }
.world::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, rgb(48 56 137 / 28%), rgb(115 232 241 / 5%) 45%, rgb(5 8 23 / 42%)); border-block: 1px solid var(--line); }
.world__halo { position: absolute; z-index: -1; width: 56rem; height: 56rem; right: -24rem; top: -23rem; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; box-shadow: 0 0 100px rgb(88 101 231 / 18%); }
.world__content { max-width: 1180px; margin: 0 auto; }
.world h2 { max-width: 10em; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; }
.traits { margin-top: clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.trait { position: relative; padding: 2.2rem clamp(1rem, 3vw, 2.5rem) 1rem 0; min-height: 16rem; }
.trait + .trait { padding-left: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid var(--line); }
.trait__index { margin: 0 0 3rem; color: #8f87a4; font-family: var(--serif); font-size: .8rem; }
.trait__symbol { position: absolute; right: 1.5rem; top: 1.8rem; color: var(--lilac); font-size: 1.3rem; }
.trait h3 { margin: 0 0 .75rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.trait > p:last-child { max-width: 17rem; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }

.finale { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8rem 1.25rem; text-align: center; }
.finale > img { width: clamp(6rem, 9vw, 8rem); margin-bottom: 2.5rem; filter: drop-shadow(0 0 26px rgb(112 124 255 / 28%)); }
.finale h2 { font-size: clamp(4rem, 9vw, 8.5rem); line-height: .88; }
.home-link--large { justify-self: auto; margin-top: 3rem; padding-left: 1.35rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem); border-top: 1px solid var(--line); color: #817b91; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 780px) {
  .site-header { grid-template-columns: 1fr auto; padding-top: 1rem; }
  .site-nav { display: none; }
  .home-link span { display: none; }
  .home-link { padding: .4rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 8rem; }
  .hero__copy { align-self: end; }
  .hero h1 { font-size: clamp(5.5rem, 29vw, 9rem); }
  .hero__lede { margin: 1.8rem 0; }
  .lunar-stage { width: min(92vw, 620px); margin-top: 1rem; }
  .video-frame { border-radius: 1rem; }
  .video-frame__label { left: .7rem; bottom: .7rem; }
  .story { grid-template-columns: 1fr; min-height: auto; gap: 2rem; }
  .story__number { display: none; }
  .story__body { padding-top: 0; }
  .story__portrait { justify-self: center; width: min(88vw, 24rem); }
  .memory { grid-template-columns: 1fr; }
  .memory__visual { grid-row: 1; }
  .traits { grid-template-columns: 1fr; }
  .trait { min-height: 13rem; }
  .trait + .trait { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .finale { min-height: 78vh; }
  .home-link--large { padding: .55rem; }
  .home-link--large span { display: inline; padding-left: .8rem; }
}

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