@font-face {
  font-family: "Lucrece Display";
  src: url("./fonts/archivo-black.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

@font-face {
  font-family: "Lucrece Mono";
  src: url("./fonts/ibm-plex-mono-regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Lucrece Mono";
  src: url("./fonts/ibm-plex-mono-bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --ink: #eeede7;
  --paper: #090909;
  --white: #141414;
  --blue: #2848ff;
  --blue-dark: #111b65;
  --red: #f04448;
  --muted: #8b8b85;
  --line: #343434;
  --display: "Lucrece Display", "Arial Black", Impact, sans-serif;
  --mono: "Lucrece Mono", "Courier New", monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

::selection {
  background: var(--blue);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  font: 700 0.7rem/1 var(--mono);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 0 28px;
  border-right: 1px solid var(--line);
  font: 900 clamp(1.35rem, 2.6vw, 1.9rem) / 0.8 var(--display);
  letter-spacing: -0.075em;
}

.wordmark span:last-child {
  color: var(--blue);
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
}

.icon-button,
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet-pill {
  background: var(--ink);
  color: var(--paper);
}

.wallet-pill:hover {
  background: var(--blue);
}

.switch-dot {
  position: relative;
  width: 24px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 12px;
}

.switch-dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 160ms ease;
}

.icon-button[aria-pressed="true"] .switch-dot::after {
  transform: translateX(12px);
}

.hero {
  --hero-accent: #344cff;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.76fr);
  gap: clamp(40px, 7vw, 110px);
  min-height: 760px;
  padding: clamp(70px, 9vw, 132px) clamp(24px, 5vw, 72px) clamp(64px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #090909;
  transition: --hero-accent 600ms ease;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(
      to bottom,
      rgba(7, 7, 8, 0.48) 0%,
      rgba(7, 7, 8, 0.64) 48%,
      rgba(7, 7, 8, 0.96) 100%
    );
}

.hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 8, 0.9) 0%,
      rgba(7, 7, 8, 0.68) 38%,
      rgba(7, 7, 8, 0.32) 72%,
      rgba(7, 7, 8, 0.56) 100%
    ),
    radial-gradient(
      circle at 76% 45%,
      transparent 0%,
      rgba(7, 7, 8, 0.36) 70%
    );
}

.hero-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #090909;
  pointer-events: none;
}

.hero-atmosphere-layer {
  position: absolute;
  inset: -7%;
  width: 114%;
  height: 114%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.08);
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1400ms cubic-bezier(0.76, 0, 0.24, 1),
    transform 8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-atmosphere-layer.is-current.is-loaded {
  opacity: 0.46;
  transform: scale(1);
}

.hero-atmosphere-layer.is-next {
  opacity: 0;
}

.hero.is-atmosphere-shifting .hero-atmosphere-layer.is-next.is-loaded {
  opacity: 0.46;
  transform: scale(1);
}

.hero-copy,
.hero-specimen {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.eyebrow,
.micro-label {
  margin: 0;
  font: 700 0.65rem/1.25 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: var(--red);
}

.hero h1 {
  margin: 34px 0 56px;
  font: 900 clamp(4.8rem, 10.3vw, 10.4rem) / 0.72 var(--display);
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
}

.hero-line.offset {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-line.accent {
  color: var(--hero-accent);
  text-shadow: 0 0 46px color-mix(in srgb, var(--hero-accent) 20%, transparent);
  transition:
    color 650ms cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 650ms ease;
}

.hero-note {
  display: grid;
  grid-template-columns: 62px minmax(200px, 410px);
  gap: 22px;
  align-items: start;
}

.hero-note p {
  margin: 0;
  font: 400 0.83rem/1.55 var(--mono);
}

.note-index {
  padding-top: 8px;
  border-top: 2px solid var(--ink);
  font: 700 0.64rem/1 var(--mono);
}

.hero-specimen {
  --specimen-rotate-x: 0deg;
  --specimen-rotate-y: 0deg;
  align-self: center;
  width: min(100%, 520px);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #111;
  color: var(--ink);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.08);
  transform: perspective(1100px) rotateX(var(--specimen-rotate-x))
    rotateY(var(--specimen-rotate-y));
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-specimen:hover {
  transform: perspective(1100px) translateY(-5px)
    rotateX(var(--specimen-rotate-x)) rotateY(var(--specimen-rotate-y));
}

.specimen-chrome,
.specimen-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.04em;
}

.specimen-chrome {
  border-bottom: 1px solid var(--line);
}

.specimen-image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #0b0b0b;
  isolation: isolate;
}

.specimen-image .hero-specimen-layer {
  position: absolute;
  z-index: 1;
  inset: clamp(18px, 3vw, 30px);
  width: calc(100% - clamp(36px, 6vw, 60px));
  height: calc(100% - clamp(36px, 6vw, 60px));
  background: #0b0b0b;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 300ms ease;
}

.specimen-image .hero-specimen-layer.is-loaded {
  opacity: 1;
}

.specimen-image .hero-specimen-layer.is-next {
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path 1350ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 250ms ease;
}

.hero-specimen.is-scanning .hero-specimen-layer.is-next {
  clip-path: inset(0 0 0 0);
}

.specimen-image .media-placeholder {
  z-index: 0;
  transition: opacity 220ms ease;
}

.specimen-image:has(.hero-specimen-layer.is-current.is-loaded) .media-placeholder {
  opacity: 0;
}

.specimen-reticle {
  position: absolute;
  z-index: 4;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.specimen-reticle::before,
.specimen-reticle::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}

.specimen-reticle::before {
  top: 50%;
  left: -7px;
  width: 14px;
  height: 1px;
  box-shadow: calc(100% + 14px) 0 0 rgba(255, 255, 255, 0.2);
}

.specimen-reticle::after {
  top: -7px;
  left: 50%;
  width: 1px;
  height: 14px;
  box-shadow: 0 calc(100% + 14px) 0 rgba(255, 255, 255, 0.2);
}

.specimen-scan {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  opacity: 0;
  background: #fff;
  box-shadow:
    0 0 8px #fff,
    0 0 24px var(--hero-accent),
    22px 0 50px color-mix(in srgb, var(--hero-accent) 28%, transparent);
  pointer-events: none;
}

.hero-specimen.is-scanning .specimen-scan {
  opacity: 1;
  animation: specimen-scan 1350ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.specimen-coordinate {
  position: absolute;
  z-index: 5;
  color: rgba(255, 255, 255, 0.58);
  font: 700 0.5rem/1 var(--mono);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.coordinate-x {
  right: 20px;
  bottom: 18px;
}

.coordinate-y {
  top: 22px;
  left: 18px;
  writing-mode: vertical-rl;
}

.specimen-sequence {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font: 700 0.5rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.sequence-label {
  color: var(--hero-accent);
  transition: color 650ms ease;
}

.sequence-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.sequence-track span {
  height: 2px;
  background: rgba(10, 10, 10, 0.18);
  transition:
    height 350ms ease,
    background 350ms ease;
}

.sequence-track span.is-active {
  height: 7px;
  background: var(--hero-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--hero-accent) 36%, transparent);
}

.sequence-count {
  min-width: 38px;
  text-align: right;
}

.specimen-caption {
  align-items: end;
  gap: 18px;
  padding: 20px 18px 22px;
}

.specimen-caption h2 {
  margin: 7px 0 0;
  font: 900 clamp(1.5rem, 2.7vw, 2.3rem) / 0.86 var(--display);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.specimen-caption h2,
.specimen-caption .micro-label,
.dex-number,
.specimen-chrome span {
  transition:
    opacity 180ms ease,
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-specimen.is-updating .specimen-caption h2,
.hero-specimen.is-updating .specimen-caption .micro-label,
.hero-specimen.is-updating .dex-number,
.hero-specimen.is-updating .specimen-chrome span {
  opacity: 0.2;
  transform: translateY(5px);
}

@keyframes specimen-scan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(520px);
  }
}

.dex-number {
  color: var(--hero-accent);
  font: 900 clamp(1.5rem, 2.5vw, 2rem) / 1 var(--display);
  letter-spacing: -0.05em;
  text-shadow: 0 0 30px color-mix(in srgb, var(--hero-accent) 22%, transparent);
}

.specimen-meter {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
}

.specimen-meter span {
  width: 100%;
  height: 2px;
  background: var(--ink);
  opacity: calc(var(--meter) / 100);
}

.index-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #101010;
}

.index-strip div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.index-strip div:last-child {
  border-right: 0;
}

.index-strip span {
  font: 700 0.59rem/1 var(--mono);
}

.index-strip strong {
  font: 900 1.2rem/1 var(--display);
  letter-spacing: -0.04em;
}

.status-text {
  color: var(--red);
}

.afterlight {
  --afterlight-x: 0px;
  --afterlight-title-opacity: 1;
  --afterlight-title-y: 0px;
  --afterlight-cue-opacity: 1;
  --afterlight-exit-opacity: 0;
  --afterlight-exit-y: 32px;
  --afterlight-progress: 0;
  position: relative;
  height: 340svh;
  border-bottom: 1px solid var(--line);
  background: #02030a;
}

.afterlight-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #02030a;
  isolation: isolate;
}

.afterlight-media,
.afterlight-vignette {
  position: absolute;
  inset: 0;
}

.afterlight-media {
  overflow: hidden;
}

.afterlight-image {
  width: auto;
  max-width: none;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform: translate3d(var(--afterlight-x), 0, 0) scale(1.015);
  transform-origin: center;
  will-change: transform;
}

.afterlight-vignette {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, transparent 24%, transparent 76%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, transparent 30%, transparent 64%, rgba(0, 0, 0, 0.66) 100%);
  pointer-events: none;
}

.afterlight-meta {
  position: absolute;
  z-index: 2;
  top: 96px;
  right: clamp(20px, 4vw, 62px);
  left: clamp(20px, 4vw, 62px);
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font: 700 0.61rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.afterlight-title {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(20px, 5vw, 76px);
  opacity: var(--afterlight-title-opacity);
  color: #fff;
  transform: translateY(calc(-50% + var(--afterlight-title-y)));
  will-change: opacity, transform;
}

.afterlight-title p {
  margin: 0 0 24px 6px;
  font: 700 0.64rem/1 var(--mono);
  letter-spacing: 0.13em;
}

.afterlight-title h2 {
  margin: 0;
  font: 900 clamp(6rem, 14vw, 14rem) / 0.69 var(--display);
  letter-spacing: -0.09em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.afterlight-cue {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 62px);
  bottom: 54px;
  margin: 0;
  opacity: var(--afterlight-cue-opacity);
  color: #fff;
  font: 700 0.63rem/1 var(--mono);
  letter-spacing: 0.09em;
  will-change: opacity;
}

.afterlight-cue span {
  display: inline-block;
  margin-left: 14px;
  color: var(--blue);
  font-size: 1.1rem;
}

.afterlight-exit {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 76px);
  bottom: clamp(72px, 9vw, 130px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: var(--afterlight-exit-opacity);
  color: #fff;
  text-align: right;
  transform: translateY(var(--afterlight-exit-y));
  will-change: opacity, transform;
}

.afterlight-exit span {
  margin-bottom: 14px;
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.13em;
}

.afterlight-exit strong {
  max-width: 780px;
  font: 900 clamp(4rem, 8.5vw, 8.5rem) / 0.76 var(--display);
  letter-spacing: -0.075em;
}

.afterlight-exit em {
  margin-top: 22px;
  color: var(--blue);
  font: 400 2rem/1 var(--mono);
  font-style: normal;
}

.afterlight-progress {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.afterlight-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(var(--afterlight-progress));
  transform-origin: left center;
  will-change: transform;
}

.archive {
  padding: clamp(90px, 11vw, 170px) clamp(20px, 5vw, 72px);
  overflow: clip;
  background: var(--paper);
}

.archive-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 76px;
}

.archive-heading h2,
.collections h2 {
  margin: 18px 0 0;
  font: 900 clamp(4rem, 8.3vw, 8.5rem) / 0.73 var(--display);
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.archive-intro {
  max-width: 410px;
  margin: 0 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 400 0.9rem/1.55 var(--mono);
}

.archive-controls {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-row,
.control-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.filter,
.data-button {
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: transparent;
  font: 700 0.61rem/1 var(--mono);
}

.filter:hover,
.filter.active,
.data-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.filter sup {
  margin-left: 4px;
  color: var(--muted);
}

.filter.active sup {
  color: inherit;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 700 0.62rem/1 var(--mono);
}

.search-box input::placeholder {
  color: var(--ink);
  opacity: 1;
}

.art-grid {
  display: block;
  margin-top: 48px;
}

.collection-group {
  margin-top: clamp(70px, 8vw, 120px);
  scroll-margin-top: 72px;
}

.collection-group:first-child {
  margin-top: 0;
}

.collection-group-header {
  position: sticky;
  top: 72px;
  z-index: 7;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.94);
  backdrop-filter: blur(14px);
}

.collection-group-header span,
.collection-group-header em {
  font: 700 0.62rem/1 var(--mono);
  font-style: normal;
}

.collection-group-header h3 {
  margin: 0;
  font: 900 clamp(2rem, 4.4vw, 4.6rem) / 0.8 var(--display);
  letter-spacing: -0.065em;
}

.chapter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 132px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 700 0.58rem/1 var(--mono);
  letter-spacing: 0.05em;
  transition: background 160ms ease, color 160ms ease;
}

.chapter-toggle:hover,
.chapter-toggle:focus-visible {
  outline: 0;
  background: var(--ink);
  color: var(--paper);
}

.chapter-toggle span {
  color: var(--blue);
  font-size: 0.9rem;
}

.collection-art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.collection-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #111;
  color: var(--ink);
  font: 700 0.64rem/1 var(--mono);
  letter-spacing: 0.08em;
  transition: background 160ms ease, color 160ms ease;
}

.collection-reveal:hover,
.collection-reveal:focus-visible {
  outline: 0;
  background: var(--blue);
  color: #fff;
}

.collection-reveal span:last-child {
  font-size: 1rem;
}

.collection-rail-frame {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #0b0b0b;
}

.collection-rail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.collection-rail-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.collection-rail-toolbar span,
.collection-rail-toolbar strong,
.collection-rail-toolbar a,
.collection-rail-toolbar button {
  font: 700 0.59rem/1 var(--mono);
  letter-spacing: 0.06em;
}

.collection-rail-toolbar > div:first-child span {
  color: var(--muted);
}

.collection-rail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-rail-actions button,
.collection-rail-actions a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.collection-rail-actions button {
  width: 42px;
}

.collection-rail-actions a {
  padding: 0 14px;
}

.collection-rail-actions button:hover,
.collection-rail-actions button:focus-visible,
.collection-rail-actions a:hover,
.collection-rail-actions a:focus-visible {
  outline: 0;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.collection-rail-actions [data-rail-position] {
  min-width: 74px;
  color: var(--blue);
  text-align: center;
}

.collection-art-rail {
  display: flex;
  column-gap: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-left: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--blue) #202020;
  scrollbar-width: auto;
  overscroll-behavior-inline: contain;
}

.collection-art-rail::-webkit-scrollbar {
  height: 14px;
}

.collection-art-rail::-webkit-scrollbar-track {
  background: #202020;
}

.collection-art-rail::-webkit-scrollbar-thumb {
  border: 3px solid #202020;
  border-radius: 999px;
  background: var(--blue);
}

.collection-art-rail .art-card {
  flex: 0 0 clamp(300px, 28vw, 430px);
  scroll-snap-align: start;
}

.collection-rail-progress {
  height: 3px;
  overflow: hidden;
  background: #202020;
}

.collection-rail-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
}

.art-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d0d0d;
  color: var(--ink);
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.art-card:hover,
.art-card:focus-visible {
  outline: 0;
  background: #181818;
  color: var(--ink);
}

.card-topline,
.card-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  font: 700 0.58rem/1 var(--mono);
  letter-spacing: 0.03em;
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  margin: 0 13px;
  overflow: hidden;
  background: #111;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 280ms ease;
}

.art-card:hover .card-media img {
  transform: scale(1.035);
}

.card-caption {
  align-items: end;
  padding: 16px 13px 20px;
}

.card-caption h3 {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font: 900 clamp(1rem, 1.55vw, 1.45rem) / 0.87 var(--display);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.card-arrow {
  font-size: 1.1rem;
}

.media-shell {
  position: relative;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  overflow: hidden;
  background:
    linear-gradient(
      110deg,
      transparent 28%,
      rgba(255, 255, 255, 0.055) 42%,
      transparent 56%
    ) -120% 0 / 220% 100%,
    #111;
  font: 700 0.61rem/1 var(--mono);
  letter-spacing: 0.1em;
  animation: media-pulse 1.8s ease-in-out infinite;
}

.media-placeholder::before {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(40, 72, 255, 0.72);
  border-radius: 50%;
}

.media-shell img {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.media-shell video {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.media-shell img.is-loaded,
.media-shell video.is-loaded {
  opacity: 1;
}

@keyframes media-pulse {
  from {
    background-position: 130% 0, 0 0;
  }
  to {
    background-position: -30% 0, 0 0;
  }
}

.data-saver .card-media img:not(.is-loaded) {
  display: none;
}

.empty-state {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
  font: 700 0.7rem/1 var(--mono);
}

.collections {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 8vw;
  padding: clamp(90px, 10vw, 155px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #0d0d0d;
  color: var(--ink);
}

.network-ledger {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 8vw;
  padding: clamp(82px, 9vw, 138px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #111;
}

.network-ledger h2 {
  margin: 18px 0 0;
  font: 900 clamp(3rem, 6vw, 6rem) / 0.77 var(--display);
  letter-spacing: -0.075em;
}

.network-records {
  border-top: 1px solid var(--line);
}

.network-records a {
  display: grid;
  grid-template-columns: 0.55fr 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, background 160ms ease, color 160ms ease;
}

.network-records a:hover {
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
}

.network-records span,
.network-records em {
  font: 700 0.61rem/1.3 var(--mono);
  font-style: normal;
}

.network-records strong {
  font: 900 clamp(1.2rem, 2.2vw, 2rem) / 1 var(--display);
  letter-spacing: -0.045em;
}

.collections-title-wrap {
  align-self: start;
  position: sticky;
  top: 120px;
}

.collections .eyebrow::before {
  background: var(--red);
}

.collections h2 {
  font-size: clamp(3.5rem, 6.7vw, 6.8rem);
}

.collection-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.collection-list li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 65px;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, background 160ms ease, color 160ms ease;
}

.collection-list li:hover,
.collection-list .is-active {
  padding: 0 14px;
  background: var(--ink);
  color: var(--paper);
}

.collection-list span,
.collection-list em {
  font: 700 0.6rem/1 var(--mono);
  font-style: normal;
}

.collection-list strong {
  min-width: 0;
  font: 900 clamp(1.05rem, 1.8vw, 1.65rem) / 0.92 var(--display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: end;
  padding: 78px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #050505;
  color: var(--ink);
}

.footer-mark {
  font: 900 clamp(4rem, 8vw, 8rem) / 0.7 var(--display);
  letter-spacing: -0.08em;
}

footer p {
  max-width: 260px;
  margin: 0;
  font: 400 0.9rem/1.55 var(--mono);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font: 700 0.65rem/1 var(--mono);
}

.footer-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.footer-links a:hover {
  color: #9ca8ff;
}

.art-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b0b0b;
  color: var(--ink);
}

.art-dialog::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(350px, 0.62fr);
  min-height: 100%;
}

.dialog-media {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 6vw;
  border-right: 1px solid var(--line);
  background: #111;
}

.dialog-media .media-placeholder {
  background: #111;
}

.dialog-media .media-placeholder::before {
  border-color: rgba(255, 255, 255, 0.32);
}

.dialog-media img,
.dialog-media video {
  width: min(74vh, 90%);
  max-height: 80vh;
  padding: clamp(8px, 1.1vw, 16px);
  object-fit: contain;
  background: #e9e7e1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.dialog-info {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
  background: #0b0b0b;
}

.dialog-index {
  margin: 30px 0 10px;
  color: var(--blue);
  font: 700 0.7rem/1 var(--mono);
}

.dialog-info h2 {
  max-width: 560px;
  margin: 0;
  overflow-wrap: break-word;
  font: 900 clamp(3rem, 4vw, 4.8rem) / 0.77 var(--display);
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.dialog-description {
  margin: 34px 0;
  font: 400 0.85rem/1.55 var(--mono);
}

.token-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.token-table div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font: 700 0.61rem/1.2 var(--mono);
}

.token-table dd {
  margin: 0;
  text-align: right;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.dialog-actions a {
  padding: 15px;
  border: 1px solid var(--line);
  font: 700 0.63rem/1 var(--mono);
  text-align: center;
}

.dialog-actions a:first-child {
  background: var(--ink);
  color: var(--paper);
}

.dialog-actions a:hover {
  background: var(--blue);
  color: #fff;
}

.dialog-close,
.dialog-arrow {
  position: fixed;
  z-index: 3;
  border: 1px solid var(--line);
  background: #151515;
  color: var(--ink);
  font: 700 0.63rem/1 var(--mono);
}

.dialog-close {
  top: 18px;
  right: 18px;
  padding: 13px 16px;
}

.dialog-arrow {
  bottom: 18px;
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.dialog-arrow.previous {
  right: 74px;
}

.dialog-arrow.next {
  right: 18px;
}

@media (max-width: 1050px) {
  .topbar-center,
  .icon-button {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

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

  .hero-specimen {
    width: min(74vw, 520px);
  }

  .archive-heading,
  .network-ledger,
  .collections {
    grid-template-columns: 1fr;
  }

  .archive-intro {
    margin-left: auto;
  }

  .art-grid {
    display: block;
  }

  .collection-art-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .collections-title-wrap {
    position: static;
  }

  .network-records {
    margin-top: 24px;
  }

  .dialog-layout {
    grid-template-columns: 1fr 420px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 60px;
  }

  .wordmark,
  .wallet-pill {
    padding: 0 15px;
  }

  .wallet-pill {
    font-size: 0.56rem;
  }

  .hero {
    min-height: auto;
    gap: 64px;
    padding-top: 68px;
  }

  .hero-atmosphere-layer {
    inset: -3%;
    width: 106%;
    height: 106%;
    object-position: 58% center;
  }

  .hero-atmosphere-layer.is-current.is-loaded,
  .hero.is-atmosphere-shifting .hero-atmosphere-layer.is-next.is-loaded {
    opacity: 0.3;
  }

  .hero-copy,
  .archive-heading > *,
  .collections > * {
    min-width: 0;
  }

  .hero h1 {
    margin-top: 28px;
    font-size: clamp(3.45rem, 17.6vw, 6.2rem);
    line-height: 0.75;
  }

  .hero-line.offset {
    -webkit-text-stroke-width: 1.5px;
  }

  .hero-note {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .hero-specimen {
    width: 92%;
  }

  .hero-specimen {
    transform: none !important;
  }

  .sequence-label {
    display: none;
  }

  .specimen-sequence {
    grid-template-columns: 1fr auto;
  }

  .specimen-caption {
    gap: 10px;
  }

  .dex-number {
    font-size: 1.35rem;
  }

  .index-strip div:nth-child(2),
  .index-strip div:nth-child(3) {
    display: none;
  }

  .index-strip {
    grid-template-columns: 1fr 1fr;
  }

  .afterlight {
    height: 260svh;
  }

  .afterlight-sticky {
    min-height: 560px;
  }

  .afterlight-meta {
    top: 82px;
  }

  .afterlight-meta span:last-child {
    display: none;
  }

  .afterlight-title {
    top: auto;
    bottom: 100px;
    transform: translateY(var(--afterlight-title-y));
  }

  .afterlight-title h2 {
    font-size: clamp(5.2rem, 25vw, 8rem);
  }

  .afterlight-cue {
    bottom: 36px;
  }

  .afterlight-exit {
    bottom: 82px;
  }

  .afterlight-exit strong {
    max-width: 90vw;
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .archive-heading {
    margin-bottom: 48px;
  }

  .archive-heading h2,
  .collections h2 {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .archive-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-row {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .filter {
    flex: 0 0 auto;
  }

  .control-tools {
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
  }

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

  .collection-group {
    scroll-margin-top: 60px;
  }

  .collection-group-header {
    top: 60px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .collection-group-header em {
    display: none;
  }

  .chapter-toggle {
    min-width: 0;
    padding: 10px;
  }

  .chapter-toggle-label {
    display: none;
  }

  .collection-rail-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .collection-rail-toolbar > div:first-child {
    justify-content: space-between;
    width: 100%;
  }

  .collection-rail-actions {
    width: 100%;
  }

  .collection-rail-actions a {
    flex: 1;
  }

  .collection-art-rail .art-card {
    flex-basis: min(82vw, 360px);
  }

  .card-media {
    margin: 0 8px;
  }

  .card-topline,
  .card-caption {
    padding-left: 9px;
    padding-right: 9px;
  }

  .collections {
    gap: 54px;
  }

  .network-ledger {
    gap: 48px;
  }

  .network-records a {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    min-height: 82px;
  }

  .network-records span {
    grid-column: 1 / -1;
  }

  .collection-list li {
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .collection-list strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: flex-start;
    margin-top: 30px;
  }

  .dialog-layout {
    display: block;
    overflow-y: auto;
  }

  .dialog-media {
    min-height: 58vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dialog-info {
    padding: 60px 24px 112px;
  }

  .dialog-info h2 {
    overflow-wrap: normal;
    font-size: clamp(2.7rem, 11.5vw, 3.6rem);
  }
}

@media (max-width: 460px) {
  .collection-art-grid {
    grid-template-columns: 1fr;
  }

  .collection-group-header {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .collection-group-header h3 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere-layer {
    transform: none !important;
    transition: opacity 200ms ease;
  }

  .hero-specimen-layer.is-next {
    transition: opacity 200ms ease;
  }

  .hero-specimen.is-scanning .specimen-scan {
    display: none;
  }

  .afterlight {
    height: 85svh;
  }

  .afterlight-sticky {
    position: relative;
    height: 85svh;
    min-height: 560px;
  }

  .afterlight-image {
    object-position: center;
    transform: none !important;
  }

  .afterlight-title {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
  }

  .afterlight-cue,
  .afterlight-exit,
  .afterlight-progress {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: 0.01ms !important;
}

.motion-paused .afterlight {
  height: 100svh;
}

.motion-paused .afterlight-sticky {
  position: relative;
}

.motion-paused .afterlight-image {
  object-position: center;
  transform: none !important;
}

.motion-paused .afterlight-title {
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

.motion-paused .afterlight-cue,
.motion-paused .afterlight-exit,
.motion-paused .afterlight-progress {
  display: none;
}

.motion-paused .hero-specimen {
  transform: none !important;
}

.motion-paused .specimen-scan {
  display: none;
}
