*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #c9a227;
  --gold-bright: #e4c35a;
  --ink: #eef3f8;
  --muted: #93a6bb;
  --night: #06101c;
  --panel: #0c1828;
  --sky: #7eb8d8;
  --navy: #0a1628;
  --print: #e8eef4;
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--night);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.paw-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse fill='%23e4c35a' cx='50' cy='70' rx='23' ry='18'/%3E%3Cellipse fill='%23e4c35a' cx='20' cy='38' rx='11' ry='14' transform='rotate(-20 20 38)'/%3E%3Cellipse fill='%23e4c35a' cx='39' cy='22' rx='11' ry='14' transform='rotate(-7 39 22)'/%3E%3Cellipse fill='%23e4c35a' cx='61' cy='22' rx='11' ry='14' transform='rotate(7 61 22)'/%3E%3Cellipse fill='%23e4c35a' cx='80' cy='38' rx='11' ry='14' transform='rotate(20 80 38)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  background-position: 12px 20px;
}

.paw-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
}

.paw-stamp {
  position: absolute;
  width: var(--paw-size, 42px);
  height: var(--paw-size, 42px);
  margin: calc(var(--paw-size, 42px) / -2) 0 0 calc(var(--paw-size, 42px) / -2);
  color: var(--gold-bright);
  filter: drop-shadow(0 0 8px rgba(228, 195, 90, 0.4));
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rot, 0deg)) scale(0.4);
  animation: paw-press var(--paw-life, 1.4s) ease-out forwards;
}

.paw-stamp.is-walk { color: rgba(228, 195, 90, 0.7); animation-name: paw-walk-fade; }
.paw-stamp svg { width: 100%; height: 100%; display: block; }

@keyframes paw-press {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.35); }
  16% { opacity: 0.95; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1.1); }
  42% { opacity: 0.82; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(calc(var(--rot) + 8deg)) scale(0.88); }
}

@keyframes paw-walk-fade {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.5); }
  14% { opacity: 0.7; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.92); }
}

/* Rail */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 92px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0.6rem;
  background: #030810;
  border-right: 2px solid var(--gold-bright);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.rail-brand {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--gold-bright);
}

.rail-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #000;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.rail-brand span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.rail-nav {
  display: grid;
  gap: 0.85rem;
}

.rail-nav a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.rail-nav a:hover { color: var(--gold-bright); }

.rail-socials {
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.rail-socials a {
  display: grid;
  place-items: center;
  height: 36px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  background: var(--gold-bright);
  color: #120800;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.rail-socials a.is-off,
.nav-social.is-off,
.btn.is-off,
.footer-links a.is-off {
  display: none;
}

/* Mobile header */
.site-header {
  display: none;
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: #030810;
  border-bottom: 2px solid var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gold-bright);
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #000;
  border-radius: 50%;
}

.nav-title {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a { text-decoration: none; color: var(--ink); font-weight: 700; }
.nav-socials { display: flex; gap: 0.4rem; }
.nav-social {
  padding: 0.3rem 0.55rem;
  background: var(--gold-bright);
  color: #120800 !important;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--gold-bright);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  margin-left: 92px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #071018;
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 28, 0.9) 0%, rgba(6, 16, 28, 0.55) 38%, rgba(6, 16, 28, 0.12) 68%, rgba(6, 16, 28, 0.08) 100%),
    linear-gradient(180deg, rgba(6, 16, 28, 0.12) 0%, rgba(6, 16, 28, 0.18) 48%, rgba(6, 16, 28, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 1.6rem;
  max-width: 760px;
  width: 100%;
  padding: 5rem 4vw 3.2rem;
}

.hero-kicker,
.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 12vw, 9.2rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-title span { display: block; }

.hero-title span:last-child {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold-bright);
}

.hero-ticker {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}

.hero-ticker em {
  font-style: normal;
  color: var(--muted);
  margin-left: 0.8rem;
}

.hero-lede {
  max-width: 22em;
  margin: 0.9rem 0 1.2rem;
  color: var(--ink);
  font-weight: 600;
}

.hero-copy { min-width: 0; }

.hero-coin {
  position: relative;
  flex: 0 0 auto;
  width: min(210px, 38%);
}

.hero-logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
  border-radius: 50%;
  border: 3px solid var(--gold-bright);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(228, 195, 90, 0.12);
}

.hero-coin-tag {
  position: absolute;
  left: -8px;
  bottom: 18px;
  padding: 0.35rem 0.7rem;
  background: var(--gold-bright);
  color: #140d04;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  border: 0;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover { transform: translate(-2px, -2px); }

.btn-primary {
  background: linear-gradient(135deg, #ffe27a, var(--gold));
  color: #140d04;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.btn-copy {
  background: var(--gold-bright);
  color: #140d04;
  flex-shrink: 0;
}

.btn-copy.copied { filter: brightness(1.15); }

.slash-band {
  margin-left: 92px;
  overflow: hidden;
  background: var(--gold-bright);
  color: #140d04;
  transform: skewY(-2deg);
  border-block: 3px solid #000;
}

.slash-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  animation: slide 22s linear infinite;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

main { position: relative; z-index: 1; margin-left: 92px; }

/* Lore */
.lore {
  display: grid;
  grid-template-columns: 90px 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 6rem 5vw;
  background: #081320;
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
}

.lore-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.lore h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.lore p { color: var(--muted); margin-bottom: 0.8rem; max-width: 32em; }
.lore strong { color: var(--gold-bright); }

.cut-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.lore-visual {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
}

.lore-visual img {
  width: 100%;
  background: #000;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lore-tag {
  position: absolute;
  left: -10px;
  bottom: 18px;
  padding: 0.35rem 0.7rem;
  background: var(--gold-bright);
  color: #140d04;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
}

/* Origin / Signal */
.origin {
  padding: 5.5rem 5vw;
  background: var(--night);
}

.origin-head { max-width: 28em; margin-bottom: 2rem; }
.origin-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.9;
}
.origin-head p:last-child { color: var(--muted); margin-top: 0.6rem; }

.origin-split {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.embed-stage {
  min-width: 0;
  background: var(--panel);
  border: 2px solid var(--gold);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}

.embed-stage-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}

.embed-stage-bar a { color: var(--muted); text-decoration: none; }

.social-card {
  background: #152033;
  color: var(--ink);
  padding: 1.15rem;
  text-align: left;
  flex: 1;
}

.social-card header { display: grid; margin-bottom: 0.6rem; }
.social-card header span { color: var(--muted); font-size: 0.85rem; }
.social-card p { font-weight: 600; margin-bottom: 0.8rem; font-size: 1.35rem; }
.social-card a {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold-bright);
}

.embed-frame {
  display: flex;
  justify-content: center;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  background: #000;
}

.embed-stage.is-embedded .social-card { display: none; }
.embed-stage.is-embedded .embed-frame {
  height: auto;
  overflow: visible;
  visibility: visible;
  flex: 1;
}

.tweet-embed {
  min-height: 280px;
}

.tweet-embed twitter-widget,
.tweet-embed iframe {
  max-width: 100% !important;
}

blockquote.twitter-tweet { display: none; }

.yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  flex: 1;
}

.yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.desk { padding: 2rem 0 4rem; }

.desk-head {
  margin-left: 5vw;
  margin-bottom: 1.2rem;
}

.desk-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.wide-reel {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 1.4rem;
  margin: 0 4vw 1.6rem;
  align-items: center;
}

.wide-print {
  margin: 0;
  background: var(--print);
  padding: 0.55rem 0.55rem 1.7rem;
  box-shadow: 8px 16px 30px rgba(0, 0, 0, 0.35);
}

.wide-print img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.wide-print.coin-print img {
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
}

.wide-print figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #4a3822;
}

.wide-print.tilt-left { transform: rotate(-2.5deg); }
.wide-print.tilt-right { transform: rotate(2.8deg); }

.wide-print:hover { transform: rotate(0deg); transition: transform 0.2s ease; }

.print-wall {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-areas:
    "a b c"
    "a d e"
    "f d e";
  gap: 1.2rem 1.1rem;
  margin: 0 4vw 0.4rem;
  padding: 1.4rem 1.2rem 2.2rem;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 42px),
    linear-gradient(180deg, #1a140c 0%, #0e0b08 100%);
  border: 8px solid #2a1c10;
  box-shadow: inset 0 18px 40px rgba(0, 0, 0, 0.35);
}

.print {
  margin: 0;
  background: var(--print);
  padding: 0.55rem 0.55rem 1.65rem;
  box-shadow: 8px 16px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.print img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
}

.print figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #4a3822;
}

.print-a { grid-area: a; transform: rotate(-2.2deg); }
.print-b { grid-area: b; transform: rotate(3.4deg); }
.print-c { grid-area: c; transform: rotate(-4deg); }
.print-d { grid-area: d; transform: rotate(2.2deg); }
.print-e { grid-area: e; transform: rotate(-1.8deg); }
.print-f { grid-area: f; transform: rotate(3deg); }

.print-a img { aspect-ratio: 1; height: 100%; }
.print-c img,
.print-f img {
  object-fit: contain;
  background: #070604;
}

.print:hover {
  z-index: 2;
  transform: rotate(0deg) scale(1.03);
}

/* Slabs */
.slab {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 4.5rem 5vw;
  align-items: start;
}

.slab-side h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--panel);
  border: 2px solid var(--gold);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.ca-address {
  flex: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  word-break: break-all;
  color: var(--gold-bright);
}

.ca-address.is-tba {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.18em;
  text-align: center;
}

.copy-toast {
  min-height: 1.4rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-bright);
  opacity: 0;
}

.copy-toast.show { opacity: 1; }

.chart-wrapper {
  min-height: 460px;
  background: #000;
  border: 2px solid var(--gold);
  overflow: hidden;
}

.chart-wrapper.is-tba {
  min-height: 260px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(228, 195, 90, 0.16), transparent 58%),
    #000;
}

.chart-tba { text-align: center; color: var(--ink); padding: 2rem; }
.chart-tba span {
  display: block;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  font-size: 0.75rem;
}
.chart-tba strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}
.chart-tba p { color: var(--muted); }

.dexscreener-embed {
  width: 100%;
  height: 540px;
  border: 0;
  display: block;
}

.chart-section .cut-link { display: inline-block; margin-top: 1rem; }

/* Buy */
.buy {
  padding: 5rem 5vw 4rem;
  background:
    linear-gradient(180deg, transparent, rgba(228, 195, 90, 0.06));
}

.buy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.8rem;
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.buy-grid article {
  padding: 1.2rem 1rem;
  background: var(--panel);
  border: 2px solid rgba(228, 195, 90, 0.28);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.buy-grid b {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.3rem;
}

.buy-grid h3 {
  font-family: var(--font-display);
  margin: 0.35rem 0 0.4rem;
}

.buy-grid p { color: var(--muted); font-size: 0.92rem; }

.footer {
  margin-left: 92px;
  padding: 2.2rem 5vw;
  background: #000;
  border-top: 2px solid var(--gold);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem 1.2rem;
  align-items: center;
}

.footer img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #000;
  border-radius: 50%;
}

.footer strong {
  display: block;
  font-family: var(--font-display);
}

.footer span,
.footer p { color: var(--muted); font-size: 0.82rem; }

.footer p { grid-column: 1 / -1; max-width: 46em; }

.footer-links { display: flex; gap: 1rem; }
.footer-links a {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .paw-layer, .slash-track { animation: none; }
  .paw-layer { display: none; }
}

@media (max-width: 980px) {
  .rail { display: none; }
  .site-header { display: block; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #030810;
    padding: 0.5rem 0 1rem;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1.2rem; }
  .hero, main, .slash-band, .footer { margin-left: 0; }
  .lore, .origin-split, .slab, .buy-grid, .footer, .wide-reel {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 100svh; }
  .hero-content {
    flex-direction: column-reverse;
    align-items: start;
    max-width: none;
    padding: 7rem 6vw 2.4rem;
  }
  .hero-coin { width: min(160px, 42%); }
  .lore-num { writing-mode: horizontal-tb; transform: none; }
  .lore-visual { justify-self: start; }
  .wide-reel { margin: 0 5vw 1.4rem; }
  .wide-print.tilt-left,
  .wide-print.tilt-right { transform: none; }
  .print-wall {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b c"
      "d e"
      "f f";
    margin: 0 5vw;
    padding: 1.2rem 0.9rem 1.8rem;
  }
  .print { transform: none; }
  .footer { justify-items: start; }
}
