/* ===== Tokens ===== */
:root{
  --ink: #070b12;
  --ink-2: #0f1620;
  --ink-3: #172231;
  --ice: #6FD6F2;
  --ice-2: #A9EBFA;
  --orange: #FF8C3D;
  --orange-2: #FFB877;
  --rose: #E85D6B;
  --bone: #F2F8FA;
  --bone-dim: rgba(242,248,250,0.72);
  --line: rgba(242,248,250,0.14);
  --paper: #F4EEE0;

  --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(--orange-2);
  margin: 0 0 0.9rem;
}
.eyebrow--dark{ color: rgba(7,11,18,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--ice{ background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: var(--ink); box-shadow: 0 0 0 0 rgba(255,140,61,0.6); }
.btn--ice:hover{ box-shadow: 0 10px 30px -6px rgba(255,140,61,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(--orange-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(7,11,18,0.9), rgba(7,11,18,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(--ice); 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(--ice); }
.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 (diagonal split) ===== */
.hero{
  position: relative;
  min-height: 100svh;
  display:grid; grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}
.hero__art{
  position:relative;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  background: var(--ink-2);
}
.hero__art img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter: brightness(0.9);
}
.hero__art::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, rgba(7,11,18,0.75) 0%, rgba(7,11,18,0.15) 35%, rgba(7,11,18,0) 55%);
}

.coin3d{
  position:absolute; top:8%; right:8%; z-index:3;
  width:64px; height:64px; 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.4rem; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, var(--orange-2), var(--orange) 70%);
  border: 3px solid rgba(7,11,18,0.3);
  backface-visibility: hidden;
  box-shadow: 0 0 20px rgba(255,140,61,0.4);
}
.coin3d__face--back{ transform: rotateY(180deg); }
.coin3d__edge{
  position:absolute; inset:6px; border-radius:50%;
  border: 2px dashed rgba(7,11,18,0.25);
  transform: translateZ(1px);
}
@keyframes spin3d{
  from{ transform: rotateY(0deg) rotateX(8deg); }
  to{ transform: rotateY(360deg) rotateX(8deg); }
}

.hero__content{
  position:relative; z-index:2;
  display:flex; flex-direction:column; justify-content:center;
  padding: 8rem clamp(1.2rem, 5vw, 4rem) 4rem clamp(1.2rem, 6vw, 5rem);
}
.hero__tagline{
  font-family: var(--display); font-weight:400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  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; max-width: 40ch; }
.hero__cta{ display:flex; gap:1rem; flex-wrap:wrap; }

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

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; grid-template-rows: 46svh auto; }
  .hero__art{ clip-path: polygon(0 0, 100% 0, 100% 88%, 0% 100%); }
  .hero__content{ padding: 2.4rem 1.4rem 3rem; text-align:center; align-items:center; }
  .hero__sub{ margin-left:auto; margin-right:auto; }
  .hero__cta{ justify-content:center; }
  .coin3d{ width:50px; height:50px; top:6%; right:6%; }
}

/* ===== Marquee ===== */
.marquee{
  background: var(--ice); color: var(--ink);
  transform: rotate(-1.4deg) scale(1.03);
  overflow: hidden; white-space: nowrap;
  padding: 0.85rem 0;
  margin: 0.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 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(--ice);
}

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

/* ===== Postcard pile gallery ===== */
.pile{ max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 4vw, 3rem) clamp(7rem, 11vw, 10rem); }
.pile__head{ text-align:center; max-width: 640px; margin: 0 auto 3.5rem; }
.pile__head .eyebrow{ text-align:center; }

.pile__stack{
  display:flex; justify-content:center; align-items:flex-start; gap: 2.2rem; flex-wrap:wrap;
}
.postcard{
  --rot: 0deg; --ty: 0px;
  background: var(--paper); border-radius: 6px; padding: 0.7rem 0.7rem 0;
  width: 280px; box-shadow: 0 20px 40px -12px rgba(0,0,0,0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
}
.postcard:hover{ transform: translateY(-10px) rotate(0deg) !important; box-shadow: 0 28px 50px -14px rgba(0,0,0,0.65); z-index:5; }
.postcard--a{ --rot: -5deg; --ty: 10px; }
.postcard--b{ --rot: 3deg; --ty: -8px; }
.postcard--c{ --rot: -2deg; --ty: 14px; }
.postcard.reveal{ opacity:0; transform: rotate(var(--rot)) translateY(calc(var(--ty) + 28px)); transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.25s ease; }
.postcard.reveal.is-visible{ opacity:1; transform: rotate(var(--rot)) translateY(var(--ty)); }
.postcard img{ width:100%; height: 190px; object-fit: cover; border-radius: 3px; }
.postcard__body{ padding: 0.9rem 0.3rem 1.2rem; }
.postcard__tag{
  display:inline-block; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.06em;
  background: var(--ink); color: var(--orange-2);
  padding: 0.22rem 0.55rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.postcard__caption{ font-size: 0.9rem; color: rgba(7,11,18,0.78); margin:0; font-family: var(--mono); }

@media (max-width: 640px){
  .postcard{ width: min(86vw, 320px); }
  .postcard--a, .postcard--b, .postcard--c{ transform: none; }
}

/* ===== Join (inverted) ===== */
.join{ background: var(--ice); 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){
  .postcard, .sticker, .coin3d{ transition:none !important; animation:none !important; }
  .sparkle, .marquee__track{ animation:none !important; }
  .reveal{ opacity:1; transform:none; transition:none; }
}
