:root {
  --bg: #251B29;
  --fg: #f3f1ea;
  --muted: #8a7e93;
  --accent: #c8b27a;
  --font-display: "Inter", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(200, 178, 122, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1%, 0) scale(1.08); }
}

.stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1vh, 10px);
}

.emblem {
  width: clamp(200px, 34vmin, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.emblem::after {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(200, 178, 122, 0.22), transparent 60%);
  filter: blur(24px);
  z-index: -1;
}

.emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.emblem .frog {
  font-size: clamp(140px, 28vmin, 280px);
  line-height: 1;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
  user-select: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.title {
  display: flex;
  justify-content: center;
  gap: 0.08em;
  font-weight: 400;
  font-size: clamp(28px, 5.5vw, 56px);
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.title .gap { width: 0.45em; }

.title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}

.title span:nth-child(1) { animation-delay: 0.25s; }
.title span:nth-child(2) { animation-delay: 0.30s; }
.title span:nth-child(3) { animation-delay: 0.35s; }
.title span:nth-child(4) { animation-delay: 0.40s; }
.title span:nth-child(5) { animation-delay: 0.45s; }
.title span:nth-child(6) { animation-delay: 0.50s; }
.title span:nth-child(8) { animation-delay: 0.60s; }
.title span:nth-child(9) { animation-delay: 0.65s; }
.title span:nth-child(10){ animation-delay: 0.70s; }
.title span:nth-child(11){ animation-delay: 0.75s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.socials {
  align-self: end;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 26px);
  padding-bottom: clamp(20px, 5vh, 48px);
}

.socials a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.socials a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (max-width: 520px) {
  .stage { grid-template-rows: 1fr auto auto; }
  .socials { flex-wrap: wrap; justify-content: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .title span { opacity: 1; transform: none; }
}
