:root {
  --paper: #EFECE4;
  --paper-2: #E4E0D5;
  --paper-3: #D6D1C3;
  --ink: #111111;
  --ink-2: #2B2925;
  --muted: #4A4740;
  --orange: #FF4A1C;
  --blue: #1D35F5;
  --white: #FFFFFF;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --line: 3px solid var(--ink);
  --lr: 150px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--ink); }
a:hover { color: #C4300A; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); color: inherit; }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { color: var(--paper); box-shadow: 5px 5px 0 var(--orange); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: inline-block; background: var(--ink); color: var(--paper); padding: 6px 12px; font-weight: 800; font-stretch: 75%; font-size: 22px; letter-spacing: .02em; transform: rotate(-2deg); transition: transform .2s ease; }
.brand:hover .brand-mark { transform: rotate(2deg); }
.brand-tag { border: 2px solid var(--ink); border-radius: 99px; padding: 2px 10px; font-size: 11px; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat; transition: background-size .25s var(--ease); }
.nav a:hover { color: var(--ink); background-size: 100% 3px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-top: var(--line); border-bottom: var(--line); cursor: crosshair; touch-action: pan-y; --lx: 60%; --ly: 45%; }
.hero-inner { position: relative; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.hero-title { margin: 10px 0 0; font-weight: 800; font-stretch: 75%; font-size: clamp(30px, 4.2vw, 60px); line-height: 1; letter-spacing: -.01em; }
.counter-wrap { position: relative; }
.counter {
  margin: 10px 0 0; font-weight: 800; font-stretch: 75%;
  font-size: clamp(56px, 14.5vw, 218px); line-height: .92; letter-spacing: -.035em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.counter .ch { display: inline-block; }
.counter .ch.bump { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: translateY(-.12em); color: var(--orange); } 100% { transform: none; } }
.pop {
  position: absolute; right: 4%; top: -6px; opacity: 0; pointer-events: none;
  background: var(--orange); border: 2px solid var(--ink); padding: 4px 12px; font-weight: 800; font-size: 16px;
}
.pop.is-on { animation: pop 1.8s ease-out forwards; }
@keyframes pop {
  0% { opacity: 0; transform: translateY(12px) rotate(-6deg) scale(.8); }
  18% { opacity: 1; transform: translateY(0) rotate(-6deg) scale(1.08); }
  80% { opacity: 1; transform: translateY(-6px) rotate(-6deg); }
  100% { opacity: 0; transform: translateY(-26px) rotate(-6deg); }
}
.stickers { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.sticker { display: inline-block; padding: 8px 14px; font-weight: 800; font-size: 16px; transform: rotate(var(--r, 0deg)); }
.sticker:hover { animation: wobble .5s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(calc(var(--r, 0deg) * -1)); } }
.sticker-orange { background: var(--orange); border: 2px solid var(--ink); }
.sticker-ink { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.sticker-dash { border: 2px dashed var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }

/* The x-ray layer: a blue copy of the hero, clipped to the lens */
.xray {
  position: absolute; inset: 0; background: var(--blue); color: var(--white); pointer-events: none;
  clip-path: circle(var(--lr) at var(--lx) var(--ly));
  -webkit-clip-path: circle(var(--lr) at var(--lx) var(--ly));
}
.xray-hex { position: absolute; inset: 0; padding: 12px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .3); overflow: hidden; word-break: break-all; }
.xray .hero-inner { color: var(--white); }
.xray .counter { color: transparent; -webkit-text-stroke: 2px var(--white); }
.xray .sticker, .xray .btn { background: transparent; color: var(--white); border-color: var(--white); box-shadow: none; }
.xray .hint { color: var(--white); }
.xray .pop { display: none; }
.xray .counter-wrap::after {
  content: 'u64 lamports  ; share_bps = 10000';
  position: absolute; right: 0; bottom: -22px; font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.xray .hero-title::after { content: '  ; mov rax, [creator_vault]'; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: pre; }
.lens-ring {
  position: absolute; left: 0; top: 0; width: calc(var(--lr) * 2); height: calc(var(--lr) * 2);
  transform: translate(calc(var(--lx) - var(--lr)), calc(var(--ly) - var(--lr)));
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 3px var(--orange); pointer-events: none;
}

/* Marquee bands */
.bands { overflow: hidden; padding: 26px 0; }
.band { overflow: hidden; margin: 0 -40px; }
.band-orange { background: var(--orange); border-top: var(--line); border-bottom: var(--line); transform: rotate(-1.6deg); }
.band-ink { background: var(--ink); color: var(--paper); transform: rotate(1.2deg); margin-top: -6px; }
.band-track { display: flex; width: max-content; white-space: nowrap; }
.band-orange .band-track { padding: 12px 0; font-weight: 800; font-stretch: 75%; font-size: 30px; text-transform: uppercase; }
.band-orange .band-track span { padding: 0 22px; }
.band-orange .band-track span::after { content: '///'; padding-left: 44px; }
.band-ink .band-track { padding: 10px 0; font-size: 15px; font-weight: 600; }
.band-ink .band-track span { padding: 0 28px; }
.marquee { animation: marquee 50s linear infinite; }
.marquee-rev { animation-direction: reverse; animation-duration: 60s; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.builds { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-title { margin: 0; font-weight: 800; font-stretch: 75%; font-size: clamp(48px, 8vw, 120px); line-height: .88; letter-spacing: -.03em; }
.section-lede { margin: 18px 0 0; max-width: 720px; font-size: 19px; color: var(--ink-2); }
.count { margin: 0; font-size: 13px; font-weight: 600; }

/* Cards */
.featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px; margin-top: 36px; }
.featured:empty { display: none; }
.featured .card:first-child { grid-row: span 2; }
.featured .card:first-child .card-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.featured .card:first-child .card-title { font-size: clamp(34px, 3.6vw, 52px); }

.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 44px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper);
  font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.chip:hover { transform: rotate(-3deg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--orange); }
.chip .n { font-family: var(--mono); font-size: 12px; font-weight: 600; opacity: .7; margin-left: 4px; }
.controls-right { display: flex; flex-wrap: wrap; gap: 10px; }
.field input, .field select {
  min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--paper); font-size: 15px; font-weight: 600;
}
.field input { width: min(320px, 100%); }
.field select { cursor: pointer; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border: var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover, .card:focus-within { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--line); background: var(--tint, var(--paper-3)); --mx: 50%; --my: 50%; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease), opacity .4s ease; }
.card-media img { opacity: 0; }
.card-media img.is-loaded { opacity: 1; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.045); }
.card-media video { position: absolute; inset: 0; opacity: 0; }
.card-media video.is-playing { opacity: 1; }
.card-lens {
  position: absolute; left: 0; top: 0; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  transform: translate(calc(var(--mx) - 100px), calc(var(--my) - 100px)) scale(.6); opacity: 0;
  background: rgba(29, 53, 245, .5);
  -webkit-backdrop-filter: grayscale(1) invert(1) contrast(1.35);
  backdrop-filter: grayscale(1) invert(1) contrast(1.35);
  border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--orange);
  transition: opacity .2s ease, transform .25s var(--ease);
}
.card-lens::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 4px);
}
.card-media.is-lens .card-lens { opacity: 1; transform: translate(calc(var(--mx) - 100px), calc(var(--my) - 100px)) scale(1); }
.card-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--ink); color: var(--orange);
  padding: 3px 8px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.card-play { position: absolute; right: 12px; top: 12px; z-index: 2; background: var(--paper); border: 2px solid var(--ink); padding: 2px 8px; font-family: var(--mono); font-size: 11px; font-weight: 800; }
.card-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px;
  background: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(17, 17, 17, .05) 14px 15px);
}
.card-fallback .from { font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1; max-width: 80%; }
.card-fallback .arrow { align-self: flex-end; background: var(--orange); border: 2px solid var(--ink); padding: 6px 12px; font-weight: 800; font-stretch: 75%; font-size: 24px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.tag { border: 2px solid var(--ink); padding: 1px 7px; }
.tag-proof { background: var(--orange); }
.card-title { margin: 0; font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-from { margin: 0; font-weight: 700; font-size: 15px; }
.card-from span { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted); margin-right: 6px; }
.card-summary { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); }

.empty { margin: 32px 0; font-size: 18px; }
.more { display: flex; justify-content: center; margin-top: 36px; }

/* Submit */
.submit { margin-top: 48px; background: var(--ink); color: var(--paper); padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; transform: rotate(-.4deg); }
.submit-field { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.submit label { font-weight: 800; font-stretch: 80%; font-size: 22px; }
.submit input { min-height: 52px; padding: 0 16px; border: 2px solid var(--paper); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 14px; }
.submit .btn { flex: 1 1 160px; border-color: var(--paper); }
.submit-note { flex-basis: 100%; margin: 0; font-size: 12px; color: #CFCABE; }

/* Fees */
.fees { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0; }
.fees .section-title { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.step { border: 2px solid var(--paper); padding: 22px; }
.step-n { display: block; font-weight: 800; font-stretch: 75%; font-size: 64px; line-height: 1; color: var(--orange); }
.step h3 { margin: 10px 0 0; font-size: 22px; font-weight: 800; }
.step p { margin: 6px 0 0; color: #D9D5CA; font-size: 16px; }
.step-hot { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.step-hot .step-n { color: var(--ink); }
.step-hot p { color: var(--ink); }
.vaults { margin-top: 40px; border: 2px solid var(--paper); padding: 22px; }
.vaults-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vault-list { list-style: none; margin: 0; padding: 0; }
.vault-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(239, 236, 228, .25); }
.vault-list a { color: var(--paper); }
.vault-list a .mono { font-size: 12px; opacity: .7; margin-left: 6px; }
.vaults-note { margin: 12px 0 0; font-size: 12px; color: #CFCABE; }

/* Footer */
.footer { padding-top: 56px; padding-bottom: 48px; }
.coin-title { margin: 0; font-weight: 800; font-stretch: 75%; font-size: clamp(40px, 6vw, 84px); line-height: .9; }
.ca { display: flex; flex-wrap: wrap; margin-top: 18px; border: var(--line); max-width: 820px; }
.ca code { flex: 999 1 300px; min-width: 0; padding: 16px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ca .btn { flex: 1 1 110px; border: 0; border-left: var(--line); }
.ca .btn:hover { box-shadow: none; transform: none; background: var(--ink); color: var(--orange); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; font-weight: 700; }
.disclaimer { margin: 28px 0 0; max-width: 760px; font-size: 14px; color: var(--muted); }

/* Detail view */
.modal { width: min(1080px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: var(--line); background: var(--paper); color: var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.modal::backdrop { background: rgba(17, 17, 17, .72); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.modal-media { position: relative; background: var(--tint, var(--paper-3)); border-right: var(--line); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.modal-media img, .modal-media video { width: 100%; height: 100%; max-height: calc(100vh - 30px); object-fit: contain; }
.modal-media .card-fallback { position: absolute; }
.modal-info { padding: 26px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: calc(100vh - 30px); }
.modal-title { margin: 0; font-weight: 800; font-stretch: 75%; font-size: clamp(34px, 4vw, 52px); line-height: .95; }
.modal-close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--orange); }
.proof { margin: 0; border: 2px solid var(--ink); background: var(--paper-2); padding: 12px 14px; }
.proof-label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.proof blockquote { margin: 6px 0 0; font-size: 15px; }
.proof a { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.flags { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.modal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.modal-links .btn { min-height: 46px; padding: 0 16px; font-size: 15px; }
.credit { margin: auto 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1200px) {
  .featured { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  :root { --lr: 96px; }
  body { font-size: 16px; }
  .topbar { row-gap: 12px; }
  .topbar > .btn { display: none; }
  .nav { gap: 18px; font-size: 14px; flex-basis: 100%; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured .card:first-child { grid-row: auto; }
  .featured .card:first-child .card-media { min-height: 0; aspect-ratio: 16 / 10; }
  .xray .counter-wrap::after, .xray .hero-title::after { content: none; }
  .band-orange .band-track { font-size: 22px; }
  .modal { max-height: calc(100vh - 16px); width: calc(100vw - 16px); box-shadow: 6px 6px 0 var(--ink); }
  .modal-inner { grid-template-columns: minmax(0, 1fr); }
  .modal-media { border-right: 0; border-bottom: var(--line); min-height: 220px; }
  .modal-media img, .modal-media video { max-height: 50vh; }
  .modal-info { max-height: none; }
  .modal { overflow-y: auto; }
  .card-lens { display: none; }
  .field input { width: 100%; }
  .controls-right, .controls-right .field { width: 100%; }
}

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