:root {
  --bg: #120907;
  --bg-soft: #1c0f0a;
  --panel: #24140d;
  --panel-strong: #2d180f;
  --cream: #fff3dc;
  --muted: #cdbca6;
  --gold: #ffbd22;
  --gold-dark: #7a4a00;
  --pink: #ff89a8;
  --pink-soft: #ffd2dc;
  --green: #80f06c;
  --line: rgba(255, 189, 34, 0.26);
  --shadow: rgba(0, 0, 0, 0.45);
  --display: "Lilita One", "Cooper Black", "Arial Black", sans-serif;
  --body: "Baloo 2", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--cream);
  background:
    linear-gradient(115deg, rgba(255, 137, 168, 0.08), transparent 24rem),
    linear-gradient(245deg, rgba(255, 189, 34, 0.12), transparent 34rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 96px),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 243, 220, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 47% 28%, rgba(255, 189, 34, 0.44) 0 1px, transparent 2px),
    radial-gradient(circle at 81% 34%, rgba(255, 137, 168, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 83%, rgba(255, 243, 220, 0.36) 0 1px, transparent 2px);
  background-size: 520px 520px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--bg);
  background: var(--pink-soft);
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.section-pad {
  padding: 7rem 7vw;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 1.35rem;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(59.5rem, calc(100% - 2rem));
  padding: 0.6rem 0.75rem;
  color: var(--muted);
  background: rgba(18, 9, 7, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1rem 3rem var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.site-header.scrolled {
  background: rgba(18, 9, 7, 0.9);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgba(255, 236, 161, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 1rem rgba(255, 189, 34, 0.48);
}

.brand-mark img {
  width: 140%;
  height: 140%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--cream);
  transform: translateY(-1px);
}

.nav-cta,
.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 800;
  color: #170b05;
  background: var(--gold);
  box-shadow: 0 0.38rem 0 #8a5706;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.button {
  padding: 0.85rem 1.55rem;
}

.button.secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button:hover,
.copy-button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button.primary:hover,
.copy-button:hover,
.nav-cta:hover {
  background: #ffd15a;
  box-shadow: 0 0.5rem 0 #8a5706;
}

.button.secondary:hover {
  border-color: rgba(255, 137, 168, 0.58);
  background: rgba(255, 137, 168, 0.1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.24rem auto;
  background: var(--cream);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.86fr);
  align-items: center;
  gap: 4.5rem;
  min-height: 92svh;
  padding-top: 9.5rem;
  padding-bottom: 5.25rem;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow,
.chapter,
.handle {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.94;
  text-transform: uppercase;
}

h1 {
  max-width: 47rem;
  font-size: 5.55rem;
  text-wrap: balance;
}

h2 {
  font-size: 4.45rem;
  text-wrap: balance;
}

h3 {
  font-size: 3rem;
}

p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-art img {
  width: min(100%, 38rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 2rem 3.5rem rgba(255, 189, 34, 0.2));
  animation: floatPig 5s ease-in-out infinite;
}

.coin-stamp {
  position: absolute;
  display: grid;
  width: 42%;
  aspect-ratio: 1;
  place-items: center;
  border: 0.7rem solid rgba(255, 243, 220, 0.94);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 9rem;
  color: rgba(255, 243, 220, 0.94);
  text-shadow: 0 0 2rem rgba(255, 243, 220, 0.5);
  mix-blend-mode: screen;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.84;
  transform: translateX(-50%);
}

.thesis {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background:
    linear-gradient(90deg, rgba(255, 137, 168, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.012);
  border-top: 1px solid rgba(255, 189, 34, 0.12);
  border-bottom: 1px solid rgba(255, 189, 34, 0.12);
}

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  width: min(100%, 76rem);
  margin: 0 auto;
}

.thesis-stack {
  display: grid;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.thesis-stack span {
  color: rgba(255, 243, 220, 0.34);
}

.thesis-stack span:last-child {
  color: var(--pink-soft);
  text-shadow: 0 0 2rem rgba(255, 137, 168, 0.2);
}

.thesis-copy h2 {
  margin-bottom: 1.35rem;
}

.thesis-copy p:not(.eyebrow) {
  max-width: 43rem;
  margin: 0 0 1.4rem;
  font-size: 1.35rem;
}

.thesis-copy strong {
  display: inline-flex;
  color: var(--gold);
  font-family: var(--display);
  font-size: 2rem;
}

.contract-band {
  display: grid;
  min-height: 74svh;
  place-items: center;
}

.contract-card {
  position: relative;
  width: min(100%, 60rem);
  padding: 4.2rem 4.4rem;
  background:
    linear-gradient(120deg, rgba(255, 137, 168, 0.05), transparent 42%),
    rgba(36, 20, 13, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.22);
}

.contract-card h2 {
  font-size: 3.55rem;
}

.snout-eyes {
  position: absolute;
  top: 4.2rem;
  right: 4.4rem;
  display: flex;
  gap: 0.75rem;
}

.snout-eyes span {
  position: relative;
  width: 2rem;
  height: 1.1rem;
  border: 2px solid var(--cream);
  border-radius: 50%;
}

.snout-eyes span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 3rem 0 1.8rem;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 9, 7, 0.45);
}

code {
  color: var(--cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-width: 5.4rem;
  min-height: 2.7rem;
}

.microcopy {
  margin: 0;
  font-size: 1rem;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 4.5rem;
}

.section-heading h2 {
  margin-bottom: 1.4rem;
}

.section-heading p:last-child {
  max-width: 40rem;
  margin: 0;
  font-size: 1.2rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.8fr);
  gap: 4rem;
  max-width: 82rem;
  align-items: center;
}

.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1fr);
  gap: 6rem;
  align-items: center;
  width: min(100%, 86rem);
  margin: 0 auto 7rem;
}

.story-row:last-child {
  margin-bottom: 0;
}

.story-row.reversed {
  grid-template-columns: minmax(20rem, 1fr) minmax(0, 0.82fr);
}

.story-row.reversed .story-copy {
  order: 2;
}

.story-copy p:last-child {
  max-width: 32rem;
  margin-top: 1.8rem;
  font-size: 1.25rem;
}

.story-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.playground {
  background:
    linear-gradient(180deg, transparent, rgba(255, 189, 34, 0.07) 46%, transparent),
    rgba(255, 255, 255, 0.01);
}

.meme-lab {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(18rem, 0.65fr);
  gap: 2rem;
  align-items: stretch;
  width: min(100%, 70rem);
  margin: 0 auto;
}

.meme-preview {
  position: relative;
  overflow: hidden;
  min-height: 31rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.meme-preview img {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
}

.meme-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(18, 9, 7, 0.92));
}

.meme-caption {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.2rem;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0.18rem 0 rgba(0, 0, 0, 0.36);
}

.meme-controls {
  display: grid;
  align-content: center;
  gap: 1.7rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 20, 13, 0.74);
}

.control-group > label,
.field {
  display: grid;
  gap: 0.65rem;
  color: var(--cream);
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 9, 7, 0.6);
}

.mode-button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.mode-button.active {
  color: #180a05;
  background: var(--pink-soft);
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.95rem;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 9, 7, 0.7);
  outline: none;
}

.field input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 137, 168, 0.12);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.1fr;
  gap: 1.6rem;
  width: min(100%, 86rem);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  min-height: 28rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(18, 9, 7, 0.88));
}

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 0.95rem;
  font-family: var(--display);
  font-size: 1.8rem;
  text-transform: uppercase;
}

.gallery-item.wide {
  grid-column: span 1;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  width: min(100%, 86rem);
  margin: 0 auto;
}

.community-card {
  position: relative;
  display: grid;
  min-height: 20rem;
  align-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 20, 13, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.community-card.highlight {
  background:
    linear-gradient(120deg, rgba(255, 189, 34, 0.16), transparent),
    rgba(36, 20, 13, 0.72);
}

.community-card strong {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.community-card span:not(.handle) {
  color: var(--muted);
}

.community-card i {
  position: absolute;
  right: 2rem;
  bottom: 1.8rem;
  color: var(--gold);
  font-style: normal;
  font-size: 1.6rem;
}

.community-card:hover {
  border-color: rgba(255, 137, 168, 0.5);
  background: rgba(45, 24, 15, 0.9);
  transform: translateY(-4px);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 7vw;
  border-top: 1px solid var(--line);
  background: rgba(18, 9, 7, 0.68);
}

.brand.muted {
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 800;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cream);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 1.25rem;
  min-width: 12rem;
  padding: 0.85rem 1.1rem;
  color: #160905;
  text-align: center;
  font-weight: 800;
  background: var(--pink-soft);
  border-radius: 999px;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@keyframes floatPig {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-0.8rem) rotate(1deg);
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3.75rem;
  }

  .hero {
    gap: 2.5rem;
  }

  .story-row,
  .story-row.reversed {
    gap: 3rem;
  }
}

@media (max-width: 920px) {
  .section-pad {
    padding: 5.5rem 1.25rem;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: calc(100% - 1.5rem);
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-header.open .nav-toggle span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.open .nav-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .site-header.open .nav-links,
  .site-header.open .nav-cta {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.open .nav-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    padding: 0.5rem 0.35rem 0;
  }

  .site-header.open .nav-links a {
    padding: 0.55rem 0.35rem;
  }

  .site-header.open .nav-cta {
    width: 100%;
    margin-top: 0.25rem;
  }

  .hero,
  .thesis-grid,
  .split-heading,
  .story-row,
  .story-row.reversed,
  .meme-lab,
  .community-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 8.5rem;
    text-align: center;
  }

  .hero-copy,
  .hero-copy h1 {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: min(100%, 25rem);
  }

  .coin-stamp {
    font-size: 6rem;
    border-width: 0.45rem;
  }

  .scroll-cue {
    display: none;
  }

  .thesis-grid {
    gap: 2rem;
    text-align: center;
  }

  .thesis-stack {
    font-size: 3.45rem;
  }

  .thesis-copy p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .contract-band {
    min-height: auto;
  }

  .contract-card {
    padding: 2.2rem 1.25rem;
  }

  .contract-card h2 {
    font-size: 2.9rem;
  }

  .snout-eyes {
    position: static;
    margin-bottom: 1rem;
  }

  .address-row {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .copy-button {
    width: 100%;
  }

  .story-row.reversed .story-copy {
    order: 0;
  }

  .story-image img {
    min-height: 22rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.wide {
    grid-column: 1 / -1;
  }

  .site-footer {
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  h3 {
    font-size: 2.15rem;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .hero-actions,
  .control-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .meme-preview,
  .meme-preview img {
    min-height: 25rem;
  }

  .meme-caption {
    font-size: 2rem;
  }

  .meme-controls {
    padding: 1.25rem;
  }

  .segmented {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .mode-button {
    border-radius: 8px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    min-height: 23rem;
  }

  .community-card {
    min-height: 16rem;
    padding: 1.6rem;
  }
}
