:root {
  --bg: #070707;
  --bg-soft: #0e0e0f;
  --text: #f5f5f2;
  --muted: #9a9a9a;
  --line: rgba(255,255,255,.12);
  --purple: #7c3cff;
  --purple-2: #a076ff;
  --max: 1480px;
  --topbar-h: 72px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body, main { min-height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .032;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--topbar-h);
  padding: env(safe-area-inset-top) 28px 0;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background .28s ease, border-color .28s ease, color .28s ease, backdrop-filter .28s ease;
}
.topbar.scrolled {
  background: rgba(7,7,7,.72);
  border-color: var(--line);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
.topbar.on-light {
  color: #0b0b0b;
  background: rgba(240,240,236,.78);
  border-color: rgba(0,0,0,.1);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
.topbar.on-light .nav { color: rgba(0,0,0,.58); }
.topbar.on-light .nav a:hover { color: #000; }
.topbar.on-light .pill-small { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.brand { font-weight: 950; font-size: 22px; letter-spacing: -.06em; }
.nav { display: flex; gap: 28px; font-size: 13px; color: rgba(255,255,255,.72); transition: color .28s ease; }
.nav a:hover { color: #fff; }
.topbar > .pill-small { justify-self: end; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  background: #fff;
  color: #090909;
  border: 1px solid #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
  cursor: pointer;
}
.pill:hover { transform: translateY(-2px); }
.pill-small { min-height: 38px; padding: 0 16px; }
.pill-ghost {
  background: rgba(0,0,0,.25);
  color: white;
  border-color: rgba(255,255,255,.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pill.disabled { opacity: .45; pointer-events: none; }

.slide {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}
.slide-inner {
  width: min(var(--max), calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  padding-top: calc(var(--topbar-h) + 30px);
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

.slide-rail {
  position: fixed;
  z-index: 55;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  transition: color .25s ease;
}
.slide-rail.on-light { color: #111; }
.slide-rail a {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: .45;
  transition: opacity .2s ease, transform .2s ease;
}
.slide-rail a span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transition: width .2s ease, height .2s ease;
}
.slide-rail a.active { opacity: 1; transform: scale(1.12); }
.slide-rail a.active span { width: 8px; height: 8px; }
.slide-count {
  margin-top: 5px;
  display: flex;
  gap: 2px;
  align-items: baseline;
  font-size: 8px;
  letter-spacing: .08em;
  opacity: .56;
}
.slide-count strong { font-size: 9px; font-weight: 800; }

.hero {
  display: flex;
  align-items: flex-end;
  background: #090909;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.09) 0%, rgba(0,0,0,.06) 34%, rgba(0,0,0,.84) 100%),
    linear-gradient(90deg, rgba(0,0,0,.54), transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  margin: 0 0 max(7vh, 52px) max(28px, calc((100vw - var(--max))/2 + 28px));
}
.eyebrow, .section-kicker {
  font-size: 11px;
  letter-spacing: .17em;
  font-weight: 850;
  color: rgba(255,255,255,.58);
}
.hero h1 {
  margin: 4px 0 -6px;
  font-size: clamp(110px, 19vw, 260px);
  line-height: .78;
  letter-spacing: -.09em;
  font-weight: 1000;
}
.tagline {
  font-size: clamp(25px, 3.2vw, 48px);
  letter-spacing: -.04em;
  margin: 24px 0 6px;
  font-weight: 780;
}
.subline { max-width: 600px; margin: 0; color: rgba(255,255,255,.66); font-size: 15px; }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; }
.swipe-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  letter-spacing: .17em;
  color: rgba(255,255,255,.5);
}
.swipe-hint span { font-size: 13px; }

.story { background: #070707; }
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: clamp(38px, 6vw, 100px);
  align-items: center;
}
.story-text { align-self: center; }
.story h2, .life h2, .meme-banner h2, .buy h2 {
  margin: 16px 0 0;
  font-size: clamp(58px, 7.6vw, 116px);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 950;
}
.story-copy { max-width: 590px; margin-top: 32px; color: #b9b9b9; font-size: 17px; line-height: 1.55; }
.story-copy p { margin: 0 0 16px; }
.story-copy p:last-child { margin-bottom: 0; color: #fff; }
.portrait-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4/4.6;
  max-height: min(74vh, 780px);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portrait-card span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 10px;
  letter-spacing: .16em;
  background: rgba(0,0,0,.48);
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.life { background: #070707; border-top: 1px solid var(--line); }
.life-layout { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.life .section-head {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
}
.life h2 { font-size: clamp(58px, 7.2vw, 106px); }
.life .section-head p { color: var(--muted); margin: 0 34px 6px 0; }
.life-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 930px);
  gap: 18px;
  overflow-x: auto;
  padding: 0 max(28px, calc((100vw - var(--max))/2 + 28px)) 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.life-track::-webkit-scrollbar { display: none; }
.scene-card {
  position: relative;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16/8.8;
  max-height: 57vh;
  background: #111;
  border: 1px solid var(--line);
}
.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.scene-card:hover img { transform: scale(1.035); }
.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.78));
  pointer-events: none;
}
.scene-meta {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
}
.scene-meta span, .scene-meta em { font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.55); font-style: normal; }
.scene-meta strong { font-size: 15px; letter-spacing: -.01em; }

.meme-banner { background: #f0f0ec; color: #0b0b0b; }
.meme-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(46px, 6vw, 90px);
  align-items: center;
}
.meme-banner .section-kicker { color: rgba(0,0,0,.48); }
.meme-banner h2 { font-size: clamp(60px, 7.5vw, 112px); }
.meme-copy p { max-width: 470px; font-size: 18px; line-height: 1.5; color: #5f5f5f; }
.meme-collage { position: relative; height: min(68vh, 720px); min-height: 470px; }
.meme-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
  border: 7px solid #fff;
}
.meme-collage img:nth-child(1) { width: 70%; aspect-ratio: 16/9; left: 0; top: 15%; transform: rotate(-5deg); }
.meme-collage img:nth-child(2) { width: 58%; aspect-ratio: 16/9; right: 0; top: 8%; transform: rotate(5deg); }
.meme-collage img:nth-child(3) { width: 62%; aspect-ratio: 16/9; right: 12%; bottom: 3%; transform: rotate(-1.5deg); }

.buy { background: #070707; }
.buy-layout { display: grid; grid-template-rows: 1fr auto; gap: 22px; align-items: center; }
.buy-panel {
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 40%, rgba(124,60,255,.32), transparent 30%), #0b0b0d;
}
.buy-panel::after {
  content:"";
  position:absolute;
  width:500px;
  height:500px;
  border-radius:50%;
  right:-180px;
  top:-210px;
  background: rgba(124,60,255,.14);
  filter: blur(5px);
}
.coin-mark {
  width: min(250px, 20vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#4e1bc8,#9f75ff);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 0 70px rgba(255,255,255,.12), 0 30px 100px rgba(78,27,200,.35);
  font-size: clamp(54px, 7vw, 100px);
  font-weight: 1000;
  letter-spacing: -.09em;
}
.buy h2 { font-size: clamp(52px, 6vw, 88px); }
.buy-actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.contract {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.contract-label, .contract-copy { font-size: 9px; letter-spacing: .14em; color: #777; }
.contract-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #c7c7c7; }
.social-row { display: flex; gap: 22px; margin-top: 8px; font-size: 11px; letter-spacing: .11em; color: #8e8e8e; }
.social-row a:hover { color: #fff; }

footer {
  width: 100%;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 30px;
  align-items: end;
  border-top: 1px solid var(--line);
  color: #737373;
}
.footer-brand { color: #fff; font-size: 28px; font-weight: 1000; letter-spacing: -.07em; }
.footer-copy { max-width: 560px; font-size: 11px; line-height: 1.5; }
.footer-year { font-size: 11px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 200;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --topbar-h: 64px; }
  .topbar { grid-template-columns: 1fr auto; padding: env(safe-area-inset-top) 18px 0; }
  .nav { display: none; }
  .slide-inner { width: calc(100% - 36px); padding-top: calc(var(--topbar-h) + 24px); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .slide-rail { right: 5px; gap: 8px; }
  .slide-rail a { width: 16px; height: 16px; }
  .slide-count { display: none; }

  .hero-media { object-position: 58% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.11) 5%, rgba(0,0,0,.15) 43%, rgba(0,0,0,.9) 100%); }
  .hero-copy { margin-left: 20px; margin-bottom: max(8vh, 54px); width: calc(100% - 48px); }
  .hero h1 { font-size: clamp(100px, 34vw, 180px); }
  .tagline { font-size: clamp(24px, 7vw, 34px); }
  .swipe-hint { bottom: max(12px, env(safe-area-inset-bottom)); }

  .story-layout { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
  .story-text { width: 100%; }
  .story h2 { margin-top: 10px; font-size: clamp(48px, 13.8vw, 68px); line-height: .9; }
  .story-copy { margin-top: 18px; font-size: 14.5px; line-height: 1.43; }
  .story-copy p { margin-bottom: 10px; }
  .portrait-card { width: 100%; flex: 0 0 auto; aspect-ratio: 16/7.7; max-height: 31vh; border-radius: 22px; }
  .portrait-card img { object-position: center 43%; }

  .life-layout { padding-top: calc(var(--topbar-h) + 28px); }
  .life .section-head { width: calc(100% - 44px); margin: 0 22px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .life h2 { margin-top: 10px; font-size: clamp(50px, 14.5vw, 72px); }
  .life .section-head p { margin: 0; font-size: 14px; }
  .life-track { grid-auto-columns: 88vw; padding-left: 18px; padding-right: 18px; }
  .scene-card { aspect-ratio: 4/3; max-height: 55vh; border-radius: 22px; }

  .meme-layout { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
  .meme-copy { width: 100%; }
  .meme-banner h2 { margin-top: 10px; font-size: clamp(52px, 15vw, 76px); }
  .meme-copy p { margin: 18px 0 0; max-width: 620px; font-size: 15px; line-height: 1.45; }
  .meme-collage { width: 100%; height: 48vh; min-height: 300px; max-height: 430px; }
  .meme-collage img { border-width: 6px; border-radius: 16px; }
  .meme-collage img:nth-child(1) { width: 76%; top: 15%; }
  .meme-collage img:nth-child(2) { width: 64%; top: 4%; }
  .meme-collage img:nth-child(3) { width: 70%; right: 9%; bottom: 1%; }

  .buy-layout { width: calc(100% - 36px); padding-top: calc(var(--topbar-h) + 24px); gap: 14px; }
  .buy-panel { grid-template-columns: 1fr; gap: 16px; padding: 26px; border-radius: 24px; }
  .coin-mark { width: min(34vw, 150px); }
  .buy h2 { margin-top: 8px; font-size: clamp(46px, 13.5vw, 68px); }
  .buy-actions { gap: 10px; }
  footer { grid-template-columns: 1fr auto; padding-top: 14px; gap: 14px; }
  .footer-copy { grid-column: 1 / -1; grid-row: 2; font-size: 10px; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 9px; margin-top: 22px; }
  .pill { width: 100%; }
  .topbar .pill { width: auto; }
  .scene-meta { grid-template-columns: 32px 1fr; }
  .scene-meta em { display: none; }
  .contract { grid-template-columns: 1fr auto; }
  .contract-label { display: none; }
  .footer-year { display: none; }
}

@media (max-width: 980px) and (max-height: 760px) {
  .story-layout { gap: 15px; }
  .story h2 { font-size: clamp(43px, 12.5vw, 58px); }
  .story-copy { margin-top: 13px; font-size: 13.5px; }
  .portrait-card { max-height: 27vh; }
  .life .section-head { margin-bottom: 15px; gap: 8px; }
  .life h2 { font-size: clamp(46px, 13vw, 62px); }
  .scene-card { max-height: 50vh; }
  .meme-layout { gap: 10px; }
  .meme-banner h2 { font-size: clamp(46px, 13vw, 64px); }
  .meme-copy p { margin-top: 12px; font-size: 13.5px; }
  .meme-collage { height: 43vh; min-height: 260px; }
  .buy-panel { gap: 10px; padding: 20px; }
  .coin-mark { width: min(28vw, 118px); }
  .buy h2 { font-size: clamp(42px, 12vw, 58px); }
  .pill { min-height: 44px; }
  .contract { padding: 13px 15px; }
  .social-row { margin-top: 2px; }
  footer { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
