@font-face {
  font-family: "PixelTitle";
  src: url("assets/fonts/PressStart2P.ttf");
}

div.click-explode {
  position: fixed;
  box-sizing: border-box;
  border-style: solid;
  border-color: purple;
  border-radius: 50%;
  animation: click-explode 0.4s ease-out;
  z-index: 99999;
}

@keyframes click-explode {
  0% {
    opacity: 1;
    width: 0.5em;
    height: 0.5em;
    margin: -0.25em;
    border-width: 0.5em;
  }

  100% {
    opacity: 1;
    width: 15em;
    height: 15em;
    margin: -7.5em;
    border-width: 0.03em;
  }
}

@keyframes spin {
  from {
    transform: translateX(-20vw) translateY(0vh) rotate(0deg);
  }
  to {
    transform: translateX(100vw) translateY(60vh) rotate(360deg);
  }
}

html,
body {
  height: 100%;
}

body {
  background-image: url("assets/space_background.jpg");
  background-attachment: fixed;
  font-family: "PixelTitle";
}

h1 {
  font-size: 5em;
}

.who {
  position: fixed;
  height: 15vh;
  /* Behind all page content; main.js routes clicks through to them */
  z-index: -1;
  touch-action: none;
  cursor: grab;
}

body.cat-hover,
body.cat-hover * {
  cursor: grab;
}

.container {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
}

.intro-section {
  min-height: calc(100vh - 64px);
}

/* Hero */
.hero {
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6vh 6vw 0;
}

.hero-title {
  margin: 0 0 40px;
  font-size: clamp(2.2em, 5.6vw, 5em);
  line-height: 1.25;
  text-transform: uppercase;
  color: #a77bff;
  text-shadow: 6px 6px 0 #4b2a8f;
}

.hero-name {
  display: block;
}

.hero-details {
  margin: 0 0 44px;
  font-size: clamp(0.8em, 1.4vw, 1.1em);
  line-height: 2;
  text-transform: uppercase;
  color: #ffd166;
  text-shadow: 3px 3px 0 #4b2a8f;
}

.hero-detail {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.btn {
  display: inline-block;
  padding: 20px 30px;
  font-family: "PixelTitle";
  font-size: 0.8em;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}

.btn-primary {
  color: #1a1030;
  background: #ffd166;
  box-shadow: 7px 7px 0 #a77bff;
}

.btn-primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #a77bff;
}

.btn-outline {
  color: #7be8ff;
  border: 3px solid #7be8ff;
  padding: 17px 30px;
}

.btn-outline:hover {
  background: rgba(123, 232, 255, 0.12);
}

/* Liftoff: the stage stays pinned while the runway scrolls past,
   and main.js flies the rocket out of frame over that distance. */
.liftoff-runway {
  height: 200vh;
}

.liftoff-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero-art {
  display: flex;
  justify-content: center;
  will-change: transform;
}

.hero-rocket {
  width: min(100%, 480px);
  image-rendering: pixelated;
  animation: rocket-shake 5s ease-in-out infinite;
}

/* Slow, irregular engine rumble: translation only, no rotation */
@keyframes rocket-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-4px, -3px);
  }
  20% {
    transform: translate(3px, -6px);
  }
  30% {
    transform: translate(-2px, -2px);
  }
  40% {
    transform: translate(5px, -5px);
  }
  50% {
    transform: translate(-3px, -8px);
  }
  60% {
    transform: translate(2px, -4px);
  }
  70% {
    transform: translate(-5px, -6px);
  }
  80% {
    transform: translate(3px, -2px);
  }
  90% {
    transform: translate(-2px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rocket {
    animation: none;
  }
}

/* Mobile: the opening screen is just the rocket and the names,
   sized against both width and height so it always fits. */
@media (max-width: 820px) {
  .liftoff-stage {
    height: 100vh;
    height: 100svh;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 3svh;
    height: calc(100svh - 64px);
    min-height: 0;
    padding: 4svh 5vw 2svh;
  }

  /* Rocket fills and centers in the space above; the names stay
     anchored to the bottom so they don't shift as the screen shrinks. */
  .hero-art {
    order: -1;
    flex: 1 1 0;
    min-height: 0;
    align-items: center;
  }

  .hero-rocket {
    width: auto;
    height: min(70vw, 52svh, 320px);
  }

  .hero-title {
    flex: 0 0 auto;
    margin: 0;
    font-size: min(8.5vw, 6svh);
    text-align: center;
    text-shadow: 4px 4px 0 #4b2a8f;
  }

  .hero-details,
  .hero-actions {
    display: none;
  }
}

.row-center {
  justify-content: center;
}

.scroll-down-section {
  height: 64px;
  color: white;
  justify-content: center;
  align-items: center;
}

.scroll-down-text {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  /* Scales with the viewport like the hero title, at roughly 2/5 its size */
  font-size: clamp(1em, 2.2vw, 1.9em);
  text-transform: uppercase;
  text-shadow: -2px 4px 0px black;
}

.scroll-arrow {
  width: 0.9em;
  height: 1em;
  filter: drop-shadow(-2px 4px 0 black);
}

@media (max-width: 820px) {
  .scroll-down-text {
    font-size: min(4.5vw, 3.2svh);
  }
}

@keyframes blink {
  50% {
    color: cyan;
  }
}
.blink {
  animation: blink 1s step-start 0s infinite;
}

#floating-cat-div {
  position: absolute;
  left: -10vw;
}

.main-section {
  padding: 12vh 20px 20vh;
}

.panels-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12vh;
  width: 100%;
}

.panel {
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  padding: 48px 44px;
  color: white;
  background: rgba(8, 4, 22, 0.78);
  border: 4px solid #7be8ff;
  box-shadow: 0 0 0 4px rgba(8, 4, 22, 0.9) inset,
    0 0 28px rgba(123, 232, 255, 0.35);
}

.panel-corner {
  position: absolute;
  font-size: 1.1em;
  color: #7be8ff;
  text-shadow: 0 0 8px #7be8ff;
}

.panel-corner.corner-tl {
  top: -0.55em;
  left: -0.55em;
}

.panel-corner.corner-tr {
  top: -0.55em;
  right: -0.55em;
}

.panel-corner.corner-bl {
  bottom: -0.55em;
  left: -0.55em;
}

.panel-corner.corner-br {
  bottom: -0.55em;
  right: -0.55em;
}

.panel-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.panel-col {
  flex: 1 1 260px;
  text-align: center;
}

.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links li {
  margin: 16px 0;
}

.quick-links a {
  color: #ffd166;
  text-decoration: none;
  font-size: 1.1em;
  text-shadow: -3px 2px 0px black;
}

.quick-links a:hover {
  text-decoration: underline;
}

.stub-panel {
  text-align: center;
}

.stub-title {
  font-size: 1.8em;
  margin: 0 0 20px;
  text-shadow: -4px 3px 0px #9b31d4;
}

.stub-text {
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.stub-button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 20px;
  background: rgba(123, 232, 255, 0.1);
  border: 3px solid #7be8ff;
  color: #7be8ff;
  font-size: 0.8em;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: not-allowed;
}

.info-divider {
  color: cyan;
  margin: 0 0 24px;
}

.info-value {
  font-size: 1.4em;
  line-height: 1.6;
  text-shadow: -4px 3px 0px black;
  margin: 0;
}

.name-line {
  margin: 10px 0;
}

.amp {
  color: #ff69b4;
  font-size: 1em;
  margin: 6px 0;
}
