:root {
  --bg: #080808;
  --panel: rgba(8, 8, 8, .82);
  --panel-2: rgba(18, 16, 15, .78);
  --line: rgba(236, 230, 219, .18);
  --ink: #f1eee7;
  --muted: #a8a39b;
  --red: #9f1715;
  --red-bright: #d12a23;
  --black: #050505;
  --header-h: 78px;
  --pad: clamp(22px, 4vw, 68px);
  --cut: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .035;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.25) 4px, transparent 5px),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18) 0 1px, transparent 1.5px);
  background-size: 100% 5px, 8px 8px;
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: var(--header-h);
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(4,4,4,.84), rgba(4,4,4,0));
}
.site-header > * { pointer-events: auto; }
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.6));
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.social-row { display: flex; align-items: center; gap: 8px; }
.social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
.social img { width: 100%; height: 100%; object-fit: contain; }
.social:hover { transform: translateY(-2px); filter: brightness(1.18); }
.social:focus-visible, .buy-btn:focus-visible, .dex-link:focus-visible, .copy-btn:focus-visible, .brand-mark:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.snap-shell {
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #0a0a0a;
}
.screen {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("../assets/bg-desktop.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,5,5,.91) 0%, rgba(5,5,5,.74) 35%, rgba(5,5,5,.26) 67%, rgba(5,5,5,.5) 100%),
    radial-gradient(circle at 68% 45%, rgba(150,18,15,.10), transparent 36%);
}
.face-screen::before {
  background:
    linear-gradient(90deg, rgba(5,5,5,.46) 0%, rgba(5,5,5,.18) 44%, rgba(5,5,5,.83) 66%, rgba(5,5,5,.93) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.62));
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 0 160px rgba(0,0,0,.74);
  pointer-events: none;
}
.wrap { width: min(1500px, 100%); margin: 0 auto; padding-inline: var(--pad); }

.hero-grid, .face-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(460px, .94fr) minmax(460px, 1.06fr);
  align-items: center;
  gap: clamp(12px, 2.5vw, 46px);
  padding-top: calc(var(--header-h) + 18px);
  padding-bottom: 50px;
}
.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 690px;
  align-self: center;
}
.wordmark {
  width: min(680px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.62));
}
.ticker-row { display: flex; align-items: center; gap: 14px; margin-top: clamp(2px, .7vh, 8px); }
.ticker {
  font-size: clamp(26px, 2.2vw, 40px);
  font-weight: 900;
  letter-spacing: .05em;
  color: #fff;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 7px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7,7,7,.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted);
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #686868; box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.live-badge.is-live { color: #e9e4dc; }
.live-badge.is-live i { background: var(--red-bright); box-shadow: 0 0 14px rgba(209,42,35,.75); }
.tagline {
  margin: 8px 0 clamp(16px, 2.5vh, 28px);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(34px, 4.5vw, 74px);
  line-height: .98;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 5px 25px rgba(0,0,0,.62);
}

.market-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,17,17,.85), rgba(4,4,4,.82));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(5px);
}
.market-item { min-width: 0; padding: 13px 14px 14px; border-right: 1px solid var(--line); }
.market-item:last-child { border-right: 0; }
.market-item span { display: block; color: #8d8982; font-size: 10px; letter-spacing: .15em; font-weight: 900; margin-bottom: 5px; }
.market-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(16px, 1.25vw, 22px);
  letter-spacing: .025em;
  color: #fff;
  transition: opacity .2s ease;
}
.market-item strong.flash { opacity: .4; }
.market-change.positive strong { color: #f3eee7; }
.market-change.negative strong { color: #e0544e; }

.ca-panel {
  display: flex;
  align-items: stretch;
  margin-top: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(4,4,4,.76);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.ca-copy { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.ca-label { color: var(--red-bright); font-size: 11px; letter-spacing: .14em; font-weight: 900; }
.ca-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, "Courier New", monospace; font-size: 12px; color: #c8c2b8; }
.copy-btn {
  width: 92px;
  flex: 0 0 92px;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(142,20,18,.88);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .15em;
  cursor: pointer;
  transition: background .18s ease, filter .18s ease;
}
.copy-btn:hover { background: var(--red-bright); }
.copy-btn.copied { background: #ece7de; color: #171717; }

.actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.buy-btn, .dex-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 13px;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: filter .18s ease, transform .18s ease;
}
.buy-btn { background: var(--red); color: #fff; min-width: 176px; }
.dex-link { border: 1px solid var(--line); background: rgba(5,5,5,.70); color: #d6d0c6; }
.buy-btn:hover, .dex-link:hover { filter: brightness(1.15); transform: translateY(-1px); }

.hero-visual, .second-visual { position: relative; height: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.character { width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.hero-character {
  position: relative;
  z-index: 2;
  max-height: min(89svh, 1040px);
  max-width: 100%;
  filter: drop-shadow(0 28px 38px rgba(0,0,0,.7));
}
.character-halo {
  position: absolute;
  z-index: 0;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 24%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(137,20,17,.20) 0%, rgba(137,20,17,.05) 44%, transparent 70%);
  filter: blur(5px);
}
.decor-divider { position: absolute; z-index: 3; width: min(390px, 58%); right: 4%; bottom: 4%; opacity: .55; pointer-events: none; }
.scroll-cue {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #9c968e;
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 900;
}
.scroll-cue b { color: var(--red-bright); font-size: 18px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px); } }

.face-grid { grid-template-columns: 1.05fr .95fr; padding-bottom: 115px; }
.second-visual { justify-content: center; }
.second-character {
  max-height: min(88svh, 1030px);
  max-width: 100%;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.75));
}
.face-copy { max-width: 620px; justify-self: end; position: relative; z-index: 4; }
.mini-mark { width: clamp(56px, 5.4vw, 94px); margin-bottom: 10px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.face-copy h2 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(62px, 8vw, 142px);
  line-height: .82;
  letter-spacing: .005em;
  color: #f1eee7;
  text-transform: uppercase;
  text-shadow: 0 14px 36px rgba(0,0,0,.55);
}
.face-copy h2::after {
  content: "";
  display: block;
  width: min(420px, 75%);
  height: 7px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--red-bright), rgba(209,42,35,0));
}
.second-copy { margin: 18px 0 22px; color: #c5c0b7; font-size: clamp(20px, 2vw, 31px); line-height: 1.2; letter-spacing: .03em; }
.second-copy strong { color: #fff; }
.face-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.face-socials .social { width: 47px; height: 47px; }
.ca-panel-secondary { max-width: 580px; }

.footer {
  position: absolute;
  z-index: 7;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(1500px,100%);
  min-height: 82px;
  padding-top: 13px;
  padding-bottom: max(15px, env(safe-area-inset-bottom));
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(to top, rgba(3,3,3,.80), rgba(3,3,3,.22));
}
.footer-brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 900; letter-spacing: .055em; font-size: 12px; }
.footer-brand img { width: 33px; height: 33px; object-fit: contain; }
.footer-brand b { color: var(--red-bright); }
.footer p { margin: 0; max-width: 760px; color: #77726b; font-size: 9px; line-height: 1.4; text-align: right; letter-spacing: .02em; }

.reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-up { transform: translateY(24px); }
.screen.is-visible .reveal { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  :root { --header-h: 70px; --pad: clamp(18px, 3.2vw, 36px); }
  .hero-grid, .face-grid { grid-template-columns: .95fr 1.05fr; gap: 8px; }
  .market-panel { grid-template-columns: repeat(3, 1fr); }
  .market-item:nth-child(3) { border-right: 0; }
  .market-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .market-item:nth-child(4) { grid-column: span 2; }
  .market-item:nth-child(4) { border-right: 1px solid var(--line); }
  .hero-character { max-height: 82svh; }
  .face-copy h2 { font-size: clamp(56px, 8.5vw, 95px); }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; --pad: 16px; }
  .site-header { height: var(--header-h); padding-top: max(8px, env(safe-area-inset-top)); }
  .brand-mark { width: 42px; height: 42px; }
  .header-socials { gap: 3px; }
  .header-socials .social { width: 36px; height: 36px; }
  .snap-shell { scroll-snap-type: y proximity; }
  .screen { height: auto; min-height: 100svh; overflow: hidden; scroll-snap-stop: normal; }
  .backdrop { background-image: url("../assets/bg-mobile.webp"); background-position: center top; }
  .screen::before {
    background: linear-gradient(to bottom, rgba(4,4,4,.78) 0%, rgba(4,4,4,.30) 35%, rgba(4,4,4,.58) 70%, rgba(4,4,4,.92) 100%);
  }
  .face-screen::before { background: linear-gradient(to bottom, rgba(4,4,4,.55), rgba(4,4,4,.72) 50%, rgba(4,4,4,.94)); }
  .hero-grid, .face-grid {
    min-height: 100svh;
    height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 42px;
    align-content: start;
  }
  .hero-copy { display: contents; }
  .wordmark { order: 1; width: min(100%, 560px); margin: 0 auto; }
  .ticker-row { order: 2; justify-content: center; margin-top: 1px; }
  .tagline { order: 3; text-align: center; font-size: clamp(38px, 12vw, 62px); margin: 7px 0 8px; }
  .hero-visual { order: 4; height: min(43svh, 485px); margin-top: 0; align-items: flex-end; }
  .market-panel { order: 5; }
  .ca-panel { order: 6; }
  .actions { order: 7; }
  .hero-character { max-height: 45svh; max-width: 95%; }
  .character-halo { width: 77%; top: 42%; }
  .decor-divider { width: 44%; right: 2%; bottom: 1%; opacity: .4; }
  .market-panel { grid-template-columns: 1fr 1fr; margin-top: 8px; }
  .market-item, .market-item:nth-child(n) { grid-column: auto; border-right: 1px solid var(--line); border-top: 1px solid var(--line); padding: 10px 12px; }
  .market-item:nth-child(1), .market-item:nth-child(2) { border-top: 0; }
  .market-item:nth-child(even) { border-right: 0; }
  .market-item:last-child { grid-column: 1 / -1; border-right: 0; }
  .market-item strong { font-size: 17px; }
  .ca-panel { margin-top: 8px; }
  .ca-copy { padding: 10px 11px; gap: 8px; }
  .ca-value { font-size: 11px; }
  .copy-btn { width: 78px; flex-basis: 78px; }
  .actions { justify-content: center; }
  .buy-btn, .dex-link { flex: 1; min-width: 0; padding: 0 12px; }
  .scroll-cue { display: none; }

  .face-grid { padding-bottom: 126px; }
  .second-visual { order: 1; height: min(52svh, 580px); align-items: flex-end; margin-top: 0; }
  .second-character { max-height: 54svh; max-width: 94%; }
  .face-copy { order: 2; justify-self: stretch; text-align: center; margin-top: -8px; }
  .mini-mark { margin: 0 auto 6px; width: 54px; }
  .face-copy h2 { font-size: clamp(54px, 17vw, 86px); line-height: .83; }
  .face-copy h2::after { margin: 12px auto 0; height: 5px; }
  .second-copy { font-size: 20px; margin: 12px 0 15px; }
  .ca-panel-secondary { max-width: none; }
  .face-actions { justify-content: center; flex-wrap: wrap; }
  .face-actions .buy-btn { flex: 0 0 160px; }
  .face-socials { width: auto; }
  .face-socials .social { width: 43px; height: 43px; }
  .footer { min-height: 104px; gap: 8px; flex-direction: column; justify-content: center; padding-top: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .footer p { text-align: center; max-width: 620px; font-size: 8px; padding-inline: 8px; }
}

@media (max-width: 420px) {
  .header-socials .social { width: 33px; height: 33px; }
  .market-item strong { font-size: 15px; }
  .tagline { font-size: 39px; }
  .buy-btn, .dex-link { font-size: 11px; }
  .face-copy h2 { font-size: clamp(50px, 16vw, 72px); }
}

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