:root {
  --paper: #f3f1ea;
  --paper-deep: #e8e5dc;
  --navy: #0b1d2a;
  --ink: #14232d;
  --muted: #65717a;
  --line: #c9cbc6;
  --signal: #b33b2e;
  --white: #fffef9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body.home-page {
  --grid-glow-x: -500px;
  --grid-glow-y: -500px;
  position: relative;
  isolation: isolate;
  background-color: #eaf5fb;
  background-image:
    linear-gradient(rgba(39, 111, 174, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 111, 174, 0.075) 1px, transparent 1px);
  background-position: center top;
  background-size: 72px 72px;
  background-attachment: fixed;
}

body.home-page::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 125, 211, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 125, 211, 0.72) 1px, transparent 1px);
  background-position: center top;
  background-size: 72px 72px;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(53, 151, 235, 0.6));
  -webkit-mask-image: radial-gradient(circle 220px at var(--grid-glow-x) var(--grid-glow-y), #000 0%, rgba(0, 0, 0, 0.88) 38%, transparent 100%);
  mask-image: radial-gradient(circle 220px at var(--grid-glow-x) var(--grid-glow-y), #000 0%, rgba(0, 0, 0, 0.88) 38%, transparent 100%);
  transition: opacity 220ms ease;
}

body.home-page.grid-glow-active::before {
  opacity: 0.9;
}

body.home-page > .site-header,
body.home-page > main,
body.home-page > footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

.site-header {
  width: min(1480px, calc(100% - 2rem));
  min-height: 82px;
  margin: 0.7rem auto 0;
  padding: 0.55rem 0.65rem;
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-radius: 14px;
  box-shadow: 7px 7px 0 rgba(7, 27, 43, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  width: fit-content;
}

.brand-portrait {
  width: 60px;
  height: 60px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: #08243b;
  box-shadow: 3px 3px 0 #061a2a;
  transform: rotate(-1.5deg);
}

.brand-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

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

.brand-copy strong {
  display: block;
}

.brand-copy strong {
  color: var(--white);
  font: 900 clamp(1.45rem, 2.3vw, 2rem)/0.9 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.06em;
  text-shadow: 2px 2px 0 #061a2a;
}

.site-header nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  justify-self: stretch;
}

.site-header nav a {
  min-height: 54px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-header nav a:nth-child(odd) {
  transform: rotate(-0.35deg);
}

.site-header nav a:nth-child(even) {
  transform: rotate(0.35deg);
}

.site-header nav a span {
  color: #73b9ff;
  font: 800 0.52rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.site-header nav a strong {
  margin-top: 0.35rem;
  font: 800 clamp(0.62rem, 0.85vw, 0.73rem)/1.1 "Trebuchet MS", Arial, sans-serif;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--navy);
  background: #99ccff;
  border-color: #99ccff;
  transform: translateY(-2px) rotate(0deg);
}

.site-header nav a:hover span {
  color: #276fae;
}

.site-header nav a[aria-current="page"] {
  color: var(--navy);
  background: #99ccff;
  border-color: #99ccff;
  transform: rotate(0.5deg);
}

.site-header nav a[aria-current="page"] span {
  color: #276fae;
}

main,
footer {
  width: min(1380px, calc(100% - clamp(2.5rem, 8vw, 9rem)));
  margin-inline: auto;
}

.hero {
  min-height: 650px;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.kicker,
.section-number,
.label {
  margin: 0;
  color: var(--signal);
  font: 700 0.67rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 1.2rem 0 1.75rem;
  color: var(--navy);
  font: 400 clamp(3.2rem, 7vw, 7rem)/0.92 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--signal);
  font-style: italic;
}

.hero-intro {
  max-width: 680px;
  margin: 0;
  color: #4d5c65;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.grid-copy-panel {
  position: relative;
  isolation: isolate;
  background: rgba(255, 254, 249, 0.82);
  border: 1px solid rgba(39, 111, 174, 0.2);
  border-radius: 8px;
  box-shadow: 5px 6px 0 rgba(11, 29, 42, 0.07);
  backdrop-filter: blur(7px);
}

p.grid-copy-panel {
  padding: clamp(0.85rem, 1.8vw, 1.2rem) clamp(1rem, 2.2vw, 1.35rem);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  min-height: 54px;
  padding: 0.9rem 1.15rem;
  display: inline-flex;
  align-items: center;
  border: 2px solid #061a2a;
  border-radius: 8px;
  color: var(--navy);
  background: #99ccff;
  box-shadow: 4px 4px 0 #061a2a;
  font: 800 0.78rem/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: rotate(0.5deg);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button-primary {
  color: var(--white);
  background: #0d3150;
  transform: rotate(-0.5deg);
}

.button:hover,
.button-primary:hover {
  color: var(--navy);
  background: var(--white);
  transform: translateY(-3px) rotate(0deg);
}

.button-swap {
  min-width: 220px;
  min-height: 68px;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  color: #061a2a;
  background: #73b9ff;
  border: 3px solid #061a2a;
  border-radius: 9px;
  box-shadow: 6px 6px 0 #061a2a;
  font: 900 1.05rem/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.02em;
  text-decoration: none;
  transform: rotate(-1deg);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button-swap small {
  margin-bottom: 0.3rem;
  display: block;
  color: #245f8e;
  font: 800 0.52rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-swap b {
  font-size: 1.35rem;
}

.button-swap:hover {
  color: var(--navy);
  background: var(--white);
  transform: translateY(-4px) rotate(0deg);
}

.fund-card {
  background: var(--white);
  border-top: 4px solid var(--navy);
  box-shadow: 0 20px 60px rgba(11, 29, 42, 0.08);
}

.fund-card-head {
  padding: 1.7rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.fund-card-head .label {
  color: var(--muted);
}

.fund-card-head strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--navy);
  font: 500 1.85rem/1 Georgia, serif;
}

.fund-badge {
  padding: 0.35rem 0.5rem;
  color: var(--signal);
  border: 1px solid #ddc2bc;
  background: #faf3ef;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fund-card dl {
  margin: 0;
  padding: 0 1.7rem;
}

.fund-card dl div {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid #e4e3dd;
}

.fund-card dt,
.fund-card dd {
  margin: 0;
  font-size: 0.75rem;
}

.fund-card dt {
  color: var(--muted);
}

.fund-card dd {
  color: var(--navy);
  font-weight: 650;
  text-align: right;
}

.fund-note {
  margin: 0;
  padding: 1.2rem 1.7rem 1.5rem;
  color: #8a9296;
  font-size: 0.63rem;
  line-height: 1.5;
}

.token-meta {
  padding: 0 1.7rem;
}

.token-meta > div {
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e4e3dd;
  font-size: 0.75rem;
}

.token-meta span {
  color: var(--muted);
}

.token-meta strong {
  color: var(--navy);
}

.token-address {
  margin: 1.25rem 1.7rem 0;
  padding: 1rem;
  border: 1px solid #d4d4ce;
  background: var(--paper);
}

.token-address .label {
  display: block;
  color: var(--muted);
}

.token-address code {
  margin-top: 0.55rem;
  display: block;
  color: var(--navy);
  font: 0.66rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}

.token-links {
  margin: 1rem 1.7rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #d9d9d3;
  border-left: 1px solid #d9d9d3;
}

.token-links a {
  min-height: 48px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-right: 1px solid #d9d9d3;
  border-bottom: 1px solid #d9d9d3;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.token-links a:hover {
  color: var(--white);
  background: var(--navy);
}

.token-links b {
  color: var(--signal);
  font-size: 0.85rem;
}

.token-links a:hover b {
  color: var(--white);
}

/* Premium token-launch treatment */
.token-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 1.7rem;
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-top: 0;
  border-radius: 14px;
  box-shadow:
    8px 8px 0 rgba(7, 27, 43, 0.16),
    0 30px 80px rgba(11, 29, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.token-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.token-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 315px;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(to bottom, rgba(13, 49, 80, 0.18) 0%, rgba(13, 49, 80, 0.54) 52%, #0d3150 100%),
    url("/assets/socials/madoff.avif");
  background-position: center, center 22%;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal, luminosity;
  filter: grayscale(1) contrast(1.12);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, 0.72) 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, 0.72) 62%, transparent 100%);
}

.token-card > * {
  position: relative;
  z-index: 1;
}

.token-card .fund-card-head {
  padding: 2rem 1.8rem 1.7rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}

.token-card .fund-card-head .label {
  color: #99ccff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.token-card .fund-card-head strong {
  margin-top: 0.35rem;
  color: var(--white);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-shadow: 3px 3px 0 #061a2a;
  transform: rotate(-1deg);
}

.token-scribble {
  margin-top: 0.55rem;
  display: block;
  width: fit-content;
  color: rgba(255, 255, 255, 0.64);
  font: italic 700 0.78rem/1.2 "Trebuchet MS", Arial, sans-serif;
  transform: rotate(-1.5deg);
}

.token-card .token-meta {
  padding: 1.25rem 1.7rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.token-card .token-meta > div,
.token-card .token-meta > a {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.token-card .token-meta > div > img,
.token-card .token-meta > a > img {
  width: 38px;
  height: 38px;
  padding: 0.3rem;
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--white);
  border: 2px solid #061a2a;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #061a2a;
}

.token-card .token-meta > a {
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.token-card .token-meta > a:hover {
  background: rgba(153, 204, 255, 0.14);
  border-color: #99ccff;
  transform: translateY(-2px) rotate(0.4deg);
}

.token-card .token-meta span,
.token-card .token-meta strong {
  display: block;
}

.token-card .token-meta span {
  color: rgba(255, 255, 255, 0.46);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.token-card .token-meta strong {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font: 800 0.9rem/1.25 "Trebuchet MS", Arial, sans-serif;
}

.token-card .token-address {
  margin-top: 0.75rem;
  padding: 1rem 1.05rem;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 18, 0.34);
  box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.15);
}

.token-card .token-address .label {
  color: #99ccff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.token-card .token-address code {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  letter-spacing: 0.025em;
}

.token-card .token-links {
  gap: 0.55rem;
  border: 0;
}

.token-card .token-links a {
  min-height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  transform: translateY(0);
}

.token-card .token-links a > img {
  width: 30px;
  height: 30px;
  padding: 0.22rem;
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(6, 26, 42, 0.65);
  border-radius: 6px;
  box-shadow: 2px 2px 0 #061a2a;
}

.token-card .token-links a > span {
  min-width: 0;
  margin-right: auto;
}

.token-card .token-links a:nth-child(1),
.token-card .token-links a:nth-child(4) {
  transform: rotate(-0.6deg);
}

.token-card .token-links a:nth-child(2),
.token-card .token-links a:nth-child(3) {
  transform: rotate(0.6deg);
}

.token-card .token-links a:hover {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-3px) rotate(0deg);
}

.token-card .token-links b {
  color: #73b9ff;
}

.token-card .token-links a:hover b {
  color: #276fae;
}

.token-card .fund-note {
  color: rgba(255, 255, 255, 0.36);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.7rem;
}

.collectible-preview {
  grid-column: 1 / -1;
  padding-top: clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.collectible-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.collectible-heading h2 {
  margin: 0;
  color: var(--navy);
  font: 400 clamp(2rem, 3.6vw, 3.6rem)/1 Georgia, serif;
  letter-spacing: -0.04em;
}

.collectible-learn {
  min-width: 180px;
  min-height: 58px;
  padding: 0.9rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  color: var(--navy);
  background: #99ccff;
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: 4px 5px 0 var(--navy);
  font: 900 1rem/1 "Trebuchet MS", Arial, sans-serif;
  text-decoration: none;
  transform: rotate(0.6deg);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.collectible-learn b {
  color: var(--signal);
  font-size: 1.2rem;
}

.collectible-learn:hover,
.collectible-learn:focus-visible {
  background: var(--paper);
  box-shadow: 2px 3px 0 var(--navy);
  transform: translate(2px, 2px) rotate(0deg);
}

.collectible-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.collectible-card {
  min-width: 0;
}

.collectible-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #bfc2be;
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(11, 29, 42, 0.08) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(11, 29, 42, 0.08) 50%, transparent 50.3%),
    var(--paper-deep);
  color: #8a9291;
}

.collectible-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.collectible-image span {
  padding: 0.35rem 0.5rem;
  background: var(--paper);
  font: 0.58rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collectible-code {
  margin: 0.9rem 0 0;
  color: var(--navy);
  font: 700 clamp(0.78rem, 1.1vw, 0.95rem)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.055em;
}

.swap-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(4.5rem, 8vw, 7rem);
  padding: clamp(2rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-radius: 16px;
  box-shadow:
    10px 10px 0 rgba(7, 27, 43, 0.16),
    0 30px 80px rgba(11, 29, 42, 0.16);
}

.swap-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 62%;
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(90deg, rgba(13, 49, 80, 0.12) 0%, rgba(13, 49, 80, 0.38) 55%, #0d3150 100%),
    url("/assets/socials/allenstanford.webp") left 16% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.72) 65%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.72) 65%, transparent 100%);
}

.swap-panel > * {
  position: relative;
  z-index: 1;
}

.swap-kicker {
  margin: 0;
  color: #99ccff;
  font: 800 0.72rem/1.4 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.swap-intro h2 {
  margin: 0.8rem 0 1.35rem;
  color: var(--white);
  font: 900 clamp(2.8rem, 5.7vw, 5.8rem)/0.88 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.075em;
  text-shadow: 4px 4px 0 #061a2a;
}

.swap-intro h2 em {
  color: #99ccff;
  font-style: italic;
}

.swap-intro > p:not(.swap-kicker) {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.swap-learn {
  margin-top: 2rem;
  min-height: 72px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy);
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 9px;
  box-shadow: 5px 5px 0 #061a2a;
  font: 900 clamp(0.95rem, 1.6vw, 1.25rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.02em;
  text-decoration: none;
  transform: rotate(-0.5deg);
  transition: transform 160ms ease, background 160ms ease;
}

.swap-learn:hover {
  background: var(--white);
  transform: translateY(-3px) rotate(0deg);
}

.swap-learn b {
  font-size: 1.5rem;
}

.swap-records {
  align-self: center;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(3, 12, 18, 0.28);
  box-shadow: inset 0 1px 16px rgba(0, 0, 0, 0.18);
  transform: rotate(0.45deg);
}

.swap-record {
  padding: 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.swap-record span,
.swap-record code {
  display: block;
}

.swap-record span {
  color: #99ccff;
  font: 800 0.7rem/1.4 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.swap-record code {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.swap-links {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.swap-links a {
  min-height: 82px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font: 800 0.82rem/1.2 "Trebuchet MS", Arial, sans-serif;
  text-decoration: none;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.swap-links a:first-child {
  transform: rotate(-0.6deg);
}

.swap-links a:last-child {
  transform: rotate(0.6deg);
}

.swap-links a:hover {
  color: var(--navy);
  background: var(--white);
  transform: translateY(-3px) rotate(0deg);
}

.swap-links small {
  margin-bottom: 0.25rem;
  display: block;
  color: #99ccff;
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.swap-links a:hover small {
  color: #276fae;
}

.swap-links b {
  color: #73b9ff;
  font-size: 1rem;
}

.swap-note {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.46);
  font: italic 700 0.72rem/1.4 "Trebuchet MS", Arial, sans-serif;
  text-align: right;
}

.swap-details {
  scroll-margin-top: 100px;
  padding: 0 0 clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.swap-details .section-heading {
  max-width: 820px;
}

.swap-details h2 {
  margin: 0.9rem 0 0;
  color: var(--navy);
  font: 400 clamp(2.3rem, 4vw, 4.4rem)/1 Georgia, serif;
  letter-spacing: -0.045em;
}

.swap-details-intro {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.swap-math {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--navy);
  background: var(--white);
  box-shadow: 7px 7px 0 rgba(11, 29, 42, 0.13);
  transform: rotate(-0.2deg);
}

.swap-math > div {
  padding: clamp(1rem, 2.4vw, 1.7rem);
  border-right: 1px dashed #aeb5b6;
}

.swap-math > div:last-child {
  border-right: 0;
}

.swap-math span,
.swap-math strong {
  display: block;
}

.swap-math span {
  color: var(--muted);
  font: 700 0.63rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swap-math strong {
  margin-top: 0.45rem;
  color: var(--navy);
  font: 900 clamp(1.3rem, 2.5vw, 2rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.04em;
}

.swap-steps {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
  list-style: none;
}

.swap-steps li {
  min-width: 0;
  min-height: 270px;
  padding: clamp(1.15rem, 2vw, 1.55rem);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 12px;
  box-shadow: 6px 7px 0 rgba(6, 26, 42, 0.18);
  transform: rotate(-0.45deg);
}

.swap-steps li:nth-child(2) {
  color: var(--white);
  background: #0d3150;
  transform: rotate(0.5deg);
}

.swap-steps li:nth-child(3) {
  background: #99ccff;
  transform: rotate(-0.25deg);
}

.swap-steps li:nth-child(4) {
  background: var(--paper);
  transform: rotate(0.4deg);
}

.swap-steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #99ccff;
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--navy);
  font: 900 0.66rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  transform: rotate(-2deg);
}

.swap-steps li:nth-child(2) span {
  color: var(--navy);
  background: var(--white);
}

.swap-steps li:nth-child(3) span {
  color: var(--white);
  background: #0d3150;
}

.swap-steps strong {
  margin-top: 2.15rem;
  display: block;
  color: var(--navy);
  font: 900 clamp(1.55rem, 2.4vw, 2rem)/0.95 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.05em;
  text-shadow: 2px 2px 0 rgba(153, 204, 255, 0.38);
}

.swap-steps li:nth-child(2) strong {
  color: var(--white);
  text-shadow: 3px 3px 0 #061a2a;
}

.swap-steps p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.swap-steps li:nth-child(2) p {
  color: rgba(255, 255, 255, 0.64);
}

.swap-steps li:nth-child(3) p {
  color: #34546a;
}

.swap-action {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.15rem 1.15rem 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-radius: 12px;
  box-shadow: 7px 7px 0 rgba(7, 27, 43, 0.15);
}

.swap-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font: italic 700 0.82rem/1.4 "Trebuchet MS", Arial, sans-serif;
}

.swap-now {
  min-width: min(100%, 310px);
  min-height: 64px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  color: var(--navy);
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #061a2a;
  font: 900 clamp(0.9rem, 1.5vw, 1.1rem)/1 "Trebuchet MS", Arial, sans-serif;
  text-decoration: none;
  transform: rotate(0.6deg);
  transition: transform 160ms ease, background 160ms ease;
}

.swap-now:hover {
  background: var(--white);
  transform: translateY(-3px) rotate(0deg);
}

.swap-now b {
  font-size: 1.2rem;
}

.overview,
.methodology,
.disclosure {
  border-bottom: 1px solid var(--line);
}

.overview {
  padding: clamp(5rem, 10vw, 9rem) 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 10vw, 9rem);
}

.section-heading h2 {
  margin: 1rem 0 0;
  color: var(--navy);
  font: 400 clamp(2.3rem, 4vw, 4.4rem)/1 Georgia, serif;
  letter-spacing: -0.045em;
}

.overview-copy {
  max-width: 650px;
}

.overview-copy.grid-copy-panel {
  padding: clamp(1.1rem, 2.4vw, 1.65rem);
}

.overview-copy p {
  color: var(--muted);
}

.overview-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.45 Georgia, serif;
}

.methodology {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-heading-wide {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.section-heading-wide h2 {
  max-width: 720px;
  text-align: right;
}

.meme-heading {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 3.5vw, 3rem);
  display: block;
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-radius: 14px;
  box-shadow:
    8px 8px 0 rgba(7, 27, 43, 0.16),
    0 24px 60px rgba(11, 29, 42, 0.12);
}

.meme-heading > * {
  position: relative;
  z-index: 1;
}

.overview .meme-heading::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 78%;
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(90deg, rgba(13, 49, 80, 0.14) 0%, rgba(13, 49, 80, 0.48) 58%, #0d3150 100%),
    url("/assets/socials/bankmanfried.jpg") left 22% center / cover no-repeat;
  background-blend-mode: normal, luminosity;
  filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.68) 64%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.68) 64%, transparent 100%);
}

.overview .meme-heading {
  transform: rotate(-0.4deg);
}

.methodology .meme-heading {
  transform: rotate(0.25deg);
}

.meme-heading .section-number {
  color: #99ccff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 800;
}

.meme-heading h2,
.section-heading-wide.meme-heading h2 {
  max-width: none;
  margin: 0.85rem 0 0;
  color: var(--white);
  font: 900 clamp(2.2rem, 4.6vw, 4.8rem)/0.91 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.07em;
  text-align: left;
  text-shadow: 4px 4px 0 #061a2a;
}

.meme-heading h2 em {
  color: #99ccff;
  font-style: italic;
}

.process {
  margin: clamp(3rem, 7vw, 5.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
}

.process li {
  min-height: 320px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ink);
  background: var(--white);
  border: 2px solid #071b2b;
  border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(7, 27, 43, 0.14);
}

.process li:nth-child(1) {
  transform: rotate(-0.45deg);
}

.process li:nth-child(2) {
  color: var(--white);
  background: #0d3150;
  transform: rotate(0.4deg);
}

.process li:nth-child(3) {
  transform: rotate(-0.2deg);
}

.process li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #99ccff;
  border: 2px solid #071b2b;
  border-radius: 7px;
  box-shadow: 2px 2px 0 #071b2b;
  font: 900 0.68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.process small {
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
  display: block;
  color: var(--muted);
  font: 800 0.62rem/1.3 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process h3 {
  margin: 0.55rem 0 0.8rem;
  color: var(--navy);
  font: 900 clamp(1.7rem, 2.6vw, 2.35rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.045em;
}

.process p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.process li:nth-child(2) small {
  color: #99ccff;
}

.process li:nth-child(2) h3 {
  color: var(--white);
  text-shadow: 3px 3px 0 #061a2a;
}

.process li:nth-child(2) p {
  color: rgba(255, 255, 255, 0.66);
}

.disclosure {
  margin-bottom: 3rem;
  padding: clamp(4rem, 8vw, 6rem) 0;
  display: flex;
  justify-content: center;
}

.disclosure-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 1120px);
  padding: clamp(2rem, 5vw, 4.5rem);
  color: var(--white);
  background: #0d3150;
  border: 2px solid #061a2a;
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(6, 26, 42, 0.2);
  text-align: center;
  transform: rotate(-0.15deg);
}

.disclosure-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 370px;
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(to bottom, rgba(13, 49, 80, 0.14) 0%, rgba(13, 49, 80, 0.48) 56%, #0d3150 100%),
    url("/assets/socials/belfort.avif") center 22% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.68) 64%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.68) 64%, transparent 100%);
}

.disclosure-panel > * {
  position: relative;
  z-index: 1;
}

.disclosure-panel .section-number {
  display: inline-flex;
  margin: 0 0 1.3rem;
  padding: 0.55rem 0.85rem;
  color: #061a2a;
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #061a2a;
  transform: rotate(-1.5deg);
}

.disclosure-panel h2 {
  margin: 0;
  color: var(--white);
  font: 900 clamp(2.4rem, 5.5vw, 5.1rem)/0.93 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.06em;
  text-shadow: 5px 5px 0 #061a2a;
}

.disclosure-panel h2 em {
  color: #99ccff;
  font-family: Georgia, serif;
  font-weight: 700;
}

.disclosure-copy > p {
  max-width: 880px;
  margin: 2rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font: 400 clamp(1.12rem, 2vw, 1.45rem)/1.55 Georgia, serif;
}

.disclosure-facts {
  max-width: 920px;
  margin: 2.2rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.disclosure-facts li {
  min-height: 110px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  color: #061a2a;
  background: var(--white);
  border: 2px solid #061a2a;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #061a2a;
  text-align: left;
}

.disclosure-facts li:nth-child(even) {
  transform: rotate(0.7deg);
}

.disclosure-facts small {
  color: #5a6d79;
  font: 700 0.68rem/1.25 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.disclosure-facts strong {
  font: 900 clamp(1.05rem, 1.6vw, 1.35rem)/1.05 "Trebuchet MS", Arial, sans-serif;
}

.fine-print-link {
  width: min(100%, 340px);
  min-height: 66px;
  margin-top: 2rem;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  background: #0d3150;
  border: 2px solid #061a2a;
  border-radius: 9px;
  box-shadow: 5px 5px 0 #061a2a;
  font: 900 0.95rem/1 "Trebuchet MS", Arial, sans-serif;
  text-decoration: none;
  transform: rotate(-0.45deg);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.disclosure-panel .fine-print-link {
  margin: 2.3rem auto 0;
  color: #061a2a;
  background: #99ccff;
}

.disclosure-panel .fine-print-link b {
  color: #276fae;
}

.disclosure-panel .fine-print-link:hover {
  color: #061a2a;
  background: var(--white);
}

.fine-print-link:hover {
  color: var(--navy);
  background: #99ccff;
  transform: translateY(-3px) rotate(0deg);
}

.fine-print-link b {
  color: #99ccff;
  font-size: 1.2rem;
}

.fine-print-link:hover b {
  color: #276fae;
}

/* Whitepaper */
.whitepaper {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.paper-hero {
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.paper-hero h1 {
  margin-bottom: 1.4rem;
}

.paper-intro {
  max-width: 720px;
  margin: 0;
  color: #4d5c65;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.paper-summary-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(7, 27, 43, 0.16);
  transform: rotate(0.6deg);
}

.paper-summary-card .label {
  color: #99ccff;
}

.paper-summary-card strong {
  margin-top: 1rem;
  display: block;
  font: 900 clamp(1.8rem, 3.4vw, 3rem)/0.98 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.055em;
  text-shadow: 3px 3px 0 #061a2a;
}

.paper-summary-card p {
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.83rem;
}

.paper-metrics {
  margin: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--navy);
  background: var(--white);
  box-shadow: 7px 7px 0 rgba(11, 29, 42, 0.13);
}

.paper-metrics div {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px dashed #aeb5b6;
}

.paper-metrics div:last-child {
  border-right: 0;
}

.paper-metrics span,
.paper-metrics strong {
  display: block;
}

.paper-metrics span {
  color: var(--muted);
  font: 700 0.63rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-metrics strong {
  margin-top: 0.5rem;
  color: var(--navy);
  font: 900 clamp(1.45rem, 3vw, 2.3rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.045em;
}

.paper-sections {
  border-top: 1px solid var(--line);
}

.paper-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(2.5rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.paper-section h2 {
  margin: 0;
  color: var(--navy);
  font: 400 clamp(2rem, 3.8vw, 3.8rem)/1 Georgia, serif;
  letter-spacing: -0.045em;
}

.paper-section-copy {
  max-width: 760px;
}

.paper-section-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.paper-section-copy p:first-child {
  color: var(--ink);
  font: 400 clamp(1.2rem, 2vw, 1.55rem)/1.5 Georgia, serif;
}

.paper-section-copy ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.paper-section-copy li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
}

.paper-closing {
  margin: clamp(4rem, 8vw, 7rem) 0;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-radius: 14px;
  box-shadow: 9px 9px 0 rgba(7, 27, 43, 0.15);
  text-align: center;
}

.paper-closing h2 {
  margin: 0;
  font: 900 clamp(2.2rem, 5vw, 4.8rem)/0.95 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.065em;
  text-shadow: 4px 4px 0 #061a2a;
}

.paper-closing p {
  max-width: 680px;
  margin: 1.2rem auto 0;
  color: rgba(255, 255, 255, 0.65);
}

.paper-closing .button {
  margin-top: 2rem;
  color: var(--navy);
  background: #99ccff;
}

/* Collectibles page */
.collection-page {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.collection-hero {
  min-height: 680px;
  padding-bottom: clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: clamp(4rem, 9vw, 9rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.collection-hero h1 {
  margin-bottom: 1.5rem;
}

.collection-intro {
  max-width: 650px;
  margin: 0;
  color: #4d5c65;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.collection-stack {
  position: relative;
  min-height: clamp(350px, 35vw, 470px);
}

.stack-card {
  position: absolute;
  width: min(52%, 270px);
  margin: 0;
  padding: 0.65rem 0.65rem 0.8rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid #071b2b;
  border-radius: 11px;
  box-shadow: 9px 9px 0 rgba(7, 27, 43, 0.18);
}

.stack-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  image-rendering: auto;
  border: 1px solid #bfc2be;
}

.stack-card figcaption {
  padding: 0.7rem 0.25rem 0;
  font: 800 0.72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.07em;
}

.stack-card-one {
  top: 5%;
  left: 0;
  z-index: 1;
  transform: rotate(-8deg);
}

.stack-card-two {
  top: 13%;
  right: 0;
  z-index: 2;
  transform: rotate(8deg);
}

.stack-card-three {
  bottom: 0;
  left: 18%;
  z-index: 3;
  transform: rotate(-1.5deg);
}

.collection-metrics {
  margin: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--navy);
  background: var(--white);
  box-shadow: 7px 7px 0 rgba(11, 29, 42, 0.13);
  transform: rotate(-0.15deg);
}

.collection-metrics div {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px dashed #aeb5b6;
}

.collection-metrics div:last-child {
  border-right: 0;
}

.collection-metrics span,
.collection-metrics strong,
.collection-metrics small {
  display: block;
}

.collection-metrics span {
  color: var(--muted);
  font: 700 0.63rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-metrics strong {
  margin-top: 0.5rem;
  color: var(--navy);
  font: 900 clamp(1.45rem, 3vw, 2.3rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.045em;
}

.collection-metrics small {
  margin-top: 0.65rem;
  color: var(--muted);
  font: italic 700 0.7rem/1.3 "Trebuchet MS", Arial, sans-serif;
}

.collection-gallery {
  scroll-margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.collection-section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

.collection-section-heading h2 {
  max-width: 780px;
  margin: 0.7rem 0 0;
  color: var(--navy);
  font: 400 clamp(2.3rem, 4.6vw, 4.8rem)/0.96 Georgia, serif;
  letter-spacing: -0.05em;
}

.collection-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.collection-gallery-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(0.55rem, 0.8vw, 0.8rem);
}

.collection-gallery-grid article {
  min-width: 0;
  padding: 0.38rem 0.38rem 0.55rem;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 9px;
  box-shadow: 5px 5px 0 rgba(11, 29, 42, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.collection-gallery-grid article:nth-child(3n + 1) {
  transform: rotate(-0.45deg);
}

.collection-gallery-grid article:nth-child(3n + 2) {
  transform: rotate(0.45deg);
}

.collection-gallery-grid article:hover {
  position: relative;
  z-index: 1;
  box-shadow: 8px 8px 0 rgba(11, 29, 42, 0.18);
  transform: translateY(-5px) rotate(0deg);
}

.collection-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  image-rendering: auto;
  border: 1px solid #c4c6c1;
  background: var(--paper-deep);
}

.collection-gallery-grid strong {
  padding: 0.6rem 0.1rem 0.05rem;
  display: block;
  color: var(--navy);
  font: 800 clamp(0.55rem, 0.68vw, 0.7rem)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.025em;
}

.gallery-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font: italic 700 0.74rem/1.4 "Trebuchet MS", Arial, sans-serif;
  text-align: right;
}

.collection-explainer {
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}

.collection-explainer-head {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.collection-explainer-head h2 {
  margin: 0.8rem 0 0;
  color: var(--navy);
  font: 900 clamp(2.8rem, 6vw, 6rem)/0.9 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.07em;
  text-shadow: 4px 4px 0 rgba(11, 29, 42, 0.12);
}

.collection-explainer-head > p:last-child {
  max-width: 700px;
  margin: 1.4rem auto 0;
  color: var(--muted);
}

.collection-explainer-cards {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
}

.collection-explainer-cards li {
  min-height: 290px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(11, 29, 42, 0.14);
}

.collection-explainer-cards li:nth-child(even) {
  color: var(--white);
  background: #0d3150;
  transform: rotate(0.6deg);
}

.collection-explainer-cards li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #061a2a;
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 7px;
  box-shadow: 3px 3px 0 #061a2a;
  font: 900 0.7rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.collection-explainer-cards small {
  margin-top: auto;
  padding-top: 2.8rem;
  color: #637580;
  font: 700 0.62rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-explainer-cards li:nth-child(even) small,
.collection-explainer-cards li:nth-child(even) p {
  color: rgba(255, 255, 255, 0.65);
}

.collection-explainer-cards strong {
  margin-top: 0.45rem;
  font: 900 clamp(1.35rem, 2vw, 1.85rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.045em;
}

.collection-explainer-cards p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.collection-records {
  scroll-margin-top: 1.5rem;
  overflow: hidden;
  margin: clamp(5rem, 9vw, 8rem) 0;
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  color: var(--white);
  background: #0d3150;
  border: 2px solid #071b2b;
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(7, 27, 43, 0.16);
}

.collection-records-copy h2 {
  margin: 0.8rem 0 1.3rem;
  color: var(--white);
  font: 900 clamp(3rem, 6vw, 6rem)/0.87 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.075em;
  text-shadow: 4px 4px 0 #061a2a;
}

.collection-records-copy h2 em {
  color: #99ccff;
  font-family: Georgia, serif;
}

.collection-records-copy > p:not(.swap-kicker) {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.collection-records-copy .swap-learn {
  max-width: 390px;
}

.collection-record-sheet {
  padding: clamp(1.2rem, 3vw, 2rem);
  color: var(--navy);
  background: var(--white);
  border: 2px solid #061a2a;
  border-radius: 12px;
  box-shadow: 7px 7px 0 #061a2a;
  transform: rotate(0.5deg);
}

.collection-record-sheet .label {
  color: var(--signal);
}

.record-line {
  margin-top: 1.3rem;
  padding: 1rem;
  border: 2px dashed #aeb5b6;
  border-radius: 8px;
  background: var(--paper);
}

.record-line span,
.record-line code {
  display: block;
}

.record-line span {
  color: var(--muted);
  font: 700 0.62rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.record-line code {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.collection-record-sheet > a {
  min-height: 72px;
  margin-top: 0.7rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(11, 29, 42, 0.15);
  font: 900 0.86rem/1.2 "Trebuchet MS", Arial, sans-serif;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.collection-record-sheet > a:hover {
  color: var(--navy);
  background: #99ccff;
  transform: translateY(-2px);
}

.collection-record-sheet > a small {
  margin-bottom: 0.2rem;
  display: block;
  color: #49738f;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-footnote {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font: italic 700 0.68rem/1.4 "Trebuchet MS", Arial, sans-serif;
}

/* Swap simulation */
.swap-page {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.swap-page-head {
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.swap-page-head h1 {
  margin-bottom: 1.5rem;
}

.swap-page-intro {
  max-width: 700px;
  margin: 0;
  color: #4d5c65;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.wallet-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2.1rem);
  color: var(--white);
  background: #0d3150;
  border: 2px solid #061a2a;
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(6, 26, 42, 0.17);
  transform: rotate(0.5deg);
}

.wallet-card::after {
  content: "$GSDX";
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  color: rgba(255, 255, 255, 0.035);
  font: 900 6rem/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.08em;
  pointer-events: none;
  transform: rotate(-7deg);
}

.wallet-card > * {
  position: relative;
  z-index: 1;
}

.wallet-identity {
  padding-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.wallet-identity-mark {
  width: 56px;
  height: 56px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #08243b;
  border: 2px solid #99ccff;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #061a2a;
  transform: rotate(-3deg);
}

.wallet-identity-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wallet-identity small,
.wallet-identity strong {
  display: block;
}

.wallet-identity small {
  color: #99ccff;
  font: 800 0.56rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-identity strong {
  margin-top: 0.4rem;
  color: var(--white);
  font: 900 clamp(1.15rem, 2vw, 1.55rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.035em;
  text-shadow: 2px 2px 0 #061a2a;
}

.wallet-card-top {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-state {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font: 900 clamp(1.15rem, 2vw, 1.55rem)/1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.035em;
  text-shadow: 2px 2px 0 #061a2a;
}

.wallet-details {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.6rem;
}

.wallet-details > div {
  min-width: 0;
  min-height: 105px;
  padding: 0.95rem;
  background: rgba(3, 12, 18, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 9px;
}

.wallet-network {
  transform: rotate(0.8deg);
}

.wallet-details span,
.wallet-details strong {
  display: block;
}

.wallet-details span {
  color: #99ccff;
  font: 800 0.58rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-details strong {
  margin-top: 0.5rem;
  overflow: hidden;
  color: var(--white);
  font: 900 clamp(1rem, 1.8vw, 1.45rem)/1.05 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.wallet-route {
  margin: 1rem 0 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.46);
  font: 800 0.56rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wallet-route i {
  height: 1px;
  flex: 1 1 auto;
  position: relative;
  background: rgba(153, 204, 255, 0.34);
}

.wallet-route i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: #99ccff;
  border-radius: 50%;
}

.wallet-connect {
  width: 100%;
  min-height: 58px;
  margin-top: 0.9rem;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #061a2a;
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #061a2a;
  font: 900 0.82rem/1 "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.wallet-connect b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #0d3150;
  border: 2px solid #061a2a;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #061a2a;
  font-size: 1rem;
}

.wallet-connect.is-connected b {
  color: #061a2a;
  background: #99ccff;
}

.wallet-connect:hover:not(:disabled) {
  background: var(--white);
  transform: translateY(-2px);
}

.wallet-connect.is-connected {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.wallet-connect.is-connected:hover:not(:disabled) {
  color: #061a2a;
  background: #99ccff;
  border-color: #061a2a;
  box-shadow: 4px 4px 0 #061a2a;
}

.wallet-connect.is-connected:hover:not(:disabled) b {
  color: var(--white);
  background: #0d3150;
}

.swap-workbench {
  padding: clamp(5rem, 9vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.swap-machine {
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 16px;
  box-shadow: 9px 9px 0 rgba(11, 29, 42, 0.14);
}

.swap-machine-top {
  padding: clamp(1.3rem, 3vw, 2rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.swap-machine-top h2 {
  margin: 0.5rem 0 0;
  color: var(--navy);
  font: 900 clamp(1.8rem, 3vw, 2.8rem)/0.95 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.055em;
}

.swap-tabs {
  padding: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.swap-tabs button {
  min-height: 52px;
  color: var(--muted);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  font: 900 0.82rem/1 "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
}

.swap-tabs button.is-active {
  color: var(--white);
  background: #0d3150;
  border-color: #061a2a;
  box-shadow: 3px 3px 0 #061a2a;
  transform: rotate(-0.25deg);
}

.swap-form-panel {
  padding: clamp(1rem, 3vw, 2rem);
}

.asset-input,
.asset-output {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 2px solid var(--navy);
  border-radius: 12px;
}

.asset-input {
  background: var(--paper);
}

.asset-input-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font: 700 0.68rem/1.3 "Trebuchet MS", Arial, sans-serif;
}

.asset-input-head > span {
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
}

.asset-input-value {
  margin-top: 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.asset-input-value strong {
  color: var(--navy);
  font: 900 clamp(2.2rem, 4.5vw, 4.1rem)/0.9 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.07em;
}

.asset-input-value span {
  padding: 0.45rem 0.6rem;
  color: var(--white);
  background: #0d3150;
  border-radius: 6px;
  font: 900 0.72rem/1 "Trebuchet MS", Arial, sans-serif;
}

.asset-input > p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font: italic 700 0.66rem/1.3 "Trebuchet MS", Arial, sans-serif;
}

.swap-direction-mark {
  width: 44px;
  height: 44px;
  margin: -9px auto;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #061a2a;
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 50%;
  box-shadow: 3px 3px 0 #061a2a;
  font-weight: 900;
}

.asset-output {
  min-height: 150px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.2rem;
  align-items: center;
  color: var(--white);
  background: #0d3150;
}

.asset-output img {
  width: 112px;
  height: 112px;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  image-rendering: auto;
}

.asset-output span,
.asset-output strong,
.asset-output small {
  display: block;
}

.asset-output span {
  color: #99ccff;
  font: 800 0.62rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-output strong {
  margin-top: 0.45rem;
  font: 900 clamp(1.4rem, 3vw, 2.3rem)/0.98 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.05em;
}

.asset-output small {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
}

.redeem-input label {
  margin-top: 1.2rem;
  display: block;
  color: var(--navy);
  font: 900 0.68rem/1.3 "Trebuchet MS", Arial, sans-serif;
}

.redeem-input select {
  width: 100%;
  min-height: 60px;
  margin-top: 0.65rem;
  padding: 0.8rem 2.6rem 0.8rem 0.9rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 8px;
  font: 900 0.88rem/1 "Trebuchet MS", Arial, sans-serif;
}

.token-orb {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  color: #061a2a;
  background: #99ccff;
  border: 3px solid #061a2a;
  border-radius: 50%;
  box-shadow: 4px 4px 0 #061a2a;
  font: 900 3rem/1 Georgia, serif;
  transform: rotate(-7deg);
}

.swap-summary {
  margin: 1rem 0 0;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.swap-summary div {
  padding: 0 0.9rem;
  border-right: 1px solid var(--line);
}

.swap-summary div:first-child {
  padding-left: 0;
}

.swap-summary div:last-child {
  padding-right: 0;
  border-right: 0;
}

.swap-summary dt {
  color: var(--muted);
  font: 700 0.58rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swap-summary dd {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font: 900 0.72rem/1.3 "Trebuchet MS", Arial, sans-serif;
}

.swap-submit {
  width: 100%;
  min-height: 68px;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  color: #061a2a;
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 9px;
  box-shadow: 5px 5px 0 #061a2a;
  font: 900 clamp(0.9rem, 1.5vw, 1.12rem)/1 "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
  transform: rotate(-0.2deg);
  transition: transform 160ms ease, background 160ms ease;
}

.swap-submit:hover:not(:disabled) {
  background: var(--white);
  transform: translateY(-3px) rotate(0deg);
}

.swap-submit:disabled,
.wallet-connect:disabled,
.reset-simulation:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.swap-message {
  margin: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  padding: 0.9rem 1rem;
  color: #526771;
  background: var(--paper);
  border-left: 4px solid #99ccff;
  font: 700 0.72rem/1.45 "Trebuchet MS", Arial, sans-serif;
}

.swap-message[data-type="success"] {
  color: #173f35;
  background: #e3f0e9;
  border-color: #3f9279;
}

.swap-message[data-type="error"] {
  color: #7e2d26;
  background: #f3e5e1;
  border-color: var(--signal);
}

.swap-message[data-type="working"] {
  color: #274e70;
  background: #e4eef7;
}

.simulation-ledger {
  position: sticky;
  top: 1.5rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  color: var(--white);
  background: #0d3150;
  border: 2px solid #061a2a;
  border-radius: 15px;
  box-shadow: 8px 8px 0 rgba(6, 26, 42, 0.16);
  transform: rotate(0.35deg);
}

.ledger-heading h2 {
  margin: 0.6rem 0 0;
  color: var(--white);
  font: 900 clamp(1.8rem, 3vw, 2.6rem)/0.95 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.055em;
  text-shadow: 3px 3px 0 #061a2a;
}

.ledger-heading .label {
  color: #99ccff;
}

.ledger-balance {
  margin-top: 1.6rem;
  padding: 1.1rem;
  background: rgba(3, 12, 18, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 9px;
}

.ledger-balance span,
.ledger-balance strong,
.ledger-balance small {
  display: block;
}

.ledger-balance span,
.owned-assets > span,
.last-action > span {
  color: #99ccff;
  font: 800 0.58rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ledger-balance strong {
  margin-top: 0.55rem;
  font: 900 clamp(2rem, 4vw, 3.4rem)/0.9 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.065em;
}

.ledger-balance small {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 800;
}

.ledger-metrics {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.ledger-metrics div {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.ledger-metrics span,
.ledger-metrics strong {
  display: block;
}

.ledger-metrics span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.62rem;
}

.ledger-metrics strong {
  margin-top: 0.3rem;
  font: 900 1.1rem/1 "Trebuchet MS", Arial, sans-serif;
}

.owned-assets,
.last-action {
  margin-top: 1.4rem;
}

.owned-assets-list {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.owned-assets-list > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.42);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  font: italic 700 0.68rem/1.4 "Trebuchet MS", Arial, sans-serif;
}

.owned-assets-list button {
  min-width: 0;
  padding: 0.3rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #061a2a;
  border-radius: 6px;
  cursor: pointer;
}

.owned-assets-list button:hover {
  background: #99ccff;
}

.owned-assets-list img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}

.owned-assets-list span {
  padding: 0.35rem 0.1rem 0.15rem;
  display: block;
  overflow: hidden;
  font: 900 0.5rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.last-action p {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.72rem;
}

.reset-simulation {
  width: 100%;
  min-height: 44px;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  font: 800 0.68rem/1 "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
}

.reset-simulation:hover:not(:disabled) {
  color: var(--navy);
  background: var(--white);
}

.integration-note {
  padding: clamp(5rem, 9vw, 8rem) 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 9vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.integration-note h2 {
  margin: 0.7rem 0 0;
  color: var(--navy);
  font: 400 clamp(2.3rem, 4.5vw, 4.8rem)/0.96 Georgia, serif;
  letter-spacing: -0.05em;
}

.integration-note > div:last-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.integration-note ul {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.integration-note li {
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.integration-note li span {
  color: var(--navy);
  font-weight: 800;
}

.integration-note code {
  color: var(--muted);
  font-size: 0.72rem;
}

footer {
  padding: 0 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #7c868b;
  font: 0.63rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.modal-open {
  overflow: hidden;
}

.token-modal {
  width: min(720px, calc(100% - 2rem));
  max-width: none;
  max-height: 90dvh;
  padding: 0;
  overflow: visible;
  color: var(--white);
  background: transparent;
  border: 0;
}

.token-modal::backdrop {
  background: rgba(4, 16, 26, 0.68);
  backdrop-filter: blur(5px) saturate(0.75);
}

.token-modal[open] {
  animation: token-modal-in 180ms ease-out;
}

.token-modal-shell {
  max-height: 90dvh;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  position: relative;
  overflow-y: auto;
  background: #0d3150;
  border: 3px solid #061a2a;
  border-radius: 16px;
  box-shadow: 12px 13px 0 rgba(6, 26, 42, 0.45);
  transform: rotate(-0.25deg);
}

.token-modal-close {
  width: 42px;
  height: 42px;
  padding: 0;
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  color: #061a2a;
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #061a2a;
  font: 900 1.5rem/1 "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.token-modal-close:hover,
.token-modal-close:focus-visible {
  background: var(--white);
  transform: translate(2px, 2px);
}

.token-modal-head {
  padding: 0 4rem 1.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.token-modal-head p {
  margin: 0;
  color: #99ccff;
  font: 800 0.62rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.token-modal-head h2 {
  margin: 0.7rem 0 0;
  color: var(--white);
  font: 900 clamp(2.4rem, 6vw, 4.6rem)/0.88 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -0.07em;
  text-shadow: 4px 4px 0 #061a2a;
}

.token-modal-head h2 span {
  color: #99ccff;
  font-style: italic;
}

.token-modal-head small {
  margin-top: 0.9rem;
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font: italic 700 0.72rem/1.4 "Trebuchet MS", Arial, sans-serif;
}

.token-modal-facts {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
  gap: 0.75rem;
}

.token-modal-facts div {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  background: rgba(3, 12, 18, 0.32);
  border: 1px dashed rgba(153, 204, 255, 0.45);
  border-radius: 9px;
}

.token-modal-facts dt {
  color: #99ccff;
  font: 800 0.56rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.token-modal-facts dd {
  margin: 0.55rem 0 0;
  color: var(--white);
  font: 900 1rem/1.2 "Trebuchet MS", Arial, sans-serif;
}

.token-modal-facts code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
}

.token-modal-facts dd span {
  color: #99ccff;
}

.token-modal-links {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.token-modal-links a {
  min-width: 0;
  min-height: 66px;
  padding: 0.65rem;
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(153, 204, 255, 0.28);
  border-radius: 9px;
  text-decoration: none;
  transform: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.token-modal-links a:hover,
.token-modal-links a:focus-visible {
  color: var(--white);
  background: rgba(153, 204, 255, 0.14);
  border-color: #99ccff;
  box-shadow: inset 0 0 0 1px rgba(153, 204, 255, 0.24);
  transform: none;
}

.token-modal-links img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover;
  background: var(--white);
  border: 2px solid #061a2a;
  border-radius: 7px;
  box-shadow: 2px 2px 0 #061a2a;
}

.token-modal-links span {
  min-width: 0;
  font: 900 0.82rem/1.1 "Trebuchet MS", Arial, sans-serif;
}

.token-modal-links small {
  margin-bottom: 0.35rem;
  display: block;
  color: #99ccff;
  font: 800 0.48rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.token-modal-links b {
  font-size: 1.15rem;
}

.token-modal-fees {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  color: #061a2a;
  background: #99ccff;
  border: 2px solid #061a2a;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #061a2a;
  font: 800 0.74rem/1.45 "Trebuchet MS", Arial, sans-serif;
  transform: rotate(0.35deg);
}

@keyframes token-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .disclosure-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-hero,
  .collection-records {
    grid-template-columns: 1fr;
  }

  .collection-hero {
    min-height: 0;
  }

  .collection-stack {
    width: min(100%, 650px);
    min-height: 430px;
    margin-inline: auto;
  }

  .collection-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .collection-explainer-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swap-page-head,
  .swap-workbench,
  .integration-note {
    grid-template-columns: 1fr;
  }

  .simulation-ledger {
    position: static;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .site-header nav {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fund-card {
    max-width: 600px;
  }

  .swap-panel {
    grid-template-columns: 1fr;
  }

  .collectible-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .swap-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .swap-action {
    align-items: stretch;
    flex-direction: column;
  }

  .overview,
  .disclosure,
  .paper-hero,
  .paper-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .token-modal {
    width: calc(100% - 1rem);
  }

  .token-modal-shell {
    padding: 1.1rem;
    border-radius: 12px;
    transform: none;
  }

  .token-modal-head {
    padding-right: 3.2rem;
  }

  .token-modal-facts,
  .token-modal-links {
    grid-template-columns: 1fr;
  }

  .token-modal-fees {
    transform: none;
  }

  .disclosure-panel {
    border-radius: 13px;
    box-shadow: 6px 6px 0 rgba(6, 26, 42, 0.2);
    transform: none;
  }

  .disclosure-panel h2 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .disclosure-facts {
    grid-template-columns: 1fr;
  }

  .disclosure-facts li:nth-child(even) {
    transform: none;
  }

  .collection-page {
    padding-top: 3.5rem;
  }

  .collection-stack {
    min-height: 330px;
  }

  .stack-card {
    width: 54%;
    padding: 0.4rem 0.4rem 0.6rem;
  }

  .stack-card-three {
    left: 16%;
  }

  .collection-metrics,
  .collection-explainer-cards {
    grid-template-columns: 1fr;
  }

  .collection-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-metrics div {
    border-right: 0;
    border-bottom: 1px dashed #aeb5b6;
  }

  .collection-metrics div:last-child {
    border-bottom: 0;
  }

  .collection-section-heading {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .collection-gallery-grid article,
  .collection-gallery-grid article:nth-child(3n + 1),
  .collection-gallery-grid article:nth-child(3n + 2),
  .collection-explainer-cards li:nth-child(even),
  .collection-record-sheet {
    transform: none;
  }

  .collection-explainer-cards li {
    min-height: 240px;
  }

  .collection-records {
    padding: 1.4rem;
    border-radius: 13px;
  }

  .swap-page {
    padding-top: 3.5rem;
  }

  .wallet-card,
  .simulation-ledger {
    transform: none;
  }

  .wallet-card-top,
  .swap-machine-top,
  .asset-input-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .swap-machine-top {
    display: flex;
  }

  .wallet-details {
    grid-template-columns: 1fr;
  }

  .wallet-network {
    transform: none;
  }

  .wallet-route {
    font-size: 0.49rem;
  }

  .asset-input-value strong {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .asset-output {
    grid-template-columns: 78px 1fr;
    gap: 0.85rem;
  }

  .asset-output img,
  .token-orb {
    width: 78px;
    height: 78px;
  }

  .token-orb {
    font-size: 2.2rem;
  }

  .swap-summary {
    grid-template-columns: 1fr;
  }

  .swap-summary div,
  .swap-summary div:first-child,
  .swap-summary div:last-child {
    padding: 0.7rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .swap-summary div:last-child {
    border-bottom: 0;
  }

  .integration-note li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-header {
    width: calc(100% - 1rem);
    min-height: 0;
    margin-top: 0.4rem;
    padding: 0.5rem;
  }

  .brand-portrait {
    width: 48px;
    height: 48px;
  }

  .site-header nav {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    min-width: 145px;
    min-height: 46px;
    padding: 0.55rem 0.65rem;
  }

  main,
  footer {
    width: min(100% - 2rem, 1380px);
  }

  .hero {
    padding-top: 4rem;
    gap: 3.5rem;
  }

  .collectible-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .collectible-learn {
    width: min(100%, 240px);
  }

  .collectible-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collectible-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.375rem);
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .swap-panel {
    padding: 1.5rem;
  }

  .swap-links,
  .swap-math,
  .swap-steps,
  .paper-metrics {
    grid-template-columns: 1fr;
  }

  .swap-math > div {
    border-right: 0;
    border-bottom: 1px dashed #aeb5b6;
  }

  .swap-math > div:last-child {
    border-bottom: 0;
  }

  .paper-metrics div {
    border-right: 0;
    border-bottom: 1px dashed #aeb5b6;
  }

  .paper-metrics div:last-child {
    border-bottom: 0;
  }

  .swap-steps li,
  .swap-steps li:nth-child(2),
  .swap-steps li:nth-child(3),
  .swap-steps li:nth-child(4) {
    min-height: 230px;
    border: 2px solid var(--navy);
    transform: none;
  }

  .section-heading-wide {
    display: block;
  }

  .section-heading-wide h2 {
    text-align: left;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process li {
    min-height: auto;
    transform: none;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
