/* ===== Tokens ===== */
:root{
  --ink: #170f0b;
  --ink-2: #221712;
  --ink-3: #2b1d16;
  --rust: #E8623A;
  --rust-2: #FF8B5E;
  --night: #6E86D6;
  --night-2: #9FB0E8;
  --cream: #F6E7C9;
  --bone: #FBF3E7;
  --bone-dim: rgba(251,243,231,0.72);
  --line: rgba(251,243,231,0.14);

  --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(--rust-2);
  margin: 0 0 0.9rem;
}
.eyebrow--dark{ color: rgba(23,15,11,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;
}

.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; gap:0.5rem;
  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--rust{ background: linear-gradient(180deg, var(--rust-2), var(--rust)); color: var(--ink); box-shadow: 0 0 0 0 rgba(232,98,58,0.6); }
.btn--rust:hover{ box-shadow: 0 10px 30px -6px rgba(232,98,58,0.6); }
.btn--x{ background: #fff; color: #0b0b0b; }
.btn--x:hover{ box-shadow: 0 10px 30px -6px rgba(255,255,255,0.35); }
.btn--small{ padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--big{ padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn--dark{ background: var(--ink); color: var(--rust-2); border-color: var(--ink); }
.btn--dark:hover{ background: transparent; color: var(--ink); border-color: var(--ink); }
.icon-x{ width: 1rem; height: 1rem; flex: none; }

/* ===== 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(23,15,11,0.9), rgba(23,15,11,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(--rust-2); 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(--rust-2); }
.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 (split screen, not full-bleed) ===== */
.hero{
  position: relative;
  min-height: 100svh;
  display:grid; grid-template-columns: 1fr 1fr; align-items:center;
  gap: 2rem;
  padding: 8rem clamp(1.2rem, 5vw, 4rem) 4rem;
}
.hero__col--text{ position:relative; z-index:2; }
.hero__tagline{
  font-family: var(--display); font-weight:400;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1; margin: 0 0 1.1rem; color: var(--bone);
}
.hero__sub{ color: var(--bone-dim); font-size: 1.02rem; margin: 0 0 2rem; max-width: 42ch; }
.hero__cta{ display:flex; gap:1rem; flex-wrap:wrap; }

.sparkles{ position:absolute; inset: -2rem -1rem auto auto; width:140px; height:140px; z-index:1; pointer-events:none; }
.sparkle{
  position:absolute; color: var(--rust-2); 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); }
}

.hero__col--art{ position:relative; display:flex; justify-content:center; }
.hero__frame{
  position:relative; width:100%; max-width:520px; aspect-ratio: 4/3;
  border-radius: 28px; overflow:hidden;
  border: 3px solid rgba(251,243,231,0.14);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.65);
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.12s ease-out;
}
.hero__frame img{ width:100%; height:100%; object-fit:cover; }
.hero__frame::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(23,15,11,0.55), rgba(23,15,11,0) 40%);
  pointer-events:none;
}

.coin3d{
  position:absolute; bottom:-22px; right:-22px; z-index:3;
  width:76px; height:76px; transform-style: preserve-3d;
  animation: spin3d 5.5s linear infinite;
  will-change: transform;
}
.coin3d__face{
  position:absolute; inset:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--display); font-size:1.6rem; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, var(--rust-2), var(--rust) 70%);
  border: 3px solid rgba(23,15,11,0.3);
  backface-visibility: hidden;
  box-shadow: 0 0 20px rgba(232,98,58,0.4);
}
.coin3d__face--back{ transform: rotateY(180deg); }
.coin3d__edge{
  position:absolute; inset:8px; border-radius:50%;
  border: 2px dashed rgba(23,15,11,0.25);
  transform: translateZ(1px);
}
@keyframes spin3d{
  from{ transform: rotateY(0deg) rotateX(8deg); }
  to{ transform: rotateY(360deg) rotateX(8deg); }
}

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; text-align:center; padding-top: 7rem; }
  .hero__cta{ justify-content:center; }
  .hero__sub{ margin-left:auto; margin-right:auto; }
  .hero__col--art{ order:-1; }
  .hero__frame{ max-width: 420px; }
  .coin3d{ width:56px; height:56px; bottom:-14px; right:-14px; }
  .coin3d__face{ font-size:1.2rem; }
}

/* ===== Marquee ===== */
.marquee{
  background: var(--rust); color: var(--ink);
  transform: rotate(-1.4deg) scale(1.03);
  overflow: hidden; white-space: nowrap;
  padding: 0.85rem 0;
  margin: 0.4rem 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 24s linear infinite;
}
@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%, 320px);
  border-radius: 20px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}
.about__art:hover .sticker{ transform: rotate(-1deg) 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(--rust-2);
}

@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; }
}

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

.filmstrip__track{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.frame-card{
  position:relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 22px; overflow:hidden; padding-bottom: 1.4rem;
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.12s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}
.frame-card:hover{ box-shadow: 0 22px 40px -12px rgba(0,0,0,0.6); border-color: rgba(232,98,58,0.4); }
.frame-card img{ width:100%; height: 240px; object-fit: cover; margin-bottom: 1rem; }
.frame-card__tag{
  display:inline-block; margin-left: 1.2rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  background: rgba(232,98,58,0.16); color: var(--rust-2);
  padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.frame-card__caption{ font-size: 0.92rem; color: var(--bone-dim); margin:0 1.2rem; }

@media (max-width: 860px){
  .filmstrip__track{ grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ===== Join (inverted) ===== */
.join{ background: var(--rust-2); color: var(--ink); padding: clamp(5rem, 10vw, 8rem) 1.2rem; }
.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__inner{ max-width: 640px; margin: 0 auto; text-align:center; }
.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);
}

/* ===== 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){
  .frame-card, .sticker, .coin3d, .hero__frame{ transition:none !important; animation:none !important; transform:none !important; }
  .sparkle, .marquee__track{ animation:none !important; }
  .reveal{ opacity:1; transform:none; transition:none; }
}
