@font-face {
  font-family: 'Anton';
  src: url('./fonts/anton.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Frijole';
  src: url('./fonts/frijole.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #05070d;
  --ink: #f5f6ff;
  --blue: #1693d1;
  --green: #77e83e;
  --yellow: #ffb000;
  --red: #ff3b1f;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(40, 72, 120, 0.2), transparent 32rem),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 18rem),
    linear-gradient(180deg, #04070d 0%, #010102 55%, #000000 100%);
  font-family: 'Avenir Next', Avenir, Helvetica, Arial, sans-serif;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 75rem);
  padding-top: clamp(1rem, 4vh, 3rem);
  text-align: center;
}

.wordmark {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: 'Frijole', 'Anton', Impact, sans-serif;
  font-size: clamp(3.4rem, 10.5vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  transform: scaleX(0.92);
  filter: drop-shadow(0 0 1.5rem rgba(255, 85, 30, 0.18));
}

.wordmark__letter { display: inline-block; }
.wordmark__letter--red { color: #ff0000; }
.wordmark__letter--yellow { color: #ffb000; }
.wordmark__letter--blue { color: #1693d1; }
.wordmark__letter--green { color: #00cc33; }

.mascot-wrap {
  position: relative;
  z-index: 3;
  width: clamp(15rem, 32vw, 25rem);
  aspect-ratio: 0.82;
  margin-top: clamp(0.6rem, 1.6vw, 1.4rem);
  perspective: 900px;
  filter: drop-shadow(0 1.25rem 1.25rem rgba(0, 0, 0, 0.5));
  animation: rig-float 6s ease-in-out infinite;
}

.mascot-body,
.mascot-head-anchor,
.mascot-head-rotator,
.mascot-head {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.mascot-body {
  left: 50%;
  bottom: 0;
  width: 88%;
  height: auto;
  transform: translateX(-50%);
}

.mascot-head-anchor {
  left: 39%;
  top: 19%;
  width: 60%;
  aspect-ratio: 769 / 819;
  transform: translate(-50%, -50%);
}

.mascot-head-rotator {
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}

.mascot-head {
  inset: 0;
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
}

.mascot-glow {
  position: absolute;
  inset: 18% 8% 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 177, 0, 0.26), rgba(22, 147, 209, 0.12) 44%, transparent 70%);
  filter: blur(1.25rem);
  animation: pulse 5s ease-in-out infinite;
}

@keyframes rig-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.65rem); }
}
@keyframes pulse { 0%, 100% { opacity: 0.65; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.05); } }

@media (max-width: 600px) {
  .page-shell { padding: 1rem; }
  .hero { padding-top: 0; }
  .wordmark { font-size: clamp(2.65rem, 13vw, 4.6rem); letter-spacing: -0.055em; }
  .mascot-wrap { width: min(72vw, 20rem); margin-top: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-wrap, .mascot-glow { animation: none; }
}
