:root {
  --cream: #fbf6ee;
  --cream-deep: #f0e2d2;
  --paper: #fffaf4;
  --blush: #e8b8a4;
  --blush-deep: #d4a090;
  --hat: #d2a08c;
  --yarn: #f2c8b8;
  --mint: #3cb54a;
  --mint-deep: #2a9a38;
  --mint-soft: #b8e3b4;
  --chocolate: #4a2c1a;
  --ink: #3a2416;
  --mute: #7a5a48;
  --line: rgba(74, 44, 26, 0.14);
  --shadow: 0 22px 50px rgba(74, 44, 26, 0.12);
  --display: "Chewy", "Lilita One", cursive;
  --title: "Lilita One", "Chewy", cursive;
  --body: "Nunito", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

.studio,
.motes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.studio-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(242, 200, 184, 0.45), transparent 60%),
    radial-gradient(800px 480px at 88% 18%, rgba(184, 227, 180, 0.28), transparent 62%),
    linear-gradient(180deg, #fbf6ee 0%, #f7eee4 48%, #f4e6d8 100%);
}

.studio-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(210, 160, 140, 0.18), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(60, 181, 74, 0.1), transparent 34%);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}

.studio-knit {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(74, 44, 26, 0.05) 18px 19px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(74, 44, 26, 0.05) 18px 19px);
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 80%);
}

.studio-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float-orb 16s ease-in-out infinite;
}

.orb-blush {
  width: 280px;
  height: 280px;
  background: rgba(232, 184, 164, 0.45);
  top: 12%;
  right: 8%;
}

.orb-mint {
  width: 220px;
  height: 220px;
  background: rgba(60, 181, 74, 0.16);
  bottom: 18%;
  left: 10%;
  animation-delay: -6s;
}

.orb-cream {
  width: 180px;
  height: 180px;
  background: rgba(255, 250, 244, 0.7);
  top: 55%;
  right: 22%;
  animation-delay: -11s;
}

.spotlight {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 244, 0.35), transparent 68%);
  transform: translate(-50%, -50%);
  transition: left 0.18s linear, top 0.18s linear;
}

.mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--yarn));
  box-shadow: 0 0 0 4px rgba(210, 160, 140, 0.15);
  animation: mote-fall linear infinite;
}

.baton-rail {
  position: fixed;
  left: 18px;
  top: 18%;
  height: 64%;
  width: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.baton-grip {
  width: 18px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(180deg, #4ad15a, var(--mint-deep));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  animation: grip-pulse 3.2s ease-in-out infinite;
}

.baton-shaft {
  width: 10px;
  flex: 1;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f3f3f3);
  box-shadow: 0 0 0 2px rgba(74, 44, 26, 0.06);
}

.scarf,
main,
.footer {
  position: relative;
  z-index: 3;
}

.scarf {
  position: sticky;
  top: 14px;
  margin: 14px auto 0;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.78);
  border: 2px solid rgba(210, 160, 140, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: scarf-settle 0.8s ease both;
}

.scarf.scrolled {
  box-shadow: 0 10px 28px rgba(74, 44, 26, 0.16);
}

.scarf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scarf-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hat);
  animation: bob 4.5s ease-in-out infinite;
}

.scarf-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.scarf-brand small {
  color: var(--mute);
  font-weight: 800;
}

.scarf-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.scarf-nav a {
  font-weight: 800;
  color: var(--chocolate);
  position: relative;
}

.scarf-nav a:not(.scarf-buy)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--mint);
  transition: width 0.25s ease;
}

.scarf-nav a:hover::after {
  width: 100%;
}

.scarf-buy,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.scarf-buy {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: #fff;
  box-shadow: 0 8px 18px rgba(60, 181, 74, 0.28);
}

.scarf-buy img,
.btn img,
.join-card img,
.station-icon img,
.portrait-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.scarf-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.scarf-toggle i {
  display: block;
  height: 3px;
  margin: 6px 8px;
  background: var(--chocolate);
  border-radius: 99px;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait-glow {
  position: absolute;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 181, 74, 0.2), transparent 68%);
  animation: glow-spin 10s linear infinite;
}

.portrait-mat {
  width: min(420px, 100%);
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 46% 54% 48% 52%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(210, 160, 140, 0.28) 0 8px, rgba(255, 250, 244, 0.9) 8px 16px);
  box-shadow: var(--shadow);
  animation: mat-morph 9s ease-in-out infinite;
}

.portrait-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fffaf4;
  animation: bob 5.5s ease-in-out infinite;
}

.portrait-tag {
  position: absolute;
  bottom: 18px;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(74, 44, 26, 0.08);
}

.eyebrow {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blush-deep);
  font-size: 0.78rem;
  margin-bottom: 10px;
}

h1,
h2,
.station h3,
.fact h3 {
  font-family: var(--title);
  letter-spacing: 0.01em;
}

.title-knit {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.92;
  color: var(--chocolate);
  text-shadow: 3px 4px 0 rgba(210, 160, 140, 0.45);
  animation: title-pop 1s ease both;
}

.title-sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--mint-deep);
}

.lede {
  margin: 18px 0 22px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--mute);
  max-width: 34rem;
}

.ticker-row,
.hero-actions,
.ca-strip,
.join-links,
.stations,
.about-cards {
  display: flex;
}

.ticker-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.chip-mint {
  background: rgba(60, 181, 74, 0.12);
  color: var(--mint-deep);
}

.ca-strip {
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.88);
  border: 1px dashed var(--blush-deep);
  margin-bottom: 20px;
}

.ca-label {
  font-weight: 800;
  color: var(--hat);
}

#ca-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

#ca-copy,
.btn {
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ca-copy {
  border: 0;
  background: var(--chocolate);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

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

.btn-mint {
  background: var(--mint);
  color: #fff;
  box-shadow: 0 10px 22px rgba(60, 181, 74, 0.26);
}

.btn-ink {
  background: var(--paper);
  color: var(--chocolate);
  border: 2px solid var(--chocolate);
}

.btn:hover,
.scarf-buy:hover,
.join-card:hover,
#ca-copy:hover {
  transform: translateY(-3px);
}

.section-head {
  margin: 88px 0 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 16ch;
  line-height: 1.05;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.about-story,
.fact,
.station,
.chart-frame,
.join-card {
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-story {
  padding: 32px;
  border-radius: 28px;
  line-height: 1.75;
}

.about-story p + p {
  margin-top: 16px;
}

.about-cards {
  flex-direction: column;
  gap: 14px;
}

.fact {
  padding: 20px 22px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.fact::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--hat), var(--mint));
}

.fact span {
  font-family: var(--display);
  color: var(--blush-deep);
}

.howto {
  position: relative;
}

.trail {
  height: 70px;
  margin: 8px 0 8px;
}

.trail path {
  fill: none;
  stroke: var(--hat);
  stroke-width: 5;
  stroke-dasharray: 12 10;
  stroke-linecap: round;
  animation: dash-move 8s linear infinite;
}

.stations {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.station {
  padding: 22px 18px 24px;
  border-radius: 24px;
  text-align: center;
}

.station-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--yarn);
  animation: bob 4.8s ease-in-out infinite;
}

.station-icon img {
  width: 34px;
  height: 34px;
}

.station h3,
.fact h3 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

.chart-frame {
  border-radius: 28px;
  overflow: hidden;
  min-height: 640px;
  border: 6px solid #efe0d2;
  box-shadow:
    var(--shadow),
    inset 0 0 0 2px rgba(210, 160, 140, 0.4);
}

.chart-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0d1117;
}

.billboard {
  margin: 0 0 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid #efe0d2;
  box-shadow: var(--shadow);
  background: #fff8f2;
}

.billboard img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

.join-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.join-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
}

.join-card img {
  width: 28px;
  height: 28px;
}

.join-card span {
  font-family: var(--title);
  font-size: 1.2rem;
}

.join-card small {
  color: var(--mute);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px 40px;
  color: var(--mute);
  font-weight: 700;
}

.footer img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.join-card img[src*="x.svg"],
.join-card img[src*="dexscreener.svg"],
.btn-ink img,
.station-icon img[src*="dexscreener.svg"] {
  filter: none;
}

.join-card:hover {
  border-color: var(--mint);
  box-shadow: 0 16px 32px rgba(60, 181, 74, 0.14);
}

.station:hover {
  transform: translateY(-6px);
  transition: transform 0.25s ease;
}

.hero::after,
.about::before,
.join::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 28px;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(circle at 30% 40%, var(--hat) 0 36%, transparent 38%),
    radial-gradient(circle at 70% 40%, var(--hat) 0 36%, transparent 38%),
    radial-gradient(circle at 18% 72%, var(--hat) 0 22%, transparent 24%),
    radial-gradient(circle at 50% 78%, var(--hat) 0 22%, transparent 24%),
    radial-gradient(circle at 82% 72%, var(--hat) 0 22%, transparent 24%);
  animation: bob 6s ease-in-out infinite;
}

.hero::after { right: 4%; top: 8%; }
.about::before { left: 0; top: 24px; }
.join::after { right: 6%; top: 40px; animation-delay: -2s; }

.about,
.join,
.howto,
.chart {
  position: relative;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chocolate);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: 0.25s ease;
}

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

.rise {
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

@keyframes mesh-drift {
  to { transform: translate3d(3%, -2%, 0) scale(1.05); }
}

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

@keyframes mote-fall {
  from { transform: translateY(-10vh); opacity: 0; }
  12% { opacity: 0.9; }
  to { transform: translateY(110vh); opacity: 0; }
}

@keyframes grip-pulse {
  50% { filter: brightness(1.15); transform: scaleY(1.04); }
}

@keyframes scarf-settle {
  from { transform: translateY(-16px); opacity: 0; }
}

@keyframes bob {
  50% { transform: translateY(-6px); }
}

@keyframes glow-spin {
  to { transform: rotate(360deg); }
}

@keyframes mat-morph {
  50% { border-radius: 54% 46% 56% 44%; }
}

@keyframes title-pop {
  from { transform: scale(0.92); opacity: 0; }
}

@keyframes dash-move {
  to { stroke-dashoffset: -180; }
}

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .baton-rail { display: none; }
  .hero-grid,
  .about-layout,
  .stations,
  .join-links {
    grid-template-columns: 1fr;
  }
  .hero-grid { gap: 28px; }
  .scarf-toggle { display: block; }
  .scarf-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 16px;
    border-radius: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .scarf-nav.open { display: flex; }
  .chart-frame,
  .chart-frame iframe { min-height: 480px; height: 480px; }
}
