@font-face {
  font-family: Audiowide;
  src: url("assets/audiowide.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
:root {
  color-scheme: dark;
  --space: #090c18;
  --surface: #101521;
  --text: #eeeae1;
  --muted: #abb3bd;
  --gold: #eeb963;
  --line: #323a46;
  --display: Audiowide, system-ui, sans-serif;
  --body: Audiowide, system-ui, sans-serif;
  --radius: 8px;
  --header-layer: 4;
  --dialog-layer: 8;
}
* {
  box-sizing: border-box;
}
main {
  overflow: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--space) url("assets/starfield.webp") repeat;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  color: inherit;
}
::selection {
  background: var(--gold);
  color: var(--space);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
em {
  font-style: normal;
  color: var(--gold);
}
.section-wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 64px;
}
section[id] {
  scroll-margin-top: 24px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: var(--dialog-layer);
  padding: 12px;
  background: var(--gold);
  color: var(--space);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  height: 80px;
  max-width: 1440px;
  margin: auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: var(--header-layer);
}
.wordmark {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.wordmark span {
  color: var(--gold);
}
nav {
  display: flex;
  gap: 34px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--gold);
}
.header-play {
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid #705e42;
  border-radius: var(--radius);
  padding: 10px 18px;
  color: var(--gold);
}
.header-play span {
  margin-left: 20px;
}
.header-play:hover {
  background: var(--gold);
  color: var(--space);
}
.hero {
  max-width: 1440px;
  min-height: min(810px, calc(100svh - 80px));
  margin: auto;
  padding: 58px 64px 70px;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 16px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(62px, 7.5vw, 112px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-top: 25px;
}
.hero h1 > span {
  display: block;
  font-size: 1.58em;
  color: var(--gold);
  line-height: 1.12;
  letter-spacing: -0.055em;
}
.degree {
  display: inline-block;
  vertical-align: top;
  font-size: 0.42em;
  line-height: 1.85;
  margin-left: 9px;
}
.hero-hook {
  font-size: clamp(21px, 2.05vw, 29px);
  line-height: 1.4;
  margin-top: 22px;
  color: var(--text);
}
.hero-hook > span {
  display: block;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition:
    transform 0.2s,
    background 0.2s;
  color: var(--space);
  white-space: nowrap;
}
.button-primary {
  background: var(--gold);
  box-shadow:
    inset 0 1px 0 #ffdfa6,
    inset 0 -3px 0 #b58238;
}
.button:hover {
  transform: translateY(-3px);
  background: #f9c77f;
}
.button:active {
  transform: translateY(0);
}
.button-secondary {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
}
.button-secondary:hover {
  color: var(--space);
}
.hero-actions .android-download {
  min-height: 74px;
  gap: 14px;
  padding: 15px 20px;
}
.android-download > span[aria-hidden] {
  font-size: 24px;
}
.android-download-label {
  display: grid;
  gap: 6px;
  text-align: left;
}
.android-download-version {
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.text-link {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  transition: color 0.2s;
}
.hero-world {
  position: absolute;
  width: 650px;
  height: 650px;
  right: -46px;
  top: 90px;
  perspective: 1000px;
  z-index: 1;
}
.world-layer {
  position: absolute;
  left: 0;
  top: 134px;
  width: 650px;
}
.hero-planet {
  width: 100%;
  filter: drop-shadow(0 26px 30px #02040d);
}
.satellite-layer {
  position: absolute;
  left: 172px;
  top: 64px;
  width: 146px;
  transform: rotate(-18deg);
  filter: drop-shadow(0 18px 12px #02040d);
}
.satellite-layer img {
  width: 100%;
}
.moon-layer {
  position: absolute;
  width: 88px;
  right: 40px;
  top: 8px;
  opacity: 0.65;
  filter: blur(0.4px);
}
.sun-layer {
  position: absolute;
  width: 120px;
  left: 418px;
  top: -42px;
  opacity: 0.86;
  filter: blur(0.3px);
}
.orbit-track {
  position: absolute;
  border: 1px solid #b8a57935;
  left: -5px;
  top: 20px;
  width: 630px;
  height: 630px;
  border-radius: 50%;
  transform: rotate(-26deg) scaleY(0.64);
}
.orbit-track-back {
  opacity: 0.4;
}
.orbit-track-front {
  top: 88px;
  left: 37px;
  width: 540px;
  height: 540px;
  transform: rotate(32deg) scaleY(0.75);
  border-color: #8cabc130;
}
.twist {
  padding-top: 90px;
  padding-bottom: 125px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.twist-visual {
  position: relative;
  height: 550px;
  perspective: 1000px;
}
.turn-orbit {
  position: absolute;
  width: 440px;
  height: 440px;
  left: -15px;
  top: 70px;
  border: 1px solid #74624780;
  border-radius: 50%;
  transform: rotate(-20deg) scaleY(0.81);
}
.turn-orbit:before,
.turn-orbit:after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid #74624725;
  border-radius: 50%;
}
.turn-orbit:after {
  inset: -24px;
}
.turn-orbit span {
  position: absolute;
  bottom: -36px;
  right: 25px;
  font: 67px var(--display);
  color: #6d5b3f;
}
.phone {
  position: absolute;
  top: 8px;
  left: 100px;
  width: 256px;
  border: 7px solid #323942;
  border-radius: 33px;
  padding: 4px;
  background: #080b14;
  box-shadow:
    18px 35px 0 -8px #01030c80,
    0 32px 45px #03050db0;
  transform: rotate(-9deg);
}
.phone img {
  border-radius: 22px;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.phone:before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  height: 7px;
  width: 58px;
  border-radius: 8px;
  background: #323942;
}
.twist-satellite {
  position: absolute;
  width: 111px;
  right: -4px;
  bottom: 78px;
  transform: rotate(16deg);
  filter: drop-shadow(0 18px 12px #03050d);
}
h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.35vw, 48px);
  line-height: 1.28;
  letter-spacing: -0.045em;
}
.twist-copy > p {
  max-width: 410px;
  font-size: 15px;
  color: var(--muted);
  margin-top: 25px;
}
.inhabitants {
  padding-top: 30px;
  padding-bottom: 120px;
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.inhabitants-copy p {
  font-size: 16px;
  color: var(--muted);
  max-width: 365px;
  margin-top: 24px;
}
.inhabitants-copy p:first-of-type {
  font-size: 23px;
  line-height: 1.6;
  color: var(--text);
}
.horizon {
  position: relative;
  min-width: 0;
}
.horizon-image {
  width: 100%;
  border-radius: 50% 50% 0 0 / 15% 15% 0 0;
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.inhabitant-float {
  position: absolute;
  width: 96px;
  right: 8%;
  top: -54px;
  transform: rotate(12deg);
  filter: drop-shadow(10px 18px 8px #01040d);
}
.gameplay {
  padding-top: 85px;
  padding-bottom: 105px;
}
.gameplay-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}
.gameplay-heading p:last-child {
  font-size: 15px;
  color: var(--muted);
  margin-top: 23px;
}
.footage-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  max-width: 930px;
  margin: auto;
  align-items: center;
}
.footage-main {
  max-width: 430px;
}
.video-shell {
  border: 1px solid #705e42;
  border-radius: 18px;
  padding: 9px;
  background: #151b24;
  box-shadow: 0 22px 50px #02040d;
}
.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--space);
  aspect-ratio: 3/4;
}
figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.gameplay-side {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 0;
}
.still {
  width: calc(50% - 10px);
  min-width: 0;
}
.still-one {
  transform: translateY(-44px) rotate(-5deg);
}
.still-two {
  transform: translateY(44px) rotate(6deg);
}
.screenshot-button {
  display: block;
  width: 100%;
  padding: 6px;
  border: 1px solid #65758b60;
  background: #151b24;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: 0 20px 35px #02040d;
  transition: transform 0.3s;
}
.screenshot-button:hover {
  transform: translateY(-6px);
}
.screenshot-button img {
  border-radius: 7px;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.capture-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 40px;
}
.publisher {
  padding-top: 90px;
  padding-bottom: 105px;
}
.publisher-heading {
  max-width: 870px;
}
.publisher-heading > p:last-child {
  max-width: 600px;
  font-size: 16px;
  color: var(--muted);
  margin-top: 25px;
}
.publisher-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 62px;
}
.project-facts h3 {
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 30px;
}
.project-facts dl {
  margin: 0;
  display: grid;
  gap: 21px;
}
.project-facts dl > div {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  font-size: 13px;
}
.project-facts dt {
  color: var(--muted);
}
.project-facts dd {
  margin: 0;
  color: var(--text);
}
.partner-ask {
  padding-left: 48px;
}
.partner-ask h3 {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.6;
}
.partner-ask h3 span {
  color: var(--gold);
}
.partner-ask p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 19px;
  max-width: 390px;
}
.partner-ask .button {
  margin-top: 27px;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}
.partner-ask .text-link {
  margin-top: 24px;
}
.closing {
  padding-top: 50px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}
.closing-satellite {
  margin: 0 auto 28px;
  width: 100px;
  transform: rotate(12deg);
}
.closing h2 {
  font-size: clamp(30px, 4vw, 57px);
}
.closing > p {
  margin-top: 23px;
  color: var(--muted);
  font-size: 15px;
}
.closing .button {
  margin-top: 30px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 64px;
  max-width: 1440px;
  margin: auto;

  font-size: 11px;
  color: var(--muted);
}
.site-footer .wordmark {
  font-size: 13px;
}
.site-footer > p {
  font-size: 11px;
}
.publisher-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--gold);
  margin-top: 24px;
}
.publisher-contact:hover {
  text-decoration: underline;
}
.sun-layer {
  mix-blend-mode: screen;
}
.depth-scene [data-depth] {
  transition: translate 0.4s ease-out;
}
.footage-main figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.video-toggle {
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
}
.footage-main figcaption > span {
  font-size: 11px;
}
dialog {
  padding: 60px 20px 20px;
  width: min(94vw, 740px);
  max-height: 94dvh;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  z-index: var(--dialog-layer);
}
dialog::backdrop {
  background: #030611ed;
}
dialog figure {
  max-width: 540px;
  margin: auto;
}
dialog img {
  width: auto;
  max-height: 73dvh;
  margin: auto;
  object-fit: contain;
}
dialog figcaption {
  text-align: center;
}
.dialog-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
}
.dialog-close span {
  font-size: 18px;
  margin-left: 10px;
}
body.dialog-open {
  overflow: hidden;
}
@media (min-width: 1440px) {
  .hero-world {
    right: 25px;
  }
  .hero {
    min-height: 780px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding-inline: 38px;
    gap: 20px;
  }
  nav {
    gap: 20px;
  }
  .section-wrap {
    padding-inline: 38px;
  }
  .hero {
    padding-inline: 38px;
    min-height: 730px;
  }
  .hero-world {
    width: 580px;
    right: -135px;
    top: 105px;
    transform: scale(0.91);
  }
  .hero h1 {
    font-size: 76px;
  }
  .hero-actions {
    max-width: 260px;
    gap: 18px;
  }
  .twist {
    gap: 45px;
  }
  .twist-visual {
    transform: scale(0.86);
    transform-origin: left center;
  }
  .twist-copy {
    margin-left: -30px;
  }
  .inhabitants {
    gap: 30px;
  }
  .publisher-details {
    gap: 36px;
  }
  .partner-ask {
    padding-left: 32px;
  }
  .footage-layout {
    gap: 38px;
  }
  .site-footer {
    padding-inline: 38px;
  }
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 40px;
  }
  .site-header {
    height: 72px;
    padding-inline: 22px;
    gap: 10px;
  }
  .wordmark {
    font-size: 13px;
  }
  nav {
    display: none;
  }
  .header-play {
    padding: 8px 11px;
    font-size: 11px;
  }
  .header-play span {
    margin-left: 9px;
  }
  .section-wrap {
    padding-inline: 24px;
  }
  .hero {
    display: flex;
    align-items: flex-start;
    min-height: 830px;
    padding: 40px 24px 0;
    overflow: clip;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(55px, 14.5vw, 94px);
    margin-top: 19px;
  }
  .hero h1 > span {
    font-size: 1.32em;
  }
  .hero-hook {
    font-size: 21px;
    line-height: 1.5;
    margin-top: 13px;
  }
  .hero-hook > span {
    display: inline;
  }
  .hero-actions {
    max-width: none;
    gap: 20px;
    margin-top: 25px;
  }
  .hero-actions .button {
    font-size: 11px;
    min-height: 46px;
    padding-inline: 16px;
    gap: 12px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .hero-world {
    width: 560px;
    height: 560px;
    top: 377px;
    right: calc(50% - 310px);
    transform: scale(0.79);
    transform-origin: top center;
  }
  .world-layer {
    top: 130px;
    left: 0;
    width: 560px;
  }
  .satellite-layer {
    left: 145px;
    top: 69px;
    width: 126px;
  }
  .moon-layer {
    right: 4px;
    top: 12px;
    width: 68px;
  }
  .sun-layer {
    left: 427px;
    top: 5px;
    width: 118px;
  }
  .orbit-track {
    width: 535px;
    height: 535px;
  }
  .orbit-track-front {
    width: 460px;
    height: 460px;
  }
  .twist {
    padding-top: 20px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column-reverse;
    gap: 22px;
  }
  .twist-copy {
    margin: 0;
    width: 100%;
  }
  .twist-copy > p {
    font-size: 14px;
    margin-top: 22px;
    max-width: none;
  }
  .twist-visual {
    height: 450px;
    width: 350px;
    max-width: 100%;
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -65px;
  }
  .phone {
    left: 57px;
    width: 242px;
    top: 24px;
  }
  .turn-orbit {
    left: -26px;
    width: 380px;
    height: 380px;
  }
  .turn-orbit span {
    font-size: 54px;
    right: 4px;
  }
  .twist-satellite {
    right: -4px;
    width: 88px;
    bottom: 40px;
  }
  .inhabitants {
    padding-top: 20px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 62px;
  }
  .inhabitants-copy p {
    max-width: none;
    font-size: 14px;
  }
  .inhabitants-copy p:first-of-type {
    font-size: 20px;
  }
  .horizon {
    max-width: 560px;
  }
  .inhabitant-float {
    width: 75px;
    top: -44px;
  }
  .gameplay {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .gameplay-heading {
    margin-bottom: 35px;
    text-align: left;
  }
  .gameplay-heading p:last-child {
    font-size: 14px;
  }
  .footage-layout {
    display: block;
    max-width: 440px;
  }
  .footage-main {
    max-width: 340px;
    margin: auto;
  }
  .gameplay-side {
    margin: 64px auto 0;
    gap: 24px;
    padding-inline: 12px;
    max-width: 400px;
  }
  .still-one {
    transform: translateY(-14px) rotate(-5deg);
  }
  .still-two {
    transform: translateY(14px) rotate(5deg);
  }
  .still {
    width: calc(50% - 12px);
  }
  .capture-note {
    margin-top: 40px;
    text-align: left;
  }
  .publisher {
    padding-top: 65px;
    padding-bottom: 60px;
  }
  .publisher h2 {
    font-size: clamp(28px, 6.7vw, 42px);
  }
  .publisher-heading > p:last-child {
    font-size: 14px;
  }
  .publisher-details {
    display: block;
    margin-top: 38px;
  }
  .project-facts dl > div {
    grid-template-columns: 90px 1fr;
    gap: 16px;
    font-size: 12px;
  }
  .partner-ask {
    margin-top: 42px;
    padding: 32px 0 0;
    border-left: 0;
  }
  .partner-ask h3 {
    font-size: 19px;
  }
  .partner-ask .button {
    white-space: nowrap;
    font-size: 11px;
    gap: 12px;
    padding-inline: 15px;
  }
  .partner-ask .text-link {
    display: flex;
    font-size: 11px;
  }
  .closing {
    padding-top: 35px;
    padding-bottom: 65px;
  }
  .closing h2 {
    font-size: clamp(27px, 6.4vw, 40px);
  }
  .site-footer {
    padding: 24px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .site-footer > p {
    width: 100%;
    order: 3;
  }
  .closing-satellite {
    width: 88px;
  }
}
@media (max-width: 360px) {
  .hero {
    min-height: 795px;
  }
  .hero-world {
    top: 389px;
    transform: scale(0.7);
  }
  .hero-actions {
    gap: 13px;
  }
  .hero-actions .button {
    padding-inline: 12px;
    font-size: 10px;
  }
  .partner-ask .button {
    font-size: 10px;
    gap: 9px;
    padding-inline: 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: arrival 0.85s both;
  }
  .hero-world {
    animation: world-arrival 1.1s both;
  }
  .reveal {
    transition:
      opacity 0.7s,
      translate 0.7s;
  }
  .js-motion .reveal:not(.visible) {
    opacity: 0;
    translate: 0 24px;
  }
  .closing-satellite {
    animation: float 5s ease-in-out infinite;
  }
  @supports (animation-timeline: view()) {
    .surface-scene {
      animation: horizon-shift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .moon-layer {
      animation: moon-shift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes arrival {
  from {
    opacity: 0;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes world-arrival {
  from {
    opacity: 0;
    translate: 25px 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes float {
  50% {
    translate: 0 -9px;
  }
}
@keyframes horizon-shift {
  from {
    translate: 0 25px;
  }
  to {
    translate: 0 -25px;
  }
}
@keyframes moon-shift {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    translate: none;
  }
  [data-depth] {
    translate: none !important;
  }
  .hero-world {
    opacity: 1;
  }
}
@media print {
  body {
    background: var(--space) !important;
    print-color-adjust: exact;
  }
  .site-header nav,
  .hero-actions,
  .dialog-close {
    display: none;
  }
  .hero {
    min-height: 650px;
  }
  .reveal {
    opacity: 1 !important;
    translate: none !important;
  }
  section,
  figure {
    break-inside: avoid;
  }
  video {
    display: none;
  }
  .video-shell {
    background: var(--space) url("assets/combat-portrait.webp") center/contain
      no-repeat;
    aspect-ratio: 3/4;
  }
  .closing {
    padding-block: 30px;
  }
  .site-footer {
    font-size: 10px;
  }
}

/* The complete 1760px artwork has a 693px planet radius. The satellite
   follows the game's 620 / 420 orbit ratio in this shared coordinate system. */
.hero {
  --scene-size: min(58vw, 720px, calc((100svh - 110px) / 1.55));
  --encounter-hold: 900px;
  min-height: calc(var(--scene-size) * 1.55 + 70px + var(--encounter-hold));
  overflow: visible;
  align-items: start;
}
.hero-copy {
  padding-top: 125px;
}
.hero h1 {
  margin-top: 0;
  font-size: clamp(54px, 7.4vw, 112px);
}
.hero-world {
  width: var(--scene-size);
  height: calc(var(--scene-size) * 1.55 + var(--encounter-hold));
  right: 24px;
  top: -10px;
  transform: none;
}
.orbital-stage {
  --orbit-radius: calc(var(--scene-size) * 0.58125);
  --orbit-angle: -32deg;
  position: absolute;
  top: 0;
  width: 100%;
  height: calc(var(--scene-size) * 1.55);
}
/* Native sticky positioning stays in sync with compositor-driven scrolling.
   The extra track height gives it exactly the encounter's holding distance. */
.js-motion .orbital-stage {
  position: sticky;
  top: min(70px, calc(clamp(110px, 20svh, 180px) - var(--scene-size) * 0.08));
}
.world-layer {
  left: 0;
  top: calc(var(--scene-size) * 0.5);
  width: 100%;
}
.hero-planet {
  width: 100%;
  translate: none;
}
.orbit-track {
  left: 50%;
  top: var(--scene-size);
  width: 116.25%;
  height: auto;
  aspect-ratio: 1;
  border-color: #82c9d32b;
  transform: translate(-50%, -50%);
}
.orbital-arm,
.enemy-arm {
  position: absolute;
  left: 50%;
  top: var(--scene-size);
  width: 0;
  height: 0;
}
.orbital-arm {
  transform: rotate(var(--orbit-angle));
}
.enemy-arm {
  --enemy-distance: 0.92;
  transform: rotate(var(--enemy-angle));
}
.satellite-layer {
  left: 0;
  top: calc(-1 * var(--orbit-radius));
  width: 0;
  height: 0;
  transform: none;
  filter: drop-shadow(0 12px 12px #02040d);
}
.satellite-layer img {
  width: calc(var(--scene-size) * 0.207);
  max-width: none;
  transform: translate(-50%, -72%);
}
.hero-enemy {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--scene-size) * var(--enemy-distance));
  width: calc(var(--scene-size) * 0.1);
  max-width: none;
  transform: translate(-50%, -50%) rotate(180deg);
  opacity: var(--enemy-opacity, 1);
}
.projectile-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shot {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 12px;
  background: #c4faff;
  border-radius: 50%;
  box-shadow: 0 0 8px #58e2ff;
  opacity: 0;
}
.enemy-impact {
  position: absolute;
  left: -40px;
  top: calc(-1 * var(--scene-size) * var(--enemy-distance) - 40px);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff9df 0 8%,
    #ffc36f 10% 25%,
    #fa803780 40%,
    transparent 70%
  );
  transform: scale(var(--impact-scale, 0));
  opacity: var(--impact-opacity, 0);
}
.phone-depth {
  position: absolute;
  inset: 0;
}

.twist-satellite {
  width: 100px;
  max-width: none;
  left: 0;
  right: auto;
  top: -220px;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.horizon {
  min-height: 0;
  padding-top: clamp(120px, 20vw, 250px);
}
.surface-scene {
  position: relative;
  width: 100%;
}
.horizon-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  translate: none;
}
/* Contact point is on the circle at x=.62w, y=.124983w. Its outward
   angle is 17.74deg. The animation's foot contact is at 52%, 96.2%. */
.inhabitant-float {
  display: block;
  width: 32%;
  left: 62%;
  top: 21.997%;
  right: auto;
  transform-origin: 52% 96.2%;
  transform: translate(-52%, -96.2%) rotate(17.74deg);
  filter: drop-shadow(8px 12px 12px #01040d);
}
.inhabitant-float img {
  width: 100%;
}
.publisher-heading > p {
  max-width: 650px;
}
@media (max-width: 767px) {
  .hero {
    --scene-size: calc(100vw - 24px);
    --encounter-hold: 600px;
    min-height: calc(
      400px + var(--scene-size) * 1.55 + 70px + var(--encounter-hold)
    );
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero h1 {
    font-size: clamp(55px, 14.5vw, 94px);
  }
  .hero-world {
    width: var(--scene-size);
    height: calc(var(--scene-size) * 1.55 + var(--encounter-hold));
    left: 50%;
    right: auto;
    top: 400px;
    transform: translateX(-50%);
  }
  .orbital-stage {
    --orbit-angle: -22deg;
  }
  .js-motion .orbital-stage {
    top: calc(clamp(110px, 20svh, 180px) - var(--scene-size) * 0.08);
  }
  .phone {
    left: calc(50% - 121px);
  }

  .twist-satellite {
    width: 88px;
    top: -170px;
  }
  .horizon {
    min-height: 0;
    padding-top: 120px;
  }
  .inhabitant-float {
    width: 32%;
    top: 21.997%;
    right: auto;
  }
}
@media (max-width: 360px) {
  .hero {
    min-height: calc(
      440px + var(--scene-size) * 1.55 + 70px + var(--encounter-hold)
    );
  }
  .hero-world {
    top: 440px;
  }
  .twist-satellite {
    top: -130px;
    width: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbital-stage {
    transform: none;
  }
  .orbital-arm {
    transform: rotate(-32deg);
  }
  .phone {
    transform: rotate(-9deg);
  }

  .shot,
  .enemy-impact {
    display: none;
  }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .orbital-arm {
    transform: rotate(-22deg);
  }
}

/* Distant light stays separate from the foreground encounter. */
.hero-world .sun-layer {
  left: auto;
  right: 30px;
  top: 75px;
  width: 100px;
}
.hero-world .moon-layer {
  top: 300px;
  right: 20px;
}

.orbital-stage {
  z-index: 1;
}
.hero-world .sun-layer,
.hero-world .moon-layer {
  z-index: 0;
}

/* A single walker follows the rim of a complete, unpopulated planet. */
.horizon {
  padding-top: clamp(100px, 14vw, 175px);
}
.horizon-image {
  mask-image: none;
}
.inhabitant-float {
  width: 30%;
  aspect-ratio: 360 / 608;
  left: 50%;
  top: 10.625%;
  transform: translate(-52%, -96.2%) rotate(var(--walk-angle, 0deg));
}
.walking-frame {
  width: 100%;
  height: 100%;
  background-image: url("assets/inhabitant-walk.webp");
  background-size: 600% 400%;
  background-position: var(--walk-x, 0%) var(--walk-y, 0%);
}
/* Small worlds punctuate the transitions without crossing the copy or footage. */
.space-gap {
  position: relative;
  max-width: 1280px;
  height: 240px;
  margin: 20px auto 0;
  pointer-events: none;
}
.space-gap img {
  position: absolute;
  width: 128px;
  left: 76%;
  top: 0;
  filter: drop-shadow(0 16px 22px #020511);
}
.space-gap-sun img {
  width: 88px;
  left: 9%;
  top: 20px;
}
.space-gap-violet img {
  width: 150px;
  left: 78%;
  top: -10px;
}
.space-gap-volcanic img {
  width: 105px;
  left: 12%;
  top: 0;
}
.space-gap-ice-small img {
  width: 76px;
  left: 81%;
  top: 20px;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .space-gap img {
      animation: distant-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes distant-drift {
  from {
    transform: translateY(35px) rotate(-8deg);
  }
  to {
    transform: translateY(-35px) rotate(8deg);
  }
}
@media (max-width: 767px) {
  .horizon {
    padding-top: 100px;
  }
  .space-gap {
    height: 180px;
    margin-top: 15px;
  }
  .space-gap img {
    width: 92px;
    left: 66%;
  }
  .space-gap-sun img {
    width: 64px;
    left: 8%;
  }
  .space-gap-violet img {
    width: 106px;
    left: 62%;
  }
  .space-gap-volcanic img {
    width: 82px;
    left: 9%;
  }
  .space-gap-ice-small img {
    width: 64px;
    left: 73%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    --encounter-hold: 0px;
  }
  .inhabitant-float {
    left: 50% !important;
    top: 10.625% !important;
    transform: translate(-52%, -96.2%);
  }
  .walking-frame {
    background-image: url("assets/inhabitant-still.webp");
    background-size: 100% 100%;
    background-position: center;
  }
}
html:not(.js-motion) .hero {
  --encounter-hold: 0px;
}

/* The title and encounter travel as one pinned composition on desktop. */
.hero-copy-track {
  min-width: 0;
}
.hero-copy-track::after {
  content: "";
  display: block;
  height: var(--encounter-hold);
}
.js-motion .hero-copy {
  position: sticky;
  top: 138px;
}
.hero h1 {
  font-size: clamp(54px, 6.7vw, 106px);
}
.hero-hook {
  font-size: clamp(19px, 1.7vw, 25px);
  letter-spacing: -0.035em;
}
.partner-ask {
  padding-left: 0;
}

/* A phone lying flat spins in its screen plane, viewed from above. */
.twist-visual {
  perspective: none;
  --phone-size: min(225px, 41%);
}
.phone-turntable {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--phone-size);
  aspect-ratio: 9 / 19.5;
  transform: translate(-50%, -50%) rotate(var(--phone-turn, 0deg));
}
.phone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 6px solid #323942;
  border-radius: 30px;
  background: #080b14;
  padding: 3px;
  transform: none;
  box-shadow: 0 5px 16px #02040c80;
}
.phone img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 22px;
}

.twist-satellite {
  top: -245px;
}
.progression-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
  max-width: 720px;
  margin: 90px auto 0;
}
.progression-shots figure {
  margin: 0;
}
.progression-shots figure:first-child {
  transform: rotate(-3deg);
}
.progression-shots figure:last-child {
  transform: rotate(3deg) translateY(48px);
}
.progression-shots img {
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
}
.progression-shots figcaption {
  font-family: var(--display);
  font-size: 15px;
  color: var(--gold);
}
.gameplay-heading p {
  color: var(--gold);
}
.gameplay-heading p span {
  margin: 0 12px;
}
.closing-inhabitant {
  width: 120px;
  height: auto;
  margin: 0 auto 35px;
  filter: drop-shadow(0 12px 15px #02040d);
}
.closing {
  padding-bottom: 95px;
}
.space-gap-violet img {
  left: 10%;
  rotate: 45deg;
}
@media (max-width: 767px) {
  .hero-copy-track {
    width: 100%;
  }
  .hero-copy-track::after {
    height: 0;
  }
  .js-motion .hero-copy {
    position: relative;
    top: auto;
  }
  .hero h1 {
    font-size: clamp(55px, 14.5vw, 94px);
  }
  .hero-hook {
    font-size: 19px;
  }
  .phone-turntable {
    width: var(--phone-size);
    top: 50%;
  }

  .twist-satellite {
    top: -170px;
  }
  .progression-shots {
    gap: 25px;
    margin-top: 65px;
  }
  .progression-shots figure:last-child {
    transform: rotate(3deg) translateY(20px);
  }
  .progression-shots figcaption {
    font-size: 11px;
  }
  .gameplay-heading p span {
    margin: 0 4px;
  }
  .space-gap-violet img {
    left: 10%;
  }
  .partner-ask {
    padding-left: 0;
  }
}
@media (max-width: 360px) {
  .twist-satellite {
    top: -142px;
    width: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy {
    transform: none;
  }
  .phone-turntable {
    transform: translate(-50%, -50%);
  }
  .phone {
    transform: none;
  }
}

@media (max-width: 767px) {
  .twist-visual {
    height: 570px;
    width: 100%;
    max-width: 380px;
    transform: none;
    margin: 0 auto;
  }
  .turn-orbit {
    left: calc(50% - 190px);
  }
}

@media (min-width: 768px) {
  .turn-orbit {
    left: calc(50% - 220px);
    top: 69px;
  }
}
@media (max-width: 767px) {
  .turn-orbit span {
    right: 75px;
    bottom: -22px;
    font-size: 40px;
  }
}
.hero-hook > span {
  display: block;
}

/* The circular guide and its label sit behind the phone. */
.phone-depth {
  z-index: 2;
}
.turn-orbit {
  z-index: 1;
  width: min(440px, 100%);
  height: auto;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.gameplay-heading h2 {
  font-size: clamp(24px, 3.3vw, 48px);
}
.gameplay-heading h2 span {
  color: var(--gold);
  font-size: 0.75em;
}
.closing-inhabitant {
  width: 165px;
  filter: drop-shadow(0 0 24px #7c4fd22b);
}
.closing .button-primary {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.045em;
  padding: 21px 40px;
}
.space-gap-sun::before {
  content: "";
  position: absolute;
  left: calc(9% + 44px);
  top: 64px;
  width: 850px;
  height: 750px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    #ffbc5238 0%,
    #ec8c2b1f 17%,
    #e36b1110 36%,
    transparent 70%
  );
  pointer-events: none;
}
.space-gap-sun img {
  filter: drop-shadow(0 0 25px #ffab46a0) drop-shadow(0 0 60px #f18b374d);
}
@media (max-width: 767px) {
  .twist-visual {
    height: 460px;
    --phone-size: 36.5%;
  }
  .turn-orbit span {
    right: 20%;
    bottom: -6px;
  }
  .space-gap-sun::before {
    left: calc(8% + 32px);
    top: 52px;
    width: 650px;
    height: 600px;
  }
}
/* The satellite shares the phone's rotation and stays mounted at its top. */
.phone-turntable > .twist-satellite {
  width: 48%;
  left: 50%;
  top: 0;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -90%);
  z-index: 2;
}
.closing-inhabitant {
  transform-origin: 50% 50%;
  transform-box: border-box;
  margin-bottom: 80px;
}
.hero-actions .button-primary {
  min-height: 74px;
  padding: 20px 32px;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.045em;
  gap: 18px;
}
@media (prefers-reduced-motion: no-preference) {
  .closing-inhabitant {
    animation:
      inhabitant-drift 11s ease-in-out infinite,
      inhabitant-tumble 32s linear infinite;
  }
}
@keyframes inhabitant-drift {
  0%,
  100% {
    translate: -22px -26px;
  }
  25% {
    translate: 24px -10px;
  }
  50% {
    translate: 18px 26px;
  }
  75% {
    translate: -20px 16px;
  }
}
@keyframes inhabitant-tumble {
  from {
    rotate: -15deg;
  }
  to {
    rotate: 345deg;
  }
}
@media (max-width: 767px) {
  .hero-actions .button-primary {
    width: min(100%, 310px);
    min-height: 72px;
    font-size: 23px;
    padding: 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enemy {
    opacity: 1;
  }
}
