/* ===== Tokens ===== */
:root{
  --ink: #0c0c0c;
  --ink-2: #161513;
  --ink-3: #201f1c;
  --yellow: #F5E400;
  --yellow-2: #FFF04D;
  --pink: #FF6FA5;
  --green: #3a4432;
  --bone: #FFF7E0;
  --bone-dim: rgba(255,247,224,0.72);
  --line: rgba(255,247,224,0.12);

  --display: "Lilita One", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.eyebrow{
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--yellow);
  margin: 0 0 0.9rem;
}
.eyebrow--dark{ color: rgba(12,12,12,0.65); }

.section-title{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}

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

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--body); font-weight:700; font-size:0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn--primary{ background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 0 rgba(245,228,0,0.6); }
.btn--primary:hover{ box-shadow: 0 10px 30px -6px rgba(245,228,0,0.55); }
.btn--ghost{ border-color: var(--line); color: var(--bone); }
.btn--ghost:hover{ border-color: var(--yellow); color: var(--yellow); }
.btn--small{ padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--dark{ background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn--dark:hover{ background: transparent; color: var(--ink); border-color: var(--ink); }

/* ===== Nav ===== */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 400;
  display:flex; align-items:center; gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(12,12,12,0.85), rgba(12,12,12,0));
  backdrop-filter: blur(6px);
}
.nav__logo{
  font-family: var(--display); font-size:1.4rem; color: var(--bone);
  margin-right: auto; display:flex; align-items:center; gap:0.35rem;
}
.nav__logo .dot{ color: var(--yellow); font-size: 1rem; }
.nav__links{ display:flex; gap: 1.8rem; font-weight:600; font-size:0.92rem; color: var(--bone-dim); }
.nav__links a:hover{ color: var(--yellow); }
.nav__burger{
  display:none; flex-direction:column; gap:5px; width:26px; padding:0;
  background:none; border:none; cursor:pointer;
}
.nav__burger span{ display:block; height:2px; background: var(--bone); border-radius:2px; }

@media (max-width: 760px){
  .nav__links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; background: var(--ink-2);
    border-bottom: 1px solid var(--line);
  }
  .nav__links a{ padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
  .nav .btn--small{ display:none; }
  .nav__burger{ display:flex; }
}

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding: 7rem 1.2rem 4rem;
  overflow: hidden;
  text-align:center;
}

.hero__word{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%,-52%);
  font-family: var(--display);
  font-size: clamp(6rem, 26vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 2px rgba(245,228,0,0.18);
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select:none;
  z-index: 1;
  will-change: transform;
}

.hero__stage{
  position: relative; z-index: 3;
  width: min(78vw, 480px); aspect-ratio: 16/9;
  display:flex; align-items:center; justify-content:center;
  perspective: 1200px;
  margin-bottom: 1.2rem;
}
.hero__glow{
  position:absolute; width: 70%; height:70%; border-radius:50%;
  background: radial-gradient(circle, rgba(245,228,0,0.55), rgba(245,228,0,0) 70%);
  filter: blur(30px);
  z-index:1;
  will-change: transform;
}
.hero__toon{
  position: relative; z-index:2;
  width: 100%; object-fit: contain;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.55));
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__content{ position:relative; z-index:3; max-width: 640px; }
.hero__tagline{
  font-family: var(--display); font-weight:400;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.08; margin: 0 0 1.1rem; color: var(--bone);
}
.hero__sub{ color: var(--bone-dim); font-size: 1.02rem; margin: 0 0 2rem; }
.hero__cta{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

.sparkles{ position:absolute; inset:0; z-index:2; pointer-events:none; }
.sparkle{
  position:absolute; color: var(--yellow); font-size: 1.1rem;
  opacity:0; animation: twinkle 3.4s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes twinkle{
  0%, 100%{ opacity:0; transform: scale(0.4) rotate(0deg); }
  50%{ opacity:1; transform: scale(1.15) rotate(20deg); }
}

.scrollcue{
  position:absolute; bottom: 2.2rem; left:50%; transform: translateX(-50%);
  width: 22px; height:36px; border: 2px solid var(--line); border-radius: 999px;
  z-index:3;
}
.scrollcue span{
  position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background: var(--yellow);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue{
  0%{ opacity:1; top:6px; } 70%{ opacity:0; top:18px; } 100%{ opacity:0; top:6px; }
}

/* ===== Marquee ===== */
.marquee{
  background: var(--yellow); color: var(--ink);
  transform: rotate(-1.4deg) scale(1.03);
  overflow: hidden; white-space: nowrap;
  padding: 0.85rem 0;
  margin: -1.6rem 0 0;
  position: relative; z-index: 5;
  box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}
.marquee__track{
  display:inline-flex;
  font-family: var(--mono); font-weight:700; font-size: 0.95rem; letter-spacing:0.04em;
  animation: scroll-left 22s linear infinite;
}
.marquee__track span{ padding-right: 0; }
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===== About ===== */
.about{
  max-width: var(--wrap); margin: 0 auto;
  display:grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem);
  align-items:center;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem);
}
.about__art{ display:flex; justify-content:center; }
.sticker{
  width: min(100%, 340px);
  transform: rotate(-6deg);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}
.about__art:hover .sticker{ transform: rotate(-2deg) scale(1.03); }
.about__text p{ color: var(--bone-dim); font-size:1.02rem; margin: 0 0 1rem; max-width: 46ch; }

.stats{
  display:grid; grid-template-columns: repeat(2, minmax(140px,1fr));
  gap: 0.9rem; margin: 1.6rem 0 0; padding: 1.3rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
}
.stats__item dt{
  font-family: var(--mono); font-size: 0.7rem; text-transform:uppercase; letter-spacing:0.08em;
  color: var(--bone-dim); margin: 0 0 0.25rem;
}
.stats__item dd{
  font-family: var(--mono); font-weight:700; font-size: 1.05rem; margin:0; color: var(--yellow);
}

/* ===== Moods ===== */
.moods{ max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 4vw, 3rem) clamp(6rem, 10vw, 9rem); }
.moods__head{ text-align:center; max-width: 640px; margin: 0 auto 3.5rem; }
.moods__head .eyebrow{ text-align:center; }

.moods__grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 1.4rem;
}
.card{
  position: relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 1.4rem 1.2rem 1.6rem; text-align:center;
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.12s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover{ box-shadow: 0 22px 40px -12px rgba(0,0,0,0.55); border-color: rgba(245,228,0,0.35); }
.card--a{ transform: rotate(-2deg); }
.card--b{ transform: rotate(1.6deg); margin-top: 1.6rem; }
.card--c{ transform: rotate(-1.2deg); margin-top: -0.6rem; }
.card--d{ transform: rotate(2.2deg); margin-top: 1rem; }
.card img{ width:100%; height: 150px; object-fit: contain; margin-bottom: 0.9rem; }
.card__tag{
  display:inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  background: rgba(245,228,0,0.12); color: var(--yellow);
  padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.card__caption{ font-size: 0.92rem; color: var(--bone-dim); margin:0; }

@media (max-width: 980px){
  .moods__grid{ grid-template-columns: repeat(2, 1fr); }
  .card--a, .card--b, .card--c, .card--d{ margin-top:0; }
}
@media (max-width: 560px){
  .moods__grid{ grid-template-columns: 1fr; }
}

/* ===== Join (inverted) ===== */
.join{ background: var(--yellow); color: var(--ink); padding: clamp(5rem, 10vw, 8rem) 1.2rem; }
.join__inner{ max-width: 640px; margin: 0 auto; text-align:center; }
.join__title{
  font-family: var(--display); font-weight:400; color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4rem); line-height:1.05; margin: 0 0 2.2rem;
}
.join__links{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ===== Footer ===== */
.footer{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:0.5rem;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem);
  font-family: var(--mono); font-size: 0.78rem; color: var(--bone-dim);
  border-top: 1px solid var(--line);
}

/* ===== About responsive ===== */
@media (max-width: 860px){
  .about{ grid-template-columns: 1fr; text-align:center; }
  .about__text p{ margin-left:auto; margin-right:auto; }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .about__art{ order: -1; }
}

/* ===== Scroll reveal ===== */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero__toon, .hero__glow, .hero__word, .card, .sticker{ transition:none !important; transform:none !important; }
  .sparkle, .marquee__track, .scrollcue span{ animation:none !important; }
  .reveal{ opacity:1; transform:none; transition:none; }
}
