:root {
  --deep-terminal-black: #05070b;
  --midnight-navy: #0b1322;
  --charcoal-blue: #111a2e;
  --steel-grid-blue: #1e2b45;
  --slate-blue-grey: #2a3a5a;
  --terminal-blue: #2f6fff;
  --electric-edge-blue: #1e90ff;
  --neon-control-blue: #3ea6ff;
  --highlight-blue: #59b7ff;
  --soft-horizon-blue: #88c9ff;
  --primary-text: #e6edf3;
  --muted-grey: #8b98a5;
  --deep-ui-grey: #4c566a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  color-scheme: dark;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--primary-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--deep-terminal-black);
  background-image:
    linear-gradient(180deg, rgba(11, 19, 34, 0.92), rgba(5, 7, 11, 1) 44%),
    repeating-linear-gradient(90deg, rgba(30, 43, 69, 0.16) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(30, 43, 69, 0.12) 0 1px, transparent 1px 96px);
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-page .site-shell {
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
}

html:has(.landing-page),
.landing-page {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(62, 166, 255, 0.16);
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(136, 201, 255, 0.64);
  border-radius: 8px;
  background: url("assets/pigeonhub-token.jpeg") center / cover no-repeat;
  box-shadow: 0 0 24px rgba(62, 166, 255, 0.42);
}

.brand-name {
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mobile-nav-menu {
  display: none;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(62, 166, 255, 0.34);
  border-radius: 8px;
  color: var(--primary-text);
  background: rgba(47, 111, 255, 0.12);
  cursor: pointer;
  list-style: none;
}

.mobile-menu-toggle::-webkit-details-marker {
  display: none;
}

.mobile-menu-toggle::marker {
  content: "";
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid rgba(136, 201, 255, 0.88);
  outline-offset: 3px;
}

.menu-icon-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(62, 166, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.nav-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--muted-grey);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-color: rgba(62, 166, 255, 0.38);
  color: var(--primary-text);
  background: rgba(47, 111, 255, 0.12);
}

main {
  flex: 1;
}

.hero-landing {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(62, 166, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.98) 0%, rgba(5, 7, 11, 0.86) 32%, rgba(5, 7, 11, 0.28) 64%, rgba(5, 7, 11, 0.52) 100%),
    url("assets/pigeonhub-hero.png") center / cover no-repeat;
}

.scroll-video-hero {
  min-height: calc(100svh - 68px);
  border-bottom: 0;
  background: transparent;
}

.scroll-video-bg,
.scroll-video-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scroll-video-bg {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  background: url("assets/pigeonhub-hero.png") center / cover no-repeat;
  filter: brightness(1.48) saturate(1.18) contrast(1.02);
}

.scroll-video-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.46) 0%, rgba(5, 7, 11, 0.16) 44%, rgba(5, 7, 11, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.08), rgba(5, 7, 11, 0.34) 76%, rgba(5, 7, 11, 0.58));
  opacity: var(--landing-overlay-opacity, 1);
  transition: opacity 160ms ease;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 32px;
}

.holder-swarm {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.swarm-copy {
  position: absolute;
  z-index: 3;
  top: clamp(82px, 14vh, 108px);
  left: 50%;
  width: min(940px, calc(100% - 32px));
  min-height: clamp(94px, 13vh, 136px);
  transform: translate(-50%, calc(18px * (1 - var(--swarm-copy-raise, 0))));
  opacity: var(--swarm-copy-opacity, 1);
  text-align: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.swarm-phase {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.swarm-phase.is-active {
  opacity: 1;
  transform: translateY(0);
}

.swarm-phase h2 {
  max-width: 920px;
  margin-bottom: 0;
  color: #f3fbff;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 0.96;
  font-weight: 950;
  text-shadow:
    0 0 18px rgba(243, 251, 255, 0.32),
    0 0 34px rgba(89, 183, 255, 0.56),
    0 0 82px rgba(47, 111, 255, 0.38);
}

.swarm-phase.is-active h2::after {
  content: "_";
  display: inline-block;
  margin-left: 0.08em;
  color: rgba(243, 251, 255, 0.95);
  text-shadow: 0 0 18px rgba(89, 183, 255, 0.78);
  animation: caret-blink 820ms steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.swarm-cards {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.holder-card {
  --swarm-x: 0px;
  --swarm-y: 0px;
  --swarm-rotate: 0deg;
  --swarm-scale: 1;
  --swarm-opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(144px, 15vw, 190px);
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(136, 201, 255, 0.28);
  border-radius: 8px;
  padding: 9px 11px;
  background:
    linear-gradient(135deg, rgba(17, 26, 46, 0.9), rgba(5, 7, 11, 0.72)),
    rgba(11, 19, 34, 0.82);
  box-shadow:
    0 16px 44px rgba(5, 7, 11, 0.36),
    0 0 26px rgba(47, 111, 255, 0.2),
    inset 0 1px 0 rgba(136, 201, 255, 0.12);
  opacity: var(--swarm-opacity);
  transform:
    translate(-50%, -50%)
    translate3d(var(--swarm-x), var(--swarm-y), 0)
    rotate(var(--swarm-rotate))
    scale(var(--swarm-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.holder-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(136, 201, 255, 0.38);
  border-radius: 8px;
  background: rgba(47, 111, 255, 0.16);
  box-shadow: 0 0 18px rgba(89, 183, 255, 0.24);
}

.holder-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.holder-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.holder-meta strong,
.holder-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holder-meta strong {
  color: var(--primary-text);
  font-size: 0.9rem;
  line-height: 1.18;
}

.holder-meta small {
  color: var(--soft-horizon-blue);
  font-size: 0.72rem;
  font-weight: 780;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.landing-page .hero-copy {
  opacity: var(--landing-copy-opacity, 1);
  transform: translateY(var(--landing-copy-offset, 0));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.landing-page.is-hero-hidden .hero-copy {
  pointer-events: none;
}

.landing-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 30px;
}

.landing-page.has-scroll-story .landing-cta {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.landing-page.has-scroll-story.is-finale .landing-cta {
  opacity: 0.96;
  transform: translateY(92px);
  pointer-events: auto;
  transition: none;
}

.token-address-copy {
  appearance: none;
  cursor: pointer;
  color: inherit;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 46px;
  text-align: center;
}

.page-hero:has(.glow-title) {
  padding-bottom: 18px;
}

.compact-hero {
  padding-top: 34px;
}

.status-pill,
.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(89, 183, 255, 0.36);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--soft-horizon-blue);
  background: rgba(47, 111, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  font-size: 4.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.glow-title {
  position: relative;
  width: fit-content;
  padding: 0 18px;
  text-shadow: none;
}

.landing-title {
  --slot-min-width: 0.62em;
  --slot-row: 1.2em;
  max-width: min(100%, 980px);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.035em;
  font-size: 9.75rem;
  line-height: 1.14;
  font-weight: 950;
  white-space: nowrap;
}

.landing-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -10% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(89, 183, 255, 0.58), rgba(47, 111, 255, 0.24) 42%, transparent 72%);
  filter: blur(24px);
}

.slot-static,
.slot-char {
  display: inline-block;
  flex: 0 0 auto;
}

.slot-static {
  line-height: var(--slot-row, 1.2em);
}

.slot-static,
.slot-reel span {
  position: relative;
  z-index: 1;
}

.slot-char {
  width: var(--slot-width, 0.62em);
  min-width: var(--slot-min-width, 0.62em);
  height: var(--slot-row, 1.2em);
  overflow: hidden;
  text-align: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.slot-char.is-space-slot {
  width: var(--slot-width, 0.42em);
}

.slot-reel {
  display: grid;
  grid-auto-rows: var(--slot-row, 1.2em);
  transform: translateY(calc(var(--slot-progress, 0) * var(--slot-distance, 3) * var(--slot-row, 1.2em) * -1));
  will-change: transform;
}

.slot-reel span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateX(var(--slot-glyph-offset, 0)) scaleX(var(--slot-glyph-scale, 1));
  transform-origin: center;
}

.landing-title > .slot-char:nth-of-type(2) {
  --slot-glyph-offset: 0.02em;
}

.landing-title > .slot-char:nth-of-type(4) {
  --slot-glyph-offset: -0.014em;
}

.landing-title.is-spinning .slot-reel {
  color: #f3fbff;
  text-shadow: none;
}

.glow-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% -22% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 255, 0.42), rgba(30, 144, 255, 0.16) 44%, transparent 72%);
  filter: blur(18px);
}

h2 {
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--soft-horizon-blue);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  margin-bottom: 28px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted-grey);
  font-size: 1.15rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.action {
  appearance: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(62, 166, 255, 0.42);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--primary-text);
  background: rgba(47, 111, 255, 0.2);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}

.action:hover {
  background: rgba(47, 111, 255, 0.32);
  box-shadow: 0 0 28px rgba(30, 144, 255, 0.24);
}

.action.secondary {
  border-color: rgba(139, 152, 165, 0.28);
  background: rgba(17, 26, 46, 0.74);
  color: var(--muted-grey);
}

.action.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.inline-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(62, 166, 255, 0.34);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--soft-horizon-blue);
  background: rgba(47, 111, 255, 0.12);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 760;
}

.band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.token-address {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(89, 183, 255, 0.26);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.48);
}

.token-address {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 0 24px rgba(47, 111, 255, 0.14),
    inset 0 1px 0 rgba(136, 201, 255, 0.08);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.token-address:hover,
.token-address:focus-visible {
  border-color: rgba(89, 183, 255, 0.78);
  background: rgba(47, 111, 255, 0.16);
  box-shadow:
    0 0 28px rgba(89, 183, 255, 0.48),
    0 0 56px rgba(47, 111, 255, 0.34),
    inset 0 1px 0 rgba(136, 201, 255, 0.18);
  transform: translateY(-1px);
}

.token-address:focus-visible {
  outline: 2px solid rgba(136, 201, 255, 0.72);
  outline-offset: 3px;
}

.token-address span {
  color: var(--muted-grey);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.token-address strong {
  color: var(--soft-horizon-blue);
  font-size: clamp(0.74rem, 1.8vw, 0.98rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.token-address:hover strong,
.token-address:focus-visible strong {
  color: var(--primary-text);
  text-shadow:
    0 0 12px rgba(136, 201, 255, 0.7),
    0 0 26px rgba(47, 111, 255, 0.52);
}

.token-kpis {
  align-items: stretch;
}

.links-band {
  padding-top: 12px;
}

.pfp-generator {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 42px;
}

.pfp-copy {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  text-align: center;
}

.pfp-tool {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.pfp-controls,
.pfp-preview-panel {
  border: 1px solid rgba(62, 166, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.88), rgba(5, 7, 11, 0.76)),
    var(--charcoal-blue);
  box-shadow:
    inset 0 1px 0 rgba(136, 201, 255, 0.08),
    0 28px 90px rgba(5, 7, 11, 0.34);
}

.pfp-controls {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.trait-card {
  min-height: 158px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(89, 183, 255, 0.26);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(47, 111, 255, 0.16), rgba(17, 26, 46, 0.72)),
    rgba(47, 111, 255, 0.1);
}

.trait-card strong {
  font-size: 1.2rem;
}

.trait-card span {
  color: var(--muted-grey);
}

.trait-kicker {
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.pfp-customizer {
  display: grid;
  gap: 12px;
}

.trait-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-control {
  display: grid;
  gap: 6px;
}

.field-control span {
  color: var(--muted-grey);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.field-control input,
.field-control select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(139, 152, 165, 0.32);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--primary-text);
  background: rgba(5, 7, 11, 0.56);
}

.field-control input:focus,
.field-control select:focus {
  outline: 2px solid rgba(89, 183, 255, 0.42);
  outline-offset: 2px;
  border-color: rgba(89, 183, 255, 0.72);
}

.trait-list {
  display: grid;
  gap: 8px;
}

.trait-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(139, 152, 165, 0.28);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(11, 19, 34, 0.7);
}

.trait-row.is-locked {
  border-color: rgba(89, 183, 255, 0.62);
  background:
    linear-gradient(90deg, rgba(30, 144, 255, 0.14), rgba(11, 19, 34, 0.72)),
    rgba(11, 19, 34, 0.7);
}

.trait-row-label {
  min-width: 92px;
  color: var(--muted-grey);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

.trait-row strong {
  flex: 1;
  color: var(--primary-text);
  font-size: 0.94rem;
  text-align: right;
}

.trait-lock {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(139, 152, 165, 0.28);
  border-radius: 8px;
  color: var(--muted-grey);
  background: rgba(5, 7, 11, 0.44);
  cursor: pointer;
}

.trait-lock:hover,
.trait-lock:focus-visible {
  color: var(--primary-text);
  border-color: rgba(89, 183, 255, 0.7);
  outline: none;
}

.trait-lock[aria-pressed="true"] {
  color: var(--primary-text);
  border-color: rgba(89, 183, 255, 0.74);
  background: rgba(47, 111, 255, 0.22);
  box-shadow: 0 0 18px rgba(62, 166, 255, 0.16);
}

.trait-lock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pfp-preview-panel {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px;
}

.pfp-preview-frame {
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(136, 201, 255, 0.28);
  border-radius: 8px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.18), rgba(5, 7, 11, 0.92) 68%);
  box-shadow:
    0 0 42px rgba(62, 166, 255, 0.22),
    inset 0 0 42px rgba(62, 166, 255, 0.2);
}

.pfp-preview-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pfp-status {
  margin: 0;
  color: var(--muted-grey);
  font-size: 0.95rem;
  text-align: center;
}

.content-grid,
.kpi-grid,
.preview-grid {
  display: grid;
  gap: 16px;
}

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

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

.panel,
.kpi,
.story-step,
.community-item {
  border: 1px solid rgba(62, 166, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.82), rgba(11, 19, 34, 0.72)),
    var(--charcoal-blue);
  box-shadow: inset 0 1px 0 rgba(136, 201, 255, 0.08);
}

.panel {
  padding: 24px;
  text-align: center;
}

.panel p:last-child,
.kpi p:last-child,
.story-step p:last-child,
.community-item p:last-child {
  margin-bottom: 0;
}

.kpi {
  min-height: 132px;
  padding: 20px;
  text-align: center;
}

.kpi-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-grey);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  color: var(--primary-text);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.08;
}

.kpi-note {
  margin-top: 12px;
  color: var(--deep-ui-grey);
  font-size: 0.92rem;
}

.token-stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

.token-stats div {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(139, 152, 165, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(5, 7, 11, 0.34);
}

.token-stats dt {
  color: var(--muted-grey);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.token-stats dd {
  min-width: 0;
  margin: 0;
  color: var(--primary-text);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.token-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted-grey);
}

.pigeon-manifest {
  padding-bottom: 22px;
}

.pigeon-manifest .section-heading {
  max-width: 860px;
}

.pigeon-principles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
}

.pigeon-principle-card {
  min-height: 284px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid rgba(62, 166, 255, 0.16);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.86), rgba(11, 19, 34, 0.72)),
    var(--charcoal-blue);
  box-shadow:
    inset 0 1px 0 rgba(136, 201, 255, 0.08),
    0 18px 54px rgba(5, 7, 11, 0.2);
}

.principle-number {
  width: fit-content;
  border: 1px solid rgba(89, 183, 255, 0.34);
  border-radius: 8px;
  padding: 3px 8px;
  color: var(--soft-horizon-blue);
  background: rgba(47, 111, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 860;
}

.pigeon-principle-card h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.16;
}

.pigeon-principle-card p {
  margin-bottom: 0;
  color: var(--muted-grey);
  font-size: 0.95rem;
  line-height: 1.52;
}

.pigeon-closing {
  max-width: 840px;
  padding-top: 24px;
  text-align: center;
}

.pigeon-closing p {
  color: var(--muted-grey);
  font-size: 1.05rem;
}

.pigeon-closing strong {
  display: block;
  color: var(--primary-text);
  font-size: 1.35rem;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(89, 183, 255, 0.28);
}

.supply-dashboard {
  padding-top: 24px;
}

.supply-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.supply-card,
.data-panel {
  border: 1px solid rgba(62, 166, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.82), rgba(11, 19, 34, 0.72)),
    var(--charcoal-blue);
  box-shadow: inset 0 1px 0 rgba(136, 201, 255, 0.08);
}

.supply-card {
  min-height: 168px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.supply-card strong {
  color: var(--primary-text);
  font-size: 1.32rem;
  line-height: 1.12;
}

.supply-card p {
  margin-bottom: 0;
  color: var(--deep-ui-grey);
  font-size: 0.88rem;
  line-height: 1.42;
}

.supply-card-explainer {
  border-color: rgba(89, 183, 255, 0.28);
}

.supply-card-explainer strong {
  text-shadow: 0 0 16px rgba(89, 183, 255, 0.28);
}

.supply-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.data-panel {
  min-width: 0;
  padding: 20px;
}

.data-panel h3 {
  margin-bottom: 14px;
  text-align: center;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.supply-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}

.supply-table th,
.supply-table td {
  border-bottom: 1px solid rgba(139, 152, 165, 0.2);
  padding: 10px 9px;
  vertical-align: middle;
}

.supply-table th {
  color: var(--muted-grey);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.supply-table td {
  color: var(--primary-text);
  font-size: 0.9rem;
}

.supply-table tr:last-child td {
  border-bottom: 0;
}

.supply-table a {
  color: var(--soft-horizon-blue);
  font-weight: 760;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.supply-table a:hover {
  color: var(--primary-text);
  text-shadow: 0 0 16px rgba(89, 183, 255, 0.48);
}

.story-list,
.community-list,
.link-stack {
  display: grid;
  gap: 14px;
}

.story-step,
.community-item {
  padding: 22px;
  text-align: center;
}

.story-chapter {
  padding: 0;
  overflow: hidden;
}

.story-chapter summary {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 54px 22px 22px;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.story-chapter summary::-webkit-details-marker {
  display: none;
}

.story-chapter summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--highlight-blue);
  font-size: 1.4rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.story-chapter[open] summary::after {
  content: "-";
}

.story-chapter summary span {
  color: var(--soft-horizon-blue);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-chapter summary strong {
  color: var(--primary-text);
  font-size: 2rem;
  line-height: 1.15;
}

.story-chapter p {
  margin: 0;
  padding: 0 22px 22px;
}

.story-chapter p strong {
  color: var(--primary-text);
}

.story-chapter a {
  color: var(--soft-horizon-blue);
  font-weight: 760;
  text-decoration: none;
}

.story-chapter a:hover {
  color: var(--primary-text);
  text-shadow: 0 0 16px rgba(89, 183, 255, 0.48);
}

.link-stack {
  max-width: 680px;
  margin: 0 auto;
}

.link-group {
  border: 1px solid rgba(62, 166, 255, 0.18);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.82), rgba(11, 19, 34, 0.72)),
    var(--charcoal-blue);
  box-shadow: inset 0 1px 0 rgba(136, 201, 255, 0.08);
  text-align: center;
}

.link-group h2 {
  margin-bottom: 14px;
  color: var(--primary-text);
  font-size: 1.35rem;
}

.link-group-items {
  display: grid;
  gap: 10px;
}

.tree-link {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(62, 166, 255, 0.18);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(5, 7, 11, 0.34);
  text-decoration: none;
  text-align: center;
}

.tree-link:hover {
  border-color: rgba(89, 183, 255, 0.58);
  background: rgba(47, 111, 255, 0.14);
}

.tree-link[aria-disabled="true"] {
  cursor: default;
}

.tree-link[aria-disabled="true"]:hover {
  border-color: rgba(62, 166, 255, 0.18);
  background: rgba(5, 7, 11, 0.34);
}

.tree-link strong,
.tree-link span {
  display: block;
}

.tree-link > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.tree-link span {
  color: var(--muted-grey);
  font-size: 0.92rem;
}

.coming-soon {
  flex: 0 0 auto;
  color: var(--highlight-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer {
  border-top: 1px solid rgba(62, 166, 255, 0.14);
  color: var(--deep-ui-grey);
}

.footer a {
  color: var(--muted-grey);
  font-weight: 760;
  text-decoration: none;
}

.footer a:hover {
  color: var(--soft-horizon-blue);
}

.cherry-word {
  color: #ff4d5f;
}

.footer a:hover .cherry-word {
  color: #ff6b78;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .nav {
    min-height: 64px;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-menu {
    display: block;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-landing {
    min-height: 78svh;
    background:
      linear-gradient(90deg, rgba(5, 7, 11, 0.98), rgba(5, 7, 11, 0.66)),
      url("assets/pigeonhub-hero.png") 58% center / cover no-repeat;
  }

  .scroll-video-hero {
    min-height: calc(100svh - 64px);
    background: transparent;
  }

  .scroll-video-bg {
    object-position: 58% center;
  }

  h1 {
    font-size: 3rem;
  }

  .landing-title {
    font-size: 6.4rem;
  }

  .swarm-copy {
    top: clamp(128px, 18vh, 168px);
  }

  .holder-card {
    width: clamp(132px, 24vw, 164px);
    min-height: 60px;
    padding: 8px 10px;
  }

  .holder-avatar {
    width: 36px;
    height: 36px;
  }

  .holder-meta strong {
    font-size: 0.82rem;
  }

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

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

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

  .supply-panels {
    grid-template-columns: 1fr;
  }

  .pfp-tool {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-link {
    padding-inline: 9px;
  }

  .hero-content {
    padding: 92px 0 28px;
  }

  .page-hero {
    padding-top: 64px;
  }

  .pfp-generator {
    padding-top: 64px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .landing-title {
    --slot-min-width: 0.6em;
    padding-inline: 12px;
    font-size: 3.85rem;
  }

  .landing-page.has-scroll-story.is-finale .landing-cta {
    transform: translateY(56px);
  }

  .swarm-copy {
    top: clamp(156px, 24vh, 204px);
    min-height: 94px;
  }

  .swarm-phase h2 {
    font-size: 2rem;
    line-height: 1;
  }

  .holder-card {
    width: clamp(92px, 28vw, 100px);
    min-height: 44px;
    gap: 5px;
    padding: 5px;
  }

  .holder-card:nth-child(n + 12) {
    display: none;
  }

  .holder-avatar {
    width: 28px;
    height: 28px;
  }

  .holder-meta strong {
    font-size: 0.66rem;
  }

  .holder-meta small {
    font-size: 0.58rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1rem;
  }

  .content-grid,
  .kpi-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .pigeon-principles {
    grid-template-columns: 1fr;
  }

  .pigeon-principle-card {
    min-height: 0;
  }

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

  .data-panel {
    padding: 16px;
  }

  .pfp-controls,
  .pfp-preview-panel {
    padding: 18px;
  }

  .trait-card {
    min-height: 134px;
  }

  .trait-select-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .tree-link {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .nav-links {
    gap: 6px;
  }

  .nav-link {
    padding-inline: 6px;
    font-size: 0.86rem;
  }

  .landing-title {
    padding-inline: 8px;
    font-size: 3.35rem;
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  .hero-content {
    padding: 70px 0 20px;
  }

  .landing-title {
    font-size: 3.25rem;
  }

  .landing-cta {
    gap: 10px;
    margin-top: 20px;
  }

  .landing-page.has-scroll-story.is-finale .landing-cta {
    transform: translateY(18px);
  }

  .swarm-copy {
    top: clamp(118px, 19vh, 146px);
    min-height: 80px;
  }

  .swarm-phase h2 {
    font-size: 1.62rem;
  }

  .action {
    min-height: 42px;
    padding: 8px 14px;
  }

  .token-address {
    padding: 10px 12px;
  }

  .token-address span {
    font-size: 0.68rem;
  }

  .token-address strong {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swarm-copy,
  .holder-card {
    transition: none;
  }
}
