:root {
  --ink: #050914;
  --ink-2: #0a1220;
  --ice: #d8e8f5;
  --blue: #90b8d6;
  --gold: #e6b866;
  --gold-soft: #f1d39b;
  --white: #f4f6f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #02060d;
  isolation: isolate;
}

.space, .space > * { position: absolute; inset: 0; pointer-events: none; }
.space { z-index: -5; background:
  radial-gradient(circle at 72% 28%, rgba(89,126,184,.23), transparent 16%),
  radial-gradient(circle at 72% 30%, rgba(177,105,151,.12), transparent 22%),
  linear-gradient(180deg, #02050b 0%, #07101c 55%, #0b1826 100%);
}

.stars {
  background-repeat: repeat;
  opacity: .8;
}
.stars-a {
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle, #7fb7e5 0 1px, transparent 1.2px);
  background-size: 93px 93px, 137px 137px;
  background-position: 10px 15px, 61px 42px;
  animation: drift 55s linear infinite;
}
.stars-b {
  opacity: .35;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.1px);
  background-size: 47px 47px;
  background-position: 12px 28px;
  animation: drift 85s linear infinite reverse;
}

.nebula {
  inset: -15% -10% 10% 48%;
  filter: blur(10px);
  background:
    radial-gradient(ellipse at 45% 35%, rgba(85,139,198,.28), transparent 35%),
    radial-gradient(ellipse at 58% 40%, rgba(153,92,151,.22), transparent 25%),
    radial-gradient(ellipse at 68% 46%, rgba(232,173,109,.14), transparent 20%);
  transform: rotate(-16deg);
}

.planet {
  width: 28vw;
  height: 28vw;
  min-width: 280px;
  min-height: 280px;
  left: auto;
  right: -10vw;
  top: 23vh;
  border-radius: 50%;
  box-shadow: -12px 0 24px rgba(169,209,241,.5), inset 40px -8px 90px rgba(102,155,193,.25);
  background:
    radial-gradient(circle at 22% 48%, rgba(220,235,247,.42), transparent 3%),
    radial-gradient(circle at 36% 30%, rgba(75,108,136,.42), transparent 13%),
    linear-gradient(100deg, #7691aa 0%, #23384e 24%, #07111d 57%, #000 78%);
  opacity: .88;
}

.horizon-glow {
  top: auto;
  height: 34%;
  background:
    radial-gradient(ellipse at 78% 0%, rgba(255,209,134,.9) 0 1%, rgba(255,205,122,.22) 5%, transparent 17%),
    radial-gradient(ellipse at 50% 15%, rgba(127,197,242,.22), transparent 32%);
  border-top: 1px solid rgba(153,211,246,.55);
  transform: perspective(650px) rotateX(60deg) scaleX(1.25);
  transform-origin: center top;
}

.ice-field {
  top: auto;
  height: 28%;
  background:
    linear-gradient(160deg, transparent 0 26%, rgba(95,132,161,.22) 27% 29%, transparent 30%),
    linear-gradient(20deg, transparent 0 40%, rgba(148,188,216,.18) 41% 43%, transparent 44%),
    linear-gradient(180deg, rgba(38,61,80,.42), rgba(4,9,15,.98));
  clip-path: polygon(0 28%, 10% 18%, 20% 31%, 31% 20%, 44% 30%, 56% 14%, 67% 26%, 77% 17%, 88% 25%, 100% 10%, 100% 100%, 0 100%);
}

.monolith {
  inset: auto auto 18% 7%;
  width: clamp(70px, 8vw, 130px);
  height: clamp(260px, 44vh, 520px);
  transform: perspective(800px) rotateY(-12deg) rotateZ(-2deg);
  background: linear-gradient(90deg, #03070b 0%, #0a1118 70%, #172534 100%);
  box-shadow: 14px 18px 45px rgba(0,0,0,.55);
  clip-path: polygon(10% 0, 88% 8%, 100% 100%, 0 94%);
}
.monolith span {
  position: absolute;
  right: 12%;
  top: 6%;
  width: 3px;
  height: 86%;
  background: linear-gradient(180deg, transparent, #f4c777 14%, #9fd8ff 55%, transparent);
  box-shadow: 0 0 12px #d6f0ff, 0 0 28px rgba(222,177,94,.65);
}

.site-header {
  position: absolute;
  inset: 3.5vh 5vw auto 5vw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  z-index: 5;
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 18px;
  align-items: center;
}
.sigil {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold);
  font-size: 32px;
  box-shadow: 0 0 0 8px rgba(230,184,102,.03);
}
.brand strong {
  display: block;
  font-size: clamp(18px, 2vw, 34px);
  letter-spacing: .25em;
  font-weight: 300;
  background: linear-gradient(90deg, var(--gold-soft), #fff);
  -webkit-background-clip: text;
  color: transparent;
}
.brand small {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: .42em;
  color: #e7edf4;
}
.nav { display: flex; gap: 38px; padding-top: 12px; }
.nav a {
  color: #f0f3f6;
  text-decoration: none;
  letter-spacing: .26em;
  font-size: 11px;
  opacity: .9;
}
.nav a:hover { color: var(--gold-soft); }

.hero-copy {
  width: min(760px, 58vw);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 17vh 0 8vh;
  position: relative;
  z-index: 2;
}
.eyebrow {
  color: #b8cce0;
  letter-spacing: .46em;
  font-size: 11px;
  line-height: 1.9;
}
.eyebrow span { display: block; }
.hero h1 {
  margin: 20px 0 8px;
  color: var(--gold-soft);
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 300;
  letter-spacing: .22em;
}
.hero h2 {
  margin: 0 0 18px;
  color: #d8e4ee;
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: .35em;
}

.crawl-frame {
  width: min(640px, 90%);
  height: min(34vh, 330px);
  overflow: hidden;
  perspective: 560px;
  margin-top: 4px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 86%, transparent 100%);
}
.crawl {
  color: #e6b866;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(15px, 1.45vw, 22px);
  line-height: 1.45;
  transform-origin: 50% 100%;
  animation: crawlIn 2.2s cubic-bezier(.18,.8,.24,1) both;
}
.crawl p { margin: 0 0 14px; text-shadow: 0 2px 18px rgba(0,0,0,.72); }
.crawl strong { color: #f0c979; }
.manifesto { font-size: 1.06em; }

.enter {
  margin-top: 22px;
  border: 0;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
  letter-spacing: .38em;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 300;
  padding: 18px 25px 55px;
  position: relative;
}
.enter::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  left: 50%;
  top: 62px;
}
.enter i {
  position: absolute;
  width: 16px; height: 16px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  left: calc(50% - 8px);
  top: 60px;
  animation: pulse 1.8s ease-in-out infinite;
}
.enter:hover span { text-shadow: 0 0 18px rgba(230,184,102,.65); }

.rail, .footer-note {
  position: absolute;
  z-index: 3;
  color: #9fb9d0;
  letter-spacing: .32em;
  font-size: 9px;
  line-height: 2.6;
}
.rail { top: 22vh; display: grid; gap: 4px; }
.rail-left { left: 2vw; border-left: 1px solid #d7e5ef; padding-left: 14px; }
.rail-right { right: 2.2vw; text-align: right; border-right: 1px solid #d7e5ef; padding-right: 14px; }
.footer-note { bottom: 4vh; display: grid; }
.footer-left { left: 2vw; border-left: 1px solid #d7e5ef; padding-left: 14px; }
.footer-right { right: 2.2vw; border-right: 1px solid #d7e5ef; padding-right: 14px; text-align: right; }

.next-world {
  background:
    radial-gradient(circle at 70% 0%, rgba(76,125,167,.12), transparent 30%),
    linear-gradient(#07101b, #02060c 55%);
  min-height: 100vh;
  padding: 110px 6vw;
}
.next-inner { max-width: 1080px; margin: 0 auto; }
.next-world h2 {
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1;
  font-weight: 300;
  max-width: 900px;
  margin: 12px 0 24px;
}
.next-world > div > p:not(.eyebrow):not(.contact) {
  max-width: 780px;
  color: #aebdca;
  line-height: 1.8;
  font-size: 18px;
}
.cards {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(179,209,232,.16);
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.cards span { color: var(--gold); font-size: 11px; letter-spacing: .2em; }
.cards h3 { letter-spacing: .22em; font-weight: 400; margin-top: 48px; }
.cards p { color: #9eb0bf; line-height: 1.7; }
.contact { margin-top: 100px; color: #60788d; font-size: 12px; letter-spacing: .16em; }

@keyframes crawlIn {
  from { opacity: 0; transform: rotateX(18deg) translateY(70px) scale(.92); }
  to { opacity: 1; transform: rotateX(15deg) translateY(0) scale(.96); }
}
@keyframes drift { to { background-position: 300px 140px, -220px 210px; } }
@keyframes pulse {
  0%,100% { transform: translateY(0) rotate(45deg); opacity: .45; }
  50% { transform: translateY(8px) rotate(45deg); opacity: 1; }
}

@media (max-width: 900px) {
  .nav, .rail, .footer-note { display: none; }
  .site-header { inset: 24px 24px auto; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 8px; }
  .sigil { width: 44px; height: 44px; font-size: 22px; }
  .hero-copy { width: 88vw; padding-top: 20vh; }
  .hero h1 { letter-spacing: .12em; }
  .hero h2 { letter-spacing: .2em; }
  .crawl-frame { height: 38vh; }
  .planet { right: -28vw; opacity: .5; }
  .monolith { left: -2%; opacity: .68; }
  .cards { grid-template-columns: 1fr; }
}
