/* Mighty Glorp — spherical, soft, no sharp edges */

:root {
  --cream: #f8efe4;
  --paper: #fff8f0;
  --ink: #3b2a22;
  --ink-soft: #6a5246;
  --peach: #e89a6a;
  --peach-deep: #d47848;
  --blush: #f3c1b0;
  --butter: #f6d98a;
  --sage: #8fb38a;
  --sage-deep: #5e8759;
  --lavender: #e4d3e6;
  --line: rgba(59, 42, 34, 0.12);
  --shadow: 0 18px 40px rgba(80, 40, 20, 0.12);
  --shadow-soft: 0 8px 24px rgba(80, 40, 20, 0.08);
  --radius-pill: 999px;
  --radius-card: 2.25rem;
  --radius-soft: 1.75rem;
  --font-display: "Fredoka", "Nunito", "Avenir Next", system-ui, sans-serif;
  --font-body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(246, 217, 138, 0.55), transparent 60%),
    radial-gradient(800px 500px at 100% 20%, rgba(228, 211, 230, 0.55), transparent 55%),
    radial-gradient(700px 500px at 0% 40%, rgba(243, 193, 176, 0.4), transparent 50%),
    var(--cream);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.45) 0 1.25px, transparent 1.6px);
  background-size: 28px 28px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 85%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--peach-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
  border-radius: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0.75rem auto 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(232, 154, 106, 0.16);
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-cta:hover {
  background: var(--peach-deep) !important;
  color: var(--paper) !important;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--peach-deep);
  background: rgba(232, 154, 106, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.ticker {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  color: var(--peach-deep);
  margin: 0 0 1.25rem;
}

.lore-line {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.lore-line strong {
  color: var(--ink);
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #2a1c16;
  color: var(--paper);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.hero-orb-wrap {
  display: grid;
  place-items: center;
  position: relative;
}

.glow {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 217, 138, 0.85), rgba(232, 154, 106, 0.25) 45%, transparent 70%);
  filter: blur(8px);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.orb {
  position: relative;
  width: min(100%, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(80, 40, 20, 0.18),
    inset -18px -22px 36px rgba(90, 40, 20, 0.16),
    inset 12px 14px 22px rgba(255, 255, 255, 0.35),
    inset 0 0 0 6px rgba(255, 248, 240, 0.55);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 28%),
    radial-gradient(circle at 35% 30%, #ffe7c4, #f0b888 48%, #d9895c 80%);
  animation: float 7s ease-in-out infinite;
}

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

.frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 28%),
    radial-gradient(circle at 35% 30%, #ffe7c4, #f0b888 48%, #d9895c 80%);
}

.frame-round {
  border-radius: 50%;
}

.frame-soft {
  border-radius: var(--radius-card);
}

.frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame img.is-missing {
  position: absolute;
  width: 0 !important;
  height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.ph {
  position: absolute;
  inset: 0;
  color: #3b2a22;
  z-index: 0;
  pointer-events: none;
}

.ph-face {
  position: absolute;
  inset: 0;
  background: none;
  box-shadow: none;
}

.frame-soft .ph-face {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(46%, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 28%),
    radial-gradient(circle at 35% 30%, #ffe7c4, #f0b888 48%, #d9895c 80%);
  box-shadow:
    inset -14px -18px 28px rgba(90, 40, 20, 0.18),
    inset 10px 12px 18px rgba(255, 255, 255, 0.35);
}

.ph-face::before,
.ph-face::after {
  content: "";
  position: absolute;
  top: 36%;
  width: 8.5%;
  height: 8.5%;
  border-radius: 50%;
  background: #3b2a22;
}

.ph-face::before { left: 29%; }
.ph-face::after { right: 29%; }

.ph-smile {
  position: absolute;
  display: block;
  left: 50%;
  top: 52%;
  width: 30%;
  height: 18%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 3.5px solid #3b2a22;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}

/* Sections */

section {
  padding: 3.25rem 0;
}

.section-card {
  background: rgba(255, 248, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--peach-deep);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.mantra {
  margin: 0;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius-soft);
  background:
    radial-gradient(circle at 80% 20%, rgba(246, 217, 138, 0.7), transparent 45%),
    linear-gradient(160deg, #fde8d2, #f3c1b0 80%);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  font-weight: 500;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  padding: 1.15rem 1.1rem;
  text-align: center;
}

.pillar h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Tokenomics */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.stat {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.note {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.contract {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  background: #2a1c16;
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.55rem 0.55rem 1.2rem;
}

.contract-label {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--butter);
}

.contract-value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.98rem;
  flex: 1 1 12rem;
  word-break: break-all;
}

.btn-copy {
  background: var(--butter);
  color: var(--ink);
  border: 0;
  box-shadow: none;
  padding: 0.7rem 1.15rem;
}

.btn-copy:hover {
  background: #ffe8a3;
  color: var(--ink);
}

.btn-copy.is-copied {
  background: var(--sage);
  color: #143016;
}

/* Socials */

.socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

/* Gallery */

.gallery-head {
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.gallery-card {
  flex: 0 1 calc((100% - 2.2rem) / 3);
  max-width: calc((100% - 2.2rem) / 3);
  margin: 0;
  background: rgba(255, 248, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.85rem 0.85rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.gallery-card.span-all {
  flex: 1 1 100%;
  max-width: 100%;
}

.gallery-card .frame {
  aspect-ratio: 1;
  width: 100%;
  box-shadow: inset 0 0 0 4px rgba(255, 248, 240, 0.7);
}

.gallery-card.span-all .frame {
  aspect-ratio: 16 / 8;
  border-radius: 1.75rem;
}

.gallery-card figcaption {
  margin: 0.85rem 0.4rem 0;
}

.gallery-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.gallery-card p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-mantra {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 550;
}

/* Responsive */

@media (max-width: 900px) {
  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
    padding-top: 2.5rem;
  }

  .lore-line {
    margin-inline: auto;
  }

  .actions {
    justify-content: center;
  }

  .hero-orb-wrap {
    order: -1;
  }

  .orb {
    width: min(100%, 20rem);
  }

  .gallery-card {
    flex-basis: calc((100% - 1.1rem) / 2);
    max-width: calc((100% - 1.1rem) / 2);
  }

  .gallery-card.span-all {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .nav-links .hide-sm {
    display: none;
  }

  .pillars,
  .stats {
    grid-template-columns: 1fr;
  }

  .contract {
    border-radius: var(--radius-soft);
    padding: 1rem;
  }

  .btn-copy {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .gallery-card,
  .gallery-card.span-all {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .glow { animation: none; }
  .btn { transition: none; }
}

.gallery-card.tree-card .frame { aspect-ratio: auto; max-width: 720px; margin: 0 auto; }
.gallery-card.tree-card .frame img { position: static; width: 100%; height: auto; object-fit: contain; display: block; }
.gallery-card.tree-card figcaption { text-align: center; }
