:root {
  --ink: #090b09;
  --paper: #f3e5bd;
  --acid: #d3ff45;
  --frog: #91ad46;
  --purple: #6c397c;
  --orange: #ff7a20;
  --line: rgba(243, 229, 189, 0.26);
  --mx: 0;
  --my: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

#starfield,
.print-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#starfield {
  z-index: 0;
  opacity: 0.75;
}

.print-grain {
  z-index: 20;
  opacity: 0.12;
  mix-blend-mode: screen;
  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='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(211, 255, 69, 0.1), transparent 20%),
    radial-gradient(circle at 52% 70%, rgba(108, 57, 124, 0.22), transparent 32%),
    linear-gradient(112deg, rgba(9, 11, 9, 0.99) 0 36%, rgba(9, 11, 9, 0.86) 57%, rgba(9, 11, 9, 0.96) 100%);
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, transparent 0 18px, rgba(243, 229, 189, 0.18) 19px 20px),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(108, 57, 124, 0.12) 64px 65px);
  transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -8px)) scale(1.03);
}

.topbar {
  position: relative;
  z-index: 10;
  height: 88px;
  padding: 0 clamp(24px, 3.2vw, 62px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 9, 0.58);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  text-decoration: none;
  font-weight: 950;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.brand i {
  color: var(--orange);
  font-style: normal;
}

.brand-orbit {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 5px 5px 0 var(--orange);
}

.brand-orbit::after {
  content: "";
  position: absolute;
  inset: 5px -8px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.brand-orbit img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flight-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(211, 255, 69, 0.35);
  border-radius: 999px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(211, 255, 69, 0.7);
  animation: ping 1.8s infinite;
}

.social-nav {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.social-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.social-nav a:hover {
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-3px) rotate(-1deg);
}

.link-arrow {
  color: var(--orange);
  font-size: 17px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 158px);
  padding: clamp(26px, 3.1vh, 40px) clamp(24px, 3.2vw, 62px) clamp(22px, 3vh, 36px);
  display: grid;
  grid-template-columns: minmax(470px, 0.9fr) minmax(610px, 1.25fr);
  gap: clamp(28px, 3vw, 58px);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(243, 229, 189, 0.58);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

h1 {
  position: relative;
  margin: clamp(18px, 2.8vh, 35px) 0 0;
  display: grid;
  width: min-content;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(94px, 8.05vw, 155px);
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  filter: drop-shadow(8px 8px 0 rgba(108, 57, 124, 0.78));
}

h1 span {
  display: block;
  white-space: nowrap;
}

.word-cheeks {
  color: var(--paper);
  transform: rotate(-1.5deg);
}

.word-to {
  position: absolute;
  right: -0.2em;
  top: 0.73em;
  z-index: 2;
  padding: 0.06em 0.13em 0.11em;
  color: var(--ink);
  background: var(--orange);
  border: 3px solid var(--ink);
  font-size: 0.31em;
  letter-spacing: -0.03em;
  line-height: 0.9;
  transform: rotate(7deg);
  box-shadow: 4px 4px 0 var(--paper);
}

.word-moon {
  color: var(--acid);
  -webkit-text-stroke: 2px var(--ink);
  transform: translateX(0.09em) rotate(1deg);
}

.tagline {
  margin: clamp(22px, 3vh, 34px) 0 0;
  color: rgba(243, 229, 189, 0.66);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(12px, 0.9vw, 17px);
  line-height: 1.52;
  letter-spacing: 0.09em;
}

.tagline strong {
  color: var(--orange);
}

.actions {
  margin-top: clamp(20px, 2.6vh, 30px);
  display: flex;
  align-items: center;
  gap: 17px;
}

.ca-button {
  position: relative;
  min-width: 218px;
  max-width: min(430px, 70vw);
  min-height: 56px;
  padding: 0 18px 0 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  color: var(--ink);
  background: var(--acid);
  border: 0;
  border-radius: 3px;
  box-shadow: 7px 7px 0 var(--purple);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ca-button::before {
  content: "";
  position: absolute;
  inset: -80% -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.78), transparent 60%);
  transform: translateX(-75%);
  transition: transform 450ms ease;
}

.ca-button:hover::before {
  transform: translateX(75%);
}

.ca-button:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 10px 10px 0 var(--purple);
}

.ca-button:active,
.ca-button.copied {
  transform: translate(5px, 5px);
  box-shadow: 2px 2px 0 var(--purple);
}

.ca-label {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-icon {
  position: relative;
  z-index: 1;
  font-size: 19px;
}

.copy-help {
  color: rgba(243, 229, 189, 0.48);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.lore-card {
  width: min(620px, 100%);
  margin-top: auto;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  background: rgba(15, 16, 14, 0.78);
  box-shadow: 14px 14px 0 rgba(108, 57, 124, 0.18);
  backdrop-filter: blur(8px);
  transform: rotate(-0.35deg);
}

.lore-stamp {
  align-self: stretch;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  font-family: Impact, sans-serif;
  font-size: 20px;
  line-height: 0.9;
  text-align: center;
  transform: rotate(-3deg);
}

.section-label {
  margin: 0 0 7px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.lore-card p:last-child {
  margin: 0;
  color: rgba(243, 229, 189, 0.7);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 0.78vw, 15px);
  line-height: 1.45;
}

.lore-card strong {
  color: var(--paper);
}

.visual-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  isolation: isolate;
  transform: perspective(1300px) rotateY(calc(var(--mx) * -1.2deg)) rotateX(calc(var(--my) * 1deg));
  transition: transform 180ms ease-out;
}

.space-window {
  position: absolute;
  inset: 2% 0 5% 1%;
  overflow: hidden;
  border: 1px solid rgba(243, 229, 189, 0.3);
  border-radius: 48% 4px 4px 9%;
  background: #0b0d0c;
  box-shadow:
    0 0 0 10px rgba(9, 11, 9, 0.66),
    0 0 0 11px rgba(243, 229, 189, 0.12),
    -30px 32px 0 rgba(108, 57, 124, 0.13);
  transform: skewY(-1deg);
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  filter: saturate(0.78) contrast(1.15) brightness(0.62);
  transform: scale(1.04) translate(calc(var(--mx) * 6px), calc(var(--my) * 4px));
  transition: transform 180ms ease-out;
}

.space-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, transparent 24%, transparent 74%, rgba(9, 11, 9, 0.15)),
    radial-gradient(circle at 55% 55%, rgba(255, 122, 32, 0.16), transparent 27%);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 2px;
  top: -3%;
  opacity: 0.24;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
  animation: scan 5.4s linear infinite;
}

.moon-label {
  position: absolute;
  z-index: 5;
  top: 5%;
  right: 3%;
  display: grid;
  justify-items: end;
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-shadow: 2px 2px 0 var(--ink);
}

.moon-label span {
  color: var(--acid);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.moon-label b {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.flying-cheeks {
  position: absolute;
  z-index: 7;
  top: 28%;
  left: 28%;
  width: min(48vw, 610px);
  max-width: 62%;
  height: auto;
  transform-origin: 38% 62%;
  filter: drop-shadow(18px 22px 0 rgba(9, 11, 9, 0.38)) drop-shadow(0 0 18px rgba(255, 122, 32, 0.2));
  animation: cheeks-flight 3.7s ease-in-out infinite;
  will-change: transform;
}

.motion-streaks {
  position: absolute;
  z-index: 6;
  left: 13%;
  top: 52%;
  width: 46%;
  height: 30%;
  transform: rotate(-25deg);
  transform-origin: left center;
}

.motion-streaks i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange) 24%, transparent 88%);
  opacity: 0.72;
  animation: streak 1.2s ease-in-out infinite;
}

.motion-streaks i:nth-child(2) { top: 26%; width: 72%; animation-delay: -0.25s; }
.motion-streaks i:nth-child(3) { top: 58%; width: 88%; animation-delay: -0.62s; }
.motion-streaks i:nth-child(4) { top: 84%; width: 54%; animation-delay: -0.92s; }

.trajectory-note {
  position: absolute;
  z-index: 8;
  left: 13%;
  top: 17%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  transform: rotate(-7deg);
}

.trajectory-note i {
  width: 82px;
  height: 1px;
  background: var(--orange);
  transform-origin: left center;
  animation: pointer-line 1.9s ease-in-out infinite;
}

.mission-card {
  position: absolute;
  z-index: 9;
  right: -2%;
  bottom: 5%;
  width: clamp(175px, 14vw, 245px);
  padding: 19px 20px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--orange);
  transform: rotate(2.5deg);
}

.mission-card::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 18px;
  top: -11px;
  left: 50%;
  background: rgba(211, 255, 69, 0.78);
  transform: translateX(-50%) rotate(-4deg);
}

.mission-card span,
.mission-card small {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.mission-card span {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 8px;
}

.mission-card strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(25px, 2.1vw, 39px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.mission-card small {
  margin-top: 13px;
  padding-top: 9px;
  border-top: 2px solid var(--ink);
  font-size: 8px;
}

.ticker {
  position: relative;
  z-index: 12;
  height: 70px;
  overflow: hidden;
  color: var(--ink);
  background: var(--orange);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 28px;
  letter-spacing: 0.025em;
  transform: rotate(-0.55deg) scale(1.02);
}

.ticker-track {
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 27px;
  white-space: nowrap;
  animation: ticker 23s linear infinite;
}

.ticker i {
  color: var(--acid);
  font-style: normal;
  -webkit-text-stroke: 1px var(--ink);
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 34px;
  padding: 13px 18px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--purple);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px) rotate(-2deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
}

.reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.loaded .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.loaded .reveal-item:nth-child(2) { transition-delay: 80ms; }
.loaded .reveal-item:nth-child(3) { transition-delay: 160ms; }
.loaded .reveal-item:nth-child(4) { transition-delay: 240ms; }
.loaded .reveal-item:nth-child(5) { transition-delay: 320ms; }

@keyframes cheeks-flight {
  0%, 100% { transform: translate3d(-6px, 5px, 0) rotate(-5deg) scale(0.985); }
  46% { transform: translate3d(11px, -12px, 0) rotate(-2deg) scale(1.015); }
  52% { transform: translate3d(13px, -11px, 0) rotate(-3deg) scale(1.02, 0.98); }
}

@keyframes streak {
  0%, 100% { opacity: 0.2; transform: translateX(-8%) scaleX(0.65); }
  50% { opacity: 0.9; transform: translateX(8%) scaleX(1); }
}

@keyframes scan {
  to { top: 103%; }
}

@keyframes pointer-line {
  0%, 100% { transform: scaleX(0.4); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes ping {
  70% { box-shadow: 0 0 0 8px rgba(211, 255, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 255, 69, 0); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (min-width: 1100px) and (min-height: 720px) {
  .site-shell {
    height: 100svh;
    display: grid;
    grid-template-rows: 88px minmax(0, 1fr) 70px;
  }

  .hero {
    min-height: 0;
  }
}

@media (max-width: 1250px) {
  .hero {
    grid-template-columns: minmax(420px, 0.82fr) minmax(520px, 1.18fr);
  }

  .flight-status {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  h1 {
    font-size: clamp(86px, 8.6vw, 112px);
  }
}

@media (max-width: 980px) {
  .site-shell {
    overflow: visible;
  }

  .topbar {
    height: auto;
    min-height: 78px;
    padding-block: 12px;
  }

  .social-nav a {
    min-width: 42px;
    padding-inline: 12px;
  }

  .social-nav a span:first-child:not(.link-arrow) {
    max-width: 66px;
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 35px;
  }

  .hero-copy {
    min-height: 690px;
  }

  h1 {
    font-size: clamp(84px, 16vw, 145px);
  }

  .visual-stage {
    min-height: 680px;
  }

  .ticker {
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-inline: 17px;
  }

  .brand > span:last-child {
    display: none;
  }

  .social-nav {
    gap: 6px;
  }

  .social-nav a {
    gap: 7px;
    font-size: 10px;
  }

  .hero {
    padding: 24px 17px 30px;
  }

  .eyebrow span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(75px, 23vw, 110px);
  }

  .word-to {
    right: -0.1em;
  }

  .hero-copy {
    min-height: 660px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .lore-card {
    grid-template-columns: 48px 1fr;
    padding: 13px;
  }

  .lore-stamp {
    font-size: 16px;
  }

  .visual-stage {
    min-height: 510px;
  }

  .space-window {
    inset: 2% 0 8%;
    border-radius: 35% 4px 4px 8%;
  }

  .flying-cheeks {
    top: 28%;
    left: 16%;
    width: 72vw;
    max-width: 78%;
  }

  .mission-card {
    right: 1%;
    width: 164px;
  }

  .mission-card strong {
    font-size: 25px;
  }

  .trajectory-note {
    left: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
