/* Spade palette sampled from main pixel PFP */
:root {
  --palette-pink: #ea2f3b;
  --palette-mint: #2ad024;
  --palette-cream: #f0dc5a;
  --palette-coral: #6a6a6a;
  --palette-yellow: #f0dc5a;
  --palette-cyan: #e7e7e7;
  --palette-lime: #24b926;
  --palette-gold: #3f3f3f;

  /* Hard-edged 8-bar strip (same order as reference grid, left → right) */
  --palette-strip-gradient: linear-gradient(
    90deg,
    var(--palette-pink) 0%,
    var(--palette-pink) 12.5%,
    var(--palette-mint) 12.5%,
    var(--palette-mint) 25%,
    var(--palette-cream) 25%,
    var(--palette-cream) 37.5%,
    var(--palette-coral) 37.5%,
    var(--palette-coral) 50%,
    var(--palette-yellow) 50%,
    var(--palette-yellow) 62.5%,
    var(--palette-cyan) 62.5%,
    var(--palette-cyan) 75%,
    var(--palette-lime) 75%,
    var(--palette-lime) 87.5%,
    var(--palette-gold) 87.5%,
    var(--palette-gold) 100%
  );
  --palette-strip-vertical: linear-gradient(
    180deg,
    var(--palette-pink) 0%,
    var(--palette-pink) 12.5%,
    var(--palette-mint) 12.5%,
    var(--palette-mint) 25%,
    var(--palette-cream) 25%,
    var(--palette-cream) 37.5%,
    var(--palette-coral) 37.5%,
    var(--palette-coral) 50%,
    var(--palette-yellow) 50%,
    var(--palette-yellow) 62.5%,
    var(--palette-cyan) 62.5%,
    var(--palette-cyan) 75%,
    var(--palette-lime) 75%,
    var(--palette-lime) 87.5%,
    var(--palette-gold) 87.5%,
    var(--palette-gold) 100%
  );

  /* Semantic (maps old token names — keeps the rest of the CSS stable) */
  --pfp-pink: var(--palette-pink);
  --pfp-green: var(--palette-mint);
  --pfp-gold: var(--palette-yellow);
  --pfp-gold-band: var(--palette-gold);
  --pizza-mint: var(--palette-mint);
  --pizza-cheese: var(--palette-gold);
  --pizza-tomato: var(--palette-coral);
  --pizza-crust: #060606;

  --bg-base: #f8e87b;
  --bg-deep: #f0dc5a;
  --bg-elevated: #fff1a2;
  --surface-inset: #e2cf66;
  --text: #101010;
  --text-muted: #3a3a3a;
  --accent: var(--palette-pink);
  --accent-bright: var(--palette-cyan);
  --accent-soft: var(--palette-mint);
  --border: color-mix(in srgb, var(--text) 10%, transparent);
  --shadow-ink: color-mix(in srgb, var(--text) 18%, transparent);
  --radius: 8px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", system-ui, monospace;
  --header-h: 72px;
  /* Mobile horizontal tab strip under logo row — 0 on desktop */
  --header-nav-scroll-h: 0px;
  --palette-strip-h: 6px;
  --site-chrome-offset: calc(var(--header-h) + var(--header-nav-scroll-h) + var(--palette-strip-h));
  /* Approximate powered-by bar height for min-height math (padding + logo row) */
  --footer-powered-h: 5.75rem;
  /* UI chrome only — does not change --palette-* swatches */
  --edge-mix: #ffffff;
  --text-emboss-strong: color-mix(in srgb, #ffffff 55%, transparent);
  --text-emboss-soft: color-mix(in srgb, #ffffff 45%, transparent);
  --rarity-pill-shade: rgba(255, 255, 255, 0.06);
  --grain-line: rgba(28, 25, 23, 0.04);
  --nav-woosh-scrim: color-mix(in srgb, var(--palette-cream) 28%, rgba(255, 255, 255, 0.72));
  --logo-glow-a: rgba(255, 255, 255, 0.12);
  --logo-glow-b: rgba(255, 255, 255, 0.25);
  --hero-cta-secondary-bg: rgba(255, 255, 255, 0.04);
  --mobile-nav-bg: color-mix(in srgb, var(--bg-elevated) 96%, rgba(255, 255, 255, 0.04));
  /* 5-swatch under-PFP bars — same tokens as propeller + field + ink */
  --pfp-strip-mint: var(--palette-mint);
  --pfp-strip-pink: var(--palette-pink);
  --pfp-strip-yellow: var(--palette-yellow);
  --pfp-strip-cyan: var(--palette-cyan);
  --pfp-strip-ink: #060606;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  min-height: 100%;
}

/* Dark theme: X-style surfaces + text; --palette-* strip and swatch hexes unchanged */
html[data-theme="dark"] {
  color-scheme: dark;
  /* Lifted from pure black so ink / near-black template strips read under PFPs */
  --bg-base: #121816;
  --bg-deep: #0e1110;
  --bg-elevated: #1a1f1d;
  --surface-inset: #222a28;
  --text: #e7e9ea;
  --text-muted: #8b98a5;
  --border: color-mix(in srgb, var(--text) 14%, transparent);
  --shadow-ink: rgba(0, 0, 0, 0.55);
  --edge-mix: #2f363c;
  --text-emboss-strong: color-mix(in srgb, #000000 42%, transparent);
  --text-emboss-soft: color-mix(in srgb, #000000 34%, transparent);
  --rarity-pill-shade: rgba(231, 233, 234, 0.08);
  --grain-line: rgba(231, 233, 234, 0.055);
  --nav-woosh-scrim: color-mix(in srgb, #000000 82%, rgba(255, 255, 255, 0.06));
  --logo-glow-a: rgba(255, 255, 255, 0.07);
  --logo-glow-b: rgba(255, 255, 255, 0.14);
  --hero-cta-secondary-bg: rgba(231, 233, 234, 0.07);
  --mobile-nav-bg: rgba(18, 22, 20, 0.98);
}

/* Atmospheric field — not flat Duval grey */
html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 100% 70% at 100% 0%, color-mix(in srgb, var(--palette-pink) 14%, transparent) 0%, transparent 52%),
    radial-gradient(ellipse 80% 55% at 0% 100%, color-mix(in srgb, var(--palette-cyan) 12%, transparent) 0%, transparent 48%),
    radial-gradient(ellipse 60% 40% at 50% 100%, color-mix(in srgb, var(--palette-mint) 8%, transparent) 0%, transparent 45%),
    var(--bg-base);
}

/* Home hero: use dark field (palette strip still shows full swatches) */
html[data-theme="dark"] .page-home .hero-bg-layers {
  background: var(--bg-deep);
}

/* Light mode home — mint field aligned with PFP (avoid cool cyan vs warm green cutout) */
html:not([data-theme="dark"]) body.page-home {
  background: color-mix(in srgb, var(--palette-mint) 7%, var(--bg-base));
}

html:not([data-theme="dark"]) .page-home .hero-bg {
  background: color-mix(in srgb, var(--bg-deep) 70%, var(--bg-base));
}

html:not([data-theme="dark"]) .page-home .hero-bg-layers {
  background: linear-gradient(
    168deg,
    var(--bg-base) 0%,
    color-mix(in srgb, var(--palette-mint) 12%, var(--bg-deep)) 45%,
    color-mix(in srgb, var(--palette-mint) 7%, var(--bg-deep)) 100%
  );
}

html:not([data-theme="dark"]) .page-home .hero-bg-vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    color-mix(in srgb, var(--palette-mint) 14%, transparent) 100%
  );
}

html[data-theme="dark"] .bio-content-panel,
html[data-theme="dark"] .collection-desc-panel {
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edge-mix) 7%, transparent) inset,
    0 14px 44px rgba(0, 0, 0, 0.62);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.grain--pixel {
  opacity: 0.22;
  background-color: transparent;
  background-image:
    linear-gradient(var(--grain-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grain-line) 1px, transparent 1px);
  background-size: 8px 8px;
  animation: grid-drift 48s linear infinite;
}

html[data-theme="dark"] .grain--pixel {
  opacity: 0.16;
  background-size: 11px 11px;
}

@keyframes grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 8px 8px, 8px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain--pixel {
    animation: none;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: var(--header-h);
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid color-mix(in srgb, var(--palette-cyan) 12%, var(--border));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--palette-mint) 8%, transparent);
}

html[data-theme="dark"] .site-header {
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-elevated) 96%, var(--palette-pink) 4%) 0%,
      color-mix(in srgb, var(--bg-elevated) 94%, var(--palette-cyan) 6%) 100%
    );
  background-color: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
}

html:not([data-theme="dark"]) .site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--palette-strip-h);
  transform: translateY(100%);
  background: var(--palette-strip-gradient);
  pointer-events: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  flex: 1;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, filter 0.25s ease;
}

.logo-img {
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: block;
  vertical-align: top;
  /* Bitmap is pre-scaled (pfp-header.png) so the browser does not interpolate; srcset @2x for retina */
  object-fit: fill;
  border-radius: 10px;
  border: 2px solid var(--palette-lime);
  background: var(--palette-cream);
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  transition: filter 0.25s ease;
}

.logo:hover {
  color: var(--accent-bright);
}

.logo:hover .logo-img {
  filter: brightness(1.06);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

/* Top header tabs: display caps (Orbitron + uppercase) */
.site-header .nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header .nav a:hover {
  color: var(--text);
}

.site-header .nav a[aria-current="page"] {
  color: var(--text);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-header .nav a:not(.nav-link-csn) {
    position: relative;
  }

  .site-header .nav a:not(.nav-link-csn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.28rem;
    height: 3px;
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header .nav a:not(.nav-link-csn):nth-child(1)::after {
    background: var(--palette-pink);
  }

  .site-header .nav a:not(.nav-link-csn):nth-child(2)::after {
    background: var(--palette-mint);
  }

  .site-header .nav a:not(.nav-link-csn):nth-child(3)::after {
    background: var(--palette-cyan);
  }

  .site-header .nav a:not(.nav-link-csn):nth-child(4)::after {
    background: var(--palette-yellow);
  }

  .site-header .nav a:not(.nav-link-csn):nth-child(5)::after {
    background: var(--palette-coral);
  }

  .site-header .nav a:not(.nav-link-csn):hover::after,
  .site-header .nav a:not(.nav-link-csn):focus-visible::after {
    transform: scaleX(1);
  }

  .site-header .nav a[aria-current="page"]:not(.nav-link-csn)::after {
    transform: scaleX(1);
  }
}

.site-header .nav .nav-link-csn {
  color: #1c1917;
  padding: 0.2rem 0.5rem;
  margin: -0.2rem -0.15rem;
  border-radius: 3px;
  border: 2px solid var(--palette-gold);
  background: var(--palette-yellow);
  box-shadow: 0 1px 0 var(--palette-gold);
}

.site-header .nav .nav-link-csn:hover {
  color: #1c1917;
  border-color: var(--palette-coral);
  background: var(--palette-gold);
}

.mobile-nav:not(.mobile-nav--swipe) .nav-link-csn {
  border: 2px solid var(--palette-gold);
  background: var(--palette-yellow);
  color: #1c1917;
}

.mobile-nav.mobile-nav--swipe .mobile-nav-track .nav-link-csn {
  border: 2px solid var(--palette-gold);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--palette-yellow) 88%, transparent) 0%,
    color-mix(in srgb, var(--palette-gold) 35%, transparent) 100%
  );
  color: #1c1917;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--palette-gold) 35%, transparent);
}

.mobile-nav:not(.mobile-nav--swipe) a:nth-child(1) {
  border-left-color: var(--palette-pink);
}

.mobile-nav:not(.mobile-nav--swipe) a:nth-child(2) {
  border-left-color: var(--palette-mint);
}

.mobile-nav:not(.mobile-nav--swipe) a:nth-child(3) {
  border-left-color: var(--palette-cyan);
}

.mobile-nav:not(.mobile-nav--swipe) a:nth-child(4) {
  border-left-color: var(--palette-yellow);
}

.mobile-nav:not(.mobile-nav--swipe) a:nth-child(5) {
  border-left-color: var(--palette-coral);
}

.mobile-nav:not(.mobile-nav--swipe) a:nth-child(6) {
  border-left-color: var(--palette-gold);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

.site-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  max-width: min(46vw, 22rem);
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  justify-content: flex-end;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-muted) 35%, transparent) transparent;
}

.site-header-actions::-webkit-scrollbar {
  height: 3px;
}

.site-header-actions::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-muted) 40%, transparent);
  border-radius: 2px;
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.header-social-link:hover {
  color: #ffffff;
  background: var(--palette-coral);
}

.header-social-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
  outline-offset: 2px;
}

.header-social-icon {
  display: block;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  color: #ffffff;
  background: var(--palette-cyan);
}

.theme-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
  outline-offset: 2px;
}

.theme-toggle-icon {
  display: block;
  flex-shrink: 0;
}

.theme-toggle-icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-icon--sun {
  display: block;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

@media (max-width: 767px) {
  :root {
    /* Second row: horizontally scrollable tab links (suitio-style swipe through tabs) */
    --header-nav-scroll-h: 2.85rem;
  }

  /* Logo + actions on row 1; full-width scrollable nav on row 2 */
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "nav nav";
    align-items: center;
    gap: 0.4rem 0.45rem;
    min-height: unset;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .site-header-inner {
    display: contents;
  }

  .site-header .logo {
    grid-area: logo;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    font-size: clamp(0.68rem, 2.9vw, 0.88rem);
    gap: 0.45rem;
    overflow: hidden;
  }

  .site-header-actions {
    grid-area: actions;
    flex: 0 0 auto;
    flex-shrink: 0;
    max-width: none;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-self: end;
  }

  /* Primary nav: always visible, swipe left/right through all tabs */
  .nav {
    display: flex;
    grid-area: nav;
    align-items: center;
    gap: 1rem;
    width: min(100vw - 1.1rem, 100%);
    max-width: 100%;
    margin-left: -0.55rem;
    margin-right: -0.55rem;
    padding: 0.35rem 0.55rem 0.45rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-muted) 35%, transparent) transparent;
    border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 10px,
      #000 calc(100% - 10px),
      transparent 100%
    );
  }

  .nav::-webkit-scrollbar {
    height: 3px;
  }

  .nav::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-muted) 40%, transparent);
    border-radius: 2px;
  }

  .site-header .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .site-header .nav .nav-link-csn {
    margin: 0;
  }

  .header-social-link {
    width: 26px;
    height: 26px;
  }

  .header-social-icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .logo-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.05em;
  }
}

/* Dim page when mobile menu open (below header chrome) */
.mobile-nav-backdrop {
  position: fixed;
  top: var(--site-chrome-offset);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.mm-nav-open .mobile-nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html:not([data-theme="dark"]) .mobile-nav-backdrop {
  background: rgba(18, 22, 20, 0.34);
}

/* No-JS / reduced fallback: vertical list */
.mobile-nav:not(.mobile-nav--swipe) {
  position: fixed;
  top: var(--site-chrome-offset);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  background: var(--mobile-nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  gap: 0;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease,
    visibility 0.26s ease;
}

.mobile-nav:not(.mobile-nav--swipe) a {
  padding: 0.85rem 0.75rem;
  border-left: 4px solid var(--palette-pink);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav:not(.mobile-nav--swipe) a:last-child {
  border-bottom: none;
}

/* Swipe strip + orbit thumb (see main.js initMobileNavSwipe) */
.mobile-nav.mobile-nav--swipe {
  position: fixed;
  top: var(--site-chrome-offset);
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  background: var(--mobile-nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--palette-mint) 14%, transparent);
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease,
    visibility 0.26s ease;
}

.mobile-nav-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  box-sizing: border-box;
  gap: 0.35rem;
  padding: 0.55rem max(0.65rem, env(safe-area-inset-left, 0)) 0.35rem
    max(0.65rem, env(safe-area-inset-right, 0));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  overscroll-behavior-x: contain;
}

.mobile-nav.mobile-nav--swipe a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.45rem 0.28rem;
  font-weight: 600;
  font-size: clamp(0.52rem, 2.8vw, 0.72rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--palette-mint) 15%);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-elevated) 55%, transparent) 0%,
    color-mix(in srgb, var(--palette-mint) 6%, transparent) 100%
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent),
    inset 0 1px 0 color-mix(in srgb, #ffffff 8%, transparent);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.mobile-nav.mobile-nav--swipe a:hover {
  border-color: color-mix(in srgb, var(--palette-mint) 45%, var(--border));
  color: var(--text);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--palette-cyan) 22%, transparent),
    0 4px 18px rgba(0, 0, 0, 0.28);
}

.mobile-nav.mobile-nav--swipe a:active {
  transform: scale(0.97);
}

.mobile-nav-orbit {
  position: relative;
  height: 4px;
  margin: 0 max(0.65rem, env(safe-area-inset-right, 0))
    calc(0.55rem + env(safe-area-inset-bottom, 0)) max(0.65rem, env(safe-area-inset-left, 0));
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
}

.mobile-nav-orbit-thumb {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--palette-pink), var(--palette-mint));
  box-shadow: 0 0 14px color-mix(in srgb, var(--palette-pink) 40%, transparent);
  will-change: transform, width;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav.mobile-nav--swipe a {
    transition: none;
  }

  .mobile-nav-orbit-thumb {
    transition: none !important;
  }
}

.mobile-nav:not(.mobile-nav--open) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
}

.mobile-nav.mobile-nav--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav:not(.mobile-nav--swipe) {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-nav.mobile-nav--swipe {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-nav:not(.mobile-nav--open) {
    transform: none;
    opacity: 0;
  }

  .mobile-nav.mobile-nav--open {
    transform: none;
  }

  .mobile-nav-backdrop {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
}

html:not([data-theme="dark"]) .mobile-nav.mobile-nav--swipe {
  box-shadow:
    0 10px 32px color-mix(in srgb, var(--palette-cyan) 12%, transparent),
    0 0 0 1px color-mix(in srgb, var(--palette-cyan) 18%, var(--border));
}

html:not([data-theme="dark"]) .mobile-nav.mobile-nav--swipe a:not(.nav-link-csn) {
  background: color-mix(in srgb, var(--bg-elevated) 94%, var(--palette-mint) 6%);
  border-color: color-mix(in srgb, var(--border) 72%, var(--palette-cyan) 28%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--palette-mint) 10%, transparent);
}

html:not([data-theme="dark"]) .mobile-nav-orbit {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

@media (min-width: 768px) {
  .mobile-nav-backdrop {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
  }
}

main {
  position: relative;
  /* Above footer so trait popovers / overlays aren’t covered by the powered-by bar */
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-chrome-offset);
  /* Tall enough that the footer sits at the bottom of the viewport when content is short */
  min-height: calc(100dvh - var(--footer-powered-h));
}

/* Home: no powered-by footer — fill viewport below fixed header */
.page-home main {
  min-height: calc(100dvh - var(--site-chrome-offset));
}

/* Powered by — Motion Mafia */
.site-footer-powered {
  position: relative;
  /* Below main (trait panels stay on top); above grain */
  z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem) max(1.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--bg-base);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 40%, transparent) inset;
}

/* Collection page: no bottom footer — fill viewport below header */
.page-collection main {
  min-height: calc(100dvh - var(--site-chrome-offset));
}

.page-collection main > .section {
  flex: 0 0 auto;
}

.collection-footer-cta--under-collection .collection-footer-cta-inner {
  max-width: 12rem;
}

.hero-cta--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.collection-footer-cta--under-collection .hero-cta-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.collection-footer-cta--under-collection .hero-cta--stacked .hero-cta-btn--secondary {
  align-self: center;
  width: 50%;
  min-height: 22px;
  padding: 0.28rem 0.65rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.collection-footer-cta {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem) max(1.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--bg-base);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 40%, transparent) inset;
}

.collection-footer-cta.collection-footer-cta--under-collection {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  border-top: none;
  background: transparent;
  box-shadow: none;
}

.collection-footer-cta-inner {
  max-width: 72rem;
  margin: 0 auto;
  justify-content: center;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.powered-by-label {
  transform: translateY(0.04em);
}

.powered-by-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 6px;
  outline-offset: 3px;
}

.powered-by-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
}

.powered-by-logo {
  height: 1.55em;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--logo-glow-a))
    drop-shadow(0 0 1px var(--logo-glow-b));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.powered-by-logo--sammetax {
  height: clamp(26px, 2em, 38px);
  border-radius: 4px;
  image-rendering: auto;
}

.powered-by-link:hover .powered-by-logo {
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--pfp-gold) 45%, transparent))
    drop-shadow(0 0 8px var(--logo-glow-b));
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .powered-by-logo {
    transition: none;
  }
  .powered-by-link:hover .powered-by-logo {
    transform: none;
  }
}

/* Mobile: light fade between tab pages (swipe left/right) */
@media (max-width: 767px) {
  .nav-woosh-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    pointer-events: none;
    background: var(--nav-woosh-scrim);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    will-change: opacity;
  }

  .nav-woosh-overlay--exit {
    opacity: 0;
  }

  .nav-woosh-overlay--exit.nav-woosh-overlay--exit-active {
    opacity: 1;
  }

  .nav-woosh-overlay--enter {
    opacity: 1;
    transition: opacity 0.22s ease-out;
  }

  .nav-woosh-overlay--enter.nav-woosh-overlay--enter-active {
    opacity: 0;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .nav-woosh-overlay--exit,
  .nav-woosh-overlay--enter {
    transition-duration: 0.01ms;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
}

.page-home .hero {
  flex: 1 1 auto;
  min-height: calc(100vh - var(--site-chrome-offset));
  min-height: calc(100svh - var(--site-chrome-offset));
  padding-top: clamp(2rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 10vw, 5.5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-bg-layers {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    color-mix(in srgb, var(--palette-pink) 12%, transparent) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  text-align: center;
}

.hero-brand-wrap {
  position: relative;
  display: inline-block;
}

.hero-brand-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  outline: none;
}

.hero-brand-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-green) 70%, transparent);
  outline-offset: 4px;
}

.page-home .hero-brand-link {
  border-radius: 14px;
  transition: transform 0.2s ease;
}

.page-home .hero-brand-link:hover {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-brand-link {
    transition: none;
  }
}

.hero-brand-logo {
  display: block;
  width: min(280px, 68vw);
  height: auto;
  margin: 0 auto 1.35rem;
  object-fit: contain;
  border-radius: 12px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 32px color-mix(in srgb, var(--pfp-pink) 25%, transparent))
    drop-shadow(0 0 20px color-mix(in srgb, var(--pfp-green) 20%, transparent));
}

.page-home .hero-brand-logo {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  object-position: center 28%;
  border-radius: 14px;
  clip-path: polygon(0% 3%, 3% 0%, 97% 0%, 100% 3%, 100% 97%, 97% 100%, 3% 100%, 0% 97%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pfp-pink) 38%, transparent),
    0 0 48px color-mix(in srgb, var(--pfp-pink) 16%, transparent),
    0 0 72px color-mix(in srgb, var(--pfp-green) 10%, transparent);
}

/* Hero headline — large display line (replaces old two-line hero title) */
.hero-headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 auto 1.35rem;
  max-width: min(44rem, 100%);
  padding: 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.5vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-shadow:
    0 0 36px color-mix(in srgb, var(--pfp-pink) 32%, transparent),
    0 0 22px color-mix(in srgb, var(--pfp-green) 22%, transparent),
    0 1px 0 color-mix(in srgb, var(--text) 12%, transparent);
}

.page-home .hero-inner--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-home .hero-brand-wrap {
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 36px color-mix(in srgb, var(--pfp-pink) 18%, transparent));
}

.page-home .hero-brand-wrap .hero-brand-logo {
  margin-bottom: 0.45rem;
}

.page-home .hero-home-palette {
  width: min(280px, 68vw);
  max-width: 100%;
  margin: 0 auto 0.95rem;
}

.page-home .hero-headline.hero-headline--home {
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.35rem;
  margin-bottom: 0;
  max-width: 100%;
  font-size: clamp(0.75rem, 2.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow: none;
}

.page-home .hero-headline-panel {
  display: flex;
  justify-content: center;
  width: 100%;
}

.page-home .hero-headline.hero-headline--home.hero-headline--pair {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.32em 0.42em;
  max-width: 100%;
  width: 100%;
  padding-left: clamp(0.25rem, 2vw, 1rem);
  padding-right: clamp(0.25rem, 2vw, 1rem);
  box-sizing: border-box;
  /* One horizontal line; ≥ Book a call (0.62rem), slightly larger when space allows */
  font-size: clamp(0.64rem, 1.9vw, 0.96rem);
}

/* Light mode — softer type + frosted panel sized to the headline only */
html:not([data-theme="dark"]) .page-home .hero-headline-panel {
  width: fit-content;
  max-width: min(calc(100vw - 2rem), 100%);
  margin-top: 0.35rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.55rem clamp(0.55rem, 2vw, 0.95rem);
  border-radius: 16px;
  background: color-mix(in srgb, #ffffff 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--palette-cyan) 28%, var(--border));
  box-shadow:
    0 1px 0 color-mix(in srgb, #ffffff 70%, transparent) inset,
    0 10px 32px color-mix(in srgb, var(--palette-cyan) 14%, transparent),
    0 0 0 1px color-mix(in srgb, var(--text) 5%, transparent);
}

html:not([data-theme="dark"]) .page-home .hero-headline.hero-headline--home.hero-headline--pair {
  width: max-content;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

html:not([data-theme="dark"]) .page-home .hero-headline--home.hero-headline--pair .hero-headline-sep {
  color: color-mix(in srgb, var(--text-muted) 55%, var(--palette-cyan) 45%);
  opacity: 0.95;
  font-weight: 600;
}

/* Light mode — DAO line uses page-field tone instead of yellow */
html:not([data-theme="dark"]) .page-home .hero-headline--home.hero-headline--pair .hero-headline-line.hero-headline-line--accent {
  color: color-mix(
    in srgb,
    var(--text) 58%,
    color-mix(in srgb, var(--palette-cyan) 12%, var(--bg-base)) 42%
  );
  text-shadow: none;
}

.page-home .hero-headline--home .hero-headline-line,
.page-home .hero-headline--home .hero-headline-line--mid,
.page-home .hero-headline--home .hero-headline-line--accent {
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.page-home .hero-headline--home.hero-headline--pair .hero-headline-line,
.page-home .hero-headline--home.hero-headline--pair .hero-headline-line--accent {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-home .hero-headline--home.hero-headline--pair .hero-headline-sep {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0.9;
  user-select: none;
}

/* Home hero: one solid field + headline uses three distinct swatches */
.page-home .hero-headline--home .hero-headline-line:nth-child(1) {
  color: var(--palette-pink);
}

.page-home .hero-headline--home .hero-headline-line:nth-child(2) {
  color: var(--palette-cyan);
}

.page-home .hero-headline--home .hero-headline-line:nth-child(3) {
  color: var(--palette-yellow);
}

.page-home .hero-headline--home.hero-headline--pair .hero-headline-line:nth-child(1) {
  color: var(--palette-pink);
}

.page-home .hero-headline--home.hero-headline--pair .hero-headline-sep {
  color: color-mix(in srgb, var(--text-muted) 78%, var(--palette-cyan) 22%);
}

.page-home .hero-headline--home.hero-headline--pair .hero-headline-line.hero-headline-line--accent {
  color: var(--palette-yellow);
}

.page-home .hero-bg-layers {
  /* Light mode overridden above; mint fallback if no theme attr */
  background: var(--palette-mint);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--palette-cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--palette-mint) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 0%, transparent 72%);
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero::before {
    opacity: 0.22;
  }
}

@media (min-width: 900px) {
  .page-home .hero-brand-logo {
    width: min(300px, 42vw);
  }

  .page-home .hero-home-palette {
    width: min(300px, 42vw);
  }
}

.hero-headline-line {
  color: var(--text);
  white-space: nowrap;
}

.hero-headline-line--mid {
  color: color-mix(in srgb, var(--palette-mint) 38%, var(--text) 62%);
  text-shadow:
    0 0 22px color-mix(in srgb, var(--pfp-green) 40%, transparent),
    0 1px 0 var(--text-emboss-strong);
}

.hero-headline-line--accent {
  color: color-mix(in srgb, var(--palette-coral) 92%, var(--text) 8%);
  text-shadow:
    0 0 28px color-mix(in srgb, var(--pfp-gold) 45%, transparent),
    0 0 14px color-mix(in srgb, var(--pfp-pink) 30%, transparent),
    0 1px 0 var(--text-emboss-soft);
}

.hero-headline-sep {
  color: color-mix(in srgb, var(--text-muted) 55%, var(--pfp-green));
  font-weight: 500;
  opacity: 0.95;
  user-select: none;
  font-size: 0.9em;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.78rem, 2vw, 1rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.hero-title .line {
  white-space: nowrap;
}

.hero-title-sep {
  opacity: 0.4;
  color: var(--pfp-green);
  font-weight: 400;
  user-select: none;
}

.hero-title .line:not(.accent) {
  color: var(--text);
}

.hero-title .accent {
  color: var(--pfp-gold);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-btn--primary {
  border: 1px solid color-mix(in srgb, var(--pfp-green) 55%, transparent);
  background: color-mix(in srgb, var(--pfp-green) 14%, transparent);
  color: var(--text);
  box-shadow: 0 0 24px color-mix(in srgb, var(--pfp-green) 12%, transparent);
}

.hero-cta-btn--primary:hover {
  border-color: var(--pfp-green);
  background: color-mix(in srgb, var(--pfp-green) 22%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--pfp-green) 22%, transparent);
}

/* Collection intro — Doginal Dogs (gold, distinct from mint primary) */
.hero-cta-btn--doginal {
  border: 1px solid color-mix(in srgb, var(--palette-gold) 58%, transparent);
  background: color-mix(in srgb, var(--palette-gold) 16%, transparent);
  color: var(--text);
  box-shadow: 0 0 22px color-mix(in srgb, var(--palette-gold) 14%, transparent);
}

.hero-cta-btn--doginal:hover {
  border-color: color-mix(in srgb, var(--palette-gold) 88%, transparent);
  background: color-mix(in srgb, var(--palette-gold) 26%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--palette-gold) 28%, transparent);
}

.hero-cta-btn--secondary {
  border: 1px solid var(--border);
  background: var(--hero-cta-secondary-bg);
  color: var(--text-muted);
}

.hero-cta-btn--secondary:hover {
  border-color: color-mix(in srgb, var(--pfp-pink) 35%, transparent);
  color: var(--text);
}

/* Home hero — same footprint as About Type Media button (sits under headline) */
.hero-jawn-call-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0.7rem auto 0;
}

.hero-cta-btn.hero-jawn-call-btn {
  min-width: 0;
  min-height: 38px;
  padding: 0.4rem 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  border: 1px solid color-mix(in srgb, var(--palette-cyan) 38%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--hero-cta-secondary-bg) 100%, transparent) 0%,
    color-mix(in srgb, var(--palette-mint) 9%, var(--bg-elevated)) 100%
  );
  color: var(--text);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--palette-cyan) 10%, transparent),
    0 0 0 1px color-mix(in srgb, var(--palette-mint) 12%, transparent);
}

.hero-cta-btn.hero-jawn-call-btn:hover {
  border-color: color-mix(in srgb, var(--palette-mint) 55%, transparent);
  color: var(--text);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--palette-mint) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--palette-pink) 18%, transparent);
}

/* Inner pages */
.section {
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.page-bio main > .section {
  position: relative;
  padding-left: calc(clamp(1.25rem, 4vw, 2.5rem) + 10px);
}

.page-bio main > .section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--palette-strip-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
  border-radius: 0 6px 8px 0;
  box-shadow: 2px 0 18px color-mix(in srgb, var(--palette-pink) 22%, transparent);
  pointer-events: none;
}

.page-collection main > .section--collection {
  border-top: 6px solid transparent;
  border-image: var(--palette-strip-gradient) 1;
}

.page-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
}

.page-title--sammetax {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 0.35rem;
  background: linear-gradient(
    120deg,
    var(--palette-pink) 0%,
    var(--palette-mint) 35%,
    var(--palette-cyan) 65%,
    var(--palette-yellow) 100%
  );
  background-size: 160% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px color-mix(in srgb, var(--palette-mint) 25%, transparent));
}

html:not([data-theme="dark"]) .page-title--sammetax {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--text);
  filter: none;
}

.page-intro {
  margin: 0 auto 2rem;
  text-align: center;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.bio-tagline {
  margin: 0 auto 2rem;
  text-align: center;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

.bio-tagline a {
  color: var(--pfp-gold);
  text-decoration: none;
  font-weight: 700;
}

.bio-tagline a:hover {
  text-decoration: underline;
}

.bio-tagline-sep {
  margin: 0 0.35rem;
  color: var(--pfp-green);
  font-weight: 500;
}

/* Bio — photos on top, story below (centered) */
.bio-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  width: 100%;
}

.bio-images {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.85rem 1rem;
  width: 100%;
  max-width: min(28rem, 100%);
  margin: 0 auto;
}

.bio-images .bio-figure {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 0.5rem);
}

.bio-images--single {
  max-width: min(16rem, 100%);
}

.bio-images--single .bio-figure {
  flex: 0 0 auto;
  max-width: 100%;
  width: 100%;
}

.bio-images--duo {
  max-width: min(38rem, 100%);
}

@media (max-width: 520px) {
  .bio-images--duo {
    gap: 0.5rem 0.65rem;
    max-width: 100%;
    padding: 0 clamp(0.25rem, 2vw, 0.5rem);
  }
}

.bio-figure {
  margin: 0;
  text-align: center;
}

.bio-figure-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--pfp-pink) 8%, var(--bg-elevated));
}

.bio-figure--pfp .bio-figure-media,
.bio-figure--portrait .bio-figure-media {
  aspect-ratio: 1;
}

.bio-figure--pfp .bio-figure-media {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.bio-figure--portrait .bio-figure-media {
  background: var(--surface-inset);
}

.bio-figure-media img {
  display: block;
  width: 100%;
  height: auto;
}

.bio-figure--pfp .bio-figure-media img {
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.bio-figure--portrait .bio-figure-media img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

/* Color strip under Doginal PFP — ties to #2426 tag */
.bio-pfp-palette {
  display: flex;
  gap: 5px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin: 0.55rem 0 0.5rem;
  padding: 0;
}

.bio-pfp-palette-swatch {
  flex: 1 1 0;
  min-width: 0;
  height: 11px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--edge-mix) 18%, transparent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.bio-pfp-palette:not(.bio-portrait-palette) .bio-pfp-palette-swatch:nth-child(1) {
  background: var(--pfp-pink);
}

.bio-pfp-palette:not(.bio-portrait-palette) .bio-pfp-palette-swatch:nth-child(2) {
  background: var(--pfp-green);
}

.bio-pfp-palette:not(.bio-portrait-palette) .bio-pfp-palette-swatch:nth-child(3) {
  background: var(--pfp-gold);
}

.bio-pfp-palette:not(.bio-portrait-palette) .bio-pfp-palette-swatch:nth-child(4) {
  background: var(--pizza-crust);
}

.bio-pfp-palette:not(.bio-portrait-palette) .bio-pfp-palette-swatch:nth-child(5) {
  background: #e7c74b;
}

/* Portrait photo on bio (night outdoor — matches collection-piece-palette--bio-portrait) */
.bio-portrait-palette .bio-pfp-palette-swatch:nth-child(1) {
  background: var(--surface-inset);
}

.bio-portrait-palette .bio-pfp-palette-swatch:nth-child(2) {
  background: #f0f0f2;
}

.bio-portrait-palette .bio-pfp-palette-swatch:nth-child(3) {
  background: #b8956a;
}

.bio-portrait-palette .bio-pfp-palette-swatch:nth-child(4) {
  background: #e02028;
}

.bio-portrait-palette .bio-pfp-palette-swatch:nth-child(5) {
  background: #9aa0a8;
}

.bio-pfp-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
  outline-offset: 3px;
}

.bio-pfp-link:focus-visible {
  outline: 2px solid var(--pfp-gold);
}

@media (hover: hover) and (min-width: 768px) {
  .bio-pfp-link {
    cursor: pointer;
  }

  .bio-pfp-link:hover .bio-figure-media {
    transform: scale(1.045);
    border-color: color-mix(in srgb, var(--pfp-gold) 48%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--pfp-gold) 35%, transparent),
      0 8px 28px rgba(0, 0, 0, 0.45),
      0 0 28px color-mix(in srgb, var(--pfp-green) 24%, transparent);
  }
}

@media (hover: hover) and (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .bio-pfp-link:hover .bio-figure-media {
    transform: none;
  }
}

.bio-pfp-caption {
  margin-top: 0;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.bio-pfp-caption-link {
  color: var(--pfp-gold);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.bio-pfp-caption-link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
  text-shadow: 0 0 10px color-mix(in srgb, var(--pfp-gold) 35%, transparent);
}

.bio-pfp-caption--plain {
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1.5vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pfp-gold);
}

.bio-pfp-caption--sam {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.6vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--pfp-gold);
}

.bio-dog-id {
  margin: 0.45rem 0 0.35rem;
  padding: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.7vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pfp-gold);
}

.bio-figure--bio-dog .collection-piece-palette {
  margin-top: 0;
}

.bio-figure--sam-photo .collection-piece-palette {
  margin-top: 0.45rem;
}

.bio-closing {
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 92%, var(--pfp-gold) 8%);
}

.bio-content-panel {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 2.15rem);
  background: color-mix(in srgb, var(--bg-base) 72%, var(--edge-mix) 10%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edge-mix) 7%, transparent) inset,
    0 12px 40px rgba(0, 0, 0, 0.42);
}

.section-inner--bio {
  max-width: min(46rem, 100%);
}

.bio-content-panel--sammetax {
  border-radius: 8px 28px 20px 12px;
  border-color: color-mix(in srgb, var(--palette-cyan) 18%, var(--border));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--palette-pink) 7%, transparent) 0%, transparent 42%),
    linear-gradient(320deg, color-mix(in srgb, var(--palette-mint) 6%, transparent) 0%, transparent 38%),
    color-mix(in srgb, var(--bg-base) 72%, var(--edge-mix) 10%);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--palette-mint) 12%, transparent) inset,
    0 16px 48px rgba(0, 0, 0, 0.48),
    0 0 0 1px color-mix(in srgb, var(--palette-pink) 8%, transparent);
}

html[data-theme="dark"] .bio-content-panel--sammetax {
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--palette-mint) 10%, transparent) inset,
    0 18px 52px rgba(0, 0, 0, 0.58),
    0 0 42px color-mix(in srgb, var(--palette-pink) 6%, transparent);
}

.bio-copy {
  color: color-mix(in srgb, var(--text) 94%, var(--pfp-pink) 6%);
  font-size: 1.075rem;
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.015em;
  text-align: center;
  max-width: none;
  margin: 0;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

.bio-copy .bio-tagline {
  margin-bottom: 0.65rem;
  max-width: none;
  white-space: normal;
  font-size: clamp(0.55rem, 2.85vw, 0.95rem);
  letter-spacing: 0.04em;
}

.bio-copy .bio-tagline.bio-tagline--roles {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(0.62rem, 2vw, 0.88rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfp-gold);
}

.bio-typemedia-wrap {
  margin: 0 0 1.35rem;
  text-align: center;
}

.bio-typemedia-wrap--top {
  margin: 0 auto 1.35rem;
  width: 100%;
  max-width: min(22rem, 100%);
}

.bio-typemedia-wrap--top.bio-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 0.85rem;
  max-width: min(28rem, 100%);
}

.bio-typemedia-wrap--top .bio-typemedia-btn--top {
  min-width: 0;
  min-height: 38px;
  padding: 0.4rem 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  border-color: color-mix(in srgb, var(--palette-cyan) 38%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--hero-cta-secondary-bg) 100%, transparent) 0%,
    color-mix(in srgb, var(--palette-mint) 9%, var(--bg-elevated)) 100%
  );
  color: var(--text);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--palette-cyan) 10%, transparent),
    0 0 0 1px color-mix(in srgb, var(--palette-mint) 12%, transparent);
}

.bio-typemedia-wrap--top .bio-typemedia-btn--top:hover {
  border-color: color-mix(in srgb, var(--palette-mint) 55%, transparent);
  color: var(--text);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--palette-mint) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--palette-pink) 18%, transparent);
}

.bio-copy a.bio-typemedia-btn {
  color: var(--text);
  text-shadow: none;
}

.bio-copy a.bio-typemedia-btn:hover {
  text-decoration: none;
  color: var(--text);
}

.bio-copy p {
  margin: 0 0 1.1rem;
}

.bio-copy p:last-child {
  margin-bottom: 0;
}

.bio-copy a {
  color: var(--pfp-gold);
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 12px color-mix(in srgb, var(--pfp-gold) 28%, transparent);
}

.bio-copy a:hover {
  text-decoration: underline;
}

.bio-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem 1.15rem;
  margin: 1.35rem 0 0;
}

.bio-social-icons .bio-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--text-muted);
  border-radius: 8px;
  outline-offset: 3px;
  transition: color 0.2s ease, filter 0.2s ease;
}

.bio-social-icons .bio-social-link:hover {
  color: var(--pfp-gold);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--pfp-gold) 35%, transparent));
}

.bio-social-icons .bio-social-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
  outline-offset: 3px;
}

.bio-social-icons .header-social-icon {
  width: 22px;
  height: 22px;
}

/* Book a call */
.section--hop-call {
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
}

.hop-call-inner {
  max-width: 28rem;
}

.hop-call-lede {
  margin-bottom: 1.75rem;
}

.call-form-success {
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  max-width: 28rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--palette-mint) 22%, var(--bg-base));
  border: 1px solid color-mix(in srgb, var(--palette-mint) 45%, var(--border));
  border-radius: calc(var(--radius) + 2px);
}

.hop-call-panel {
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.35rem, 3.2vw, 2rem);
  background: color-mix(in srgb, var(--bg-base) 72%, var(--edge-mix) 10%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edge-mix) 7%, transparent) inset,
    0 12px 40px rgba(0, 0, 0, 0.42);
  text-align: left;
}

html[data-theme="dark"] .hop-call-panel {
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edge-mix) 7%, transparent) inset,
    0 14px 44px rgba(0, 0, 0, 0.62);
}

.hop-call-form {
  position: relative;
}

.hop-call-form-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hop-call-field {
  margin-bottom: 1rem;
}

.hop-call-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.hop-call-optional {
  font-weight: 500;
  color: var(--text-muted);
}

.hop-call-field input,
.hop-call-field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hop-call-field textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.5;
}

.hop-call-field input::placeholder,
.hop-call-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.hop-call-field input:focus,
.hop-call-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--palette-cyan) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--palette-cyan) 18%, transparent);
}

.hop-call-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.hop-call-submit {
  min-width: 12rem;
  cursor: pointer;
  border: none;
}

.hop-call-footnote {
  margin: 1.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.hop-call-footnote strong {
  color: var(--text);
  font-weight: 600;
}

.hop-call-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Shop (Motion Mafia hat — shared Stripe / Solana wallet) */
.section--duval-shop {
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
}

.duval-shop-inner {
  max-width: min(42rem, 100%);
  margin-inline: auto;
}

.duval-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
  justify-items: center;
}

@media (min-width: 640px) {
  .duval-shop-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.duval-shop-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: color-mix(in srgb, var(--bg-base) 72%, var(--edge-mix) 10%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  /* No inset highlight — it read as a separate strip above the product grey */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
  text-align: center;
  width: min(100%, 36rem);
}

/* Padding lives on copy/actions so the product image can sit flush with the card top */
.duval-shop-card > *:not(.duval-shop-image-link) {
  padding-left: clamp(1rem, 2.4vw, 1.5rem);
  padding-right: clamp(1rem, 2.4vw, 1.5rem);
}

.duval-shop-card > .duval-shop-product-title {
  padding-top: clamp(1rem, 2.4vw, 1.25rem);
}

.duval-shop-card > .duval-shop-actions {
  padding-bottom: clamp(1rem, 2.4vw, 1.5rem);
}

html[data-theme="dark"] .duval-shop-card {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.62);
}

.duval-shop-image-link {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100%;
  line-height: 0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  margin: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 5 / 6;
  background: color-mix(in srgb, var(--bg-base) 55%, var(--edge-mix) 12%);
}

.duval-shop-image-link:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--palette-pink) 35%, transparent),
    0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.duval-shop-image-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
  outline-offset: -2px;
  border-radius: 0;
}

.duval-shop-image-link--static {
  cursor: default;
}

.duval-shop-image-link--static:hover {
  transform: none;
  box-shadow: none;
}

.duval-shop-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  vertical-align: top;
}

/* Studio fills: vertical gradients sampled from PNG edges so letterboxing meets the photo */
.duval-shop-image-link--white-studio {
  background: #ffffff;
}

.duval-shop-image-link--af1-tight {
  background: linear-gradient(180deg, #d1d2d7 0%, #dcdee5 45%, #e7e8ed 100%);
}

.duval-shop-image-link--af1-tight .duval-shop-image {
  object-fit: cover;
  /* Slight downward bias: less empty gradient above the pair, a touch off the lower margin */
  object-position: 50% 46%;
}

.duval-shop-product-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duval-shop-price {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pfp-gold);
}

.duval-shop-desc {
  margin: 0 0 1.25rem;
  color: color-mix(in srgb, var(--text) 92%, var(--text-muted));
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SpadeMeta identity layer: futuristic/glass accents */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(42, 208, 36, 0.2), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(234, 47, 59, 0.14), transparent 22%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.1), transparent 24%);
  z-index: 0;
}

.site-header,
.panel,
.collection-traits-popover,
.duval-shop-card,
.bio-content-panel,
.collection-piece-frame {
  backdrop-filter: blur(7px);
}

.hero-headline-line--accent {
  text-shadow: 0 0 14px color-mix(in srgb, var(--palette-mint) 40%, transparent);
}

.site-header,
.duval-shop-card,
.bio-content-panel,
.collection-traits-popover,
.collection-piece-frame {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--palette-cyan) 10%, var(--border)),
    0 14px 30px rgba(0, 0, 0, 0.25);
}

.hero-cta-btn,
.duval-shop-actions .hero-cta-btn {
  border-width: 1px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--palette-cyan) 14%, transparent) inset;
}

/* Gallery page */
.section--gallery {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.gallery-inner {
  max-width: min(72rem, 94vw);
}

.gallery-grid {
  margin-top: clamp(1rem, 2.7vw, 2rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.2rem);
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--palette-cyan) 16%, var(--border));
  background: color-mix(in srgb, var(--bg-elevated) 92%, white 8%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.gallery-item {
  grid-column: span 4;
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item--square img {
  aspect-ratio: 1 / 1;
}

@media (max-width: 960px) {
  .gallery-item,
  .gallery-item--wide {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: auto;
  }
}

.duval-shop-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: auto;
}

.duval-shop-btn-stripe {
  width: 100%;
  justify-content: center;
}

.duval-shop-actions .hero-cta-btn {
  appearance: none;
  border-style: solid;
  cursor: pointer;
  font: inherit;
  text-align: center;
  box-sizing: border-box;
}

.duval-shop-btn-sol {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.duval-shop-wallet-code {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--text-muted) 90%, var(--text));
}

/* Collection */
.collection-intro {
  margin-bottom: 2rem;
}

.collection-brand-line {
  margin: 0.25rem auto 0.85rem;
  text-align: center;
}

.collection-brand-line--primary-cta {
  display: flex;
  justify-content: center;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.collection-brand-line--primary-cta .hero-cta-btn {
  width: 100%;
  max-width: 12rem;
  justify-content: center;
}

.collection-brand-link {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pfp-gold);
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    text-shadow 0.2s ease;
}

.collection-brand-link:hover {
  color: var(--accent-bright);
  border-bottom-color: color-mix(in srgb, var(--pfp-gold) 45%, transparent);
  text-shadow: 0 0 14px color-mix(in srgb, var(--pfp-gold) 32%, transparent);
}

.collection-brand-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
  outline-offset: 4px;
  border-radius: 2px;
}

.collection-desc-panel {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.15rem, 2.8vw, 1.85rem);
  background: color-mix(in srgb, var(--bg-base) 72%, var(--edge-mix) 10%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--edge-mix) 7%, transparent) inset,
    0 12px 40px rgba(0, 0, 0, 0.42);
}

.collection-desc-panel .page-intro {
  margin: 0;
  max-width: none;
  color: color-mix(in srgb, var(--text) 88%, var(--pfp-pink) 12%);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Marketplace-style dog cards (screenshot grid) */
.section--collection {
  padding-bottom: 0;
  /* Featured hero + grid PFPs share the same max width */
  --collection-pfp-max: 18rem;
}

.collection-additional {
  max-width: 72rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.collection-subtitle {
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
}

.collection-grid--dogs-nine {
  padding-top: 0;
}

.collection-grid--dogs-ten {
  padding-top: 0;
}

.collection-grid--dogs-eleven {
  padding-top: 0;
}

.collection-grid--dogs-twelve {
  padding-top: 0;
}

.collection-grid--dogs-thirteen {
  padding-top: 0;
}

.collection-grid--dogs-fourteen {
  padding-top: 0;
}

.collection-grid--dogs-fifteen {
  padding-top: 0;
}

.collection-grid--dogs-sixteen {
  padding-top: 0;
}

.collection-grid--dogs-seventeen {
  padding-top: 0;
}

.collection-grid--dogs-eighteen {
  padding-top: 0;
}

.collection-grid--dogs-nineteen {
  padding-top: 0;
}

.collection-grid--dogs-twenty {
  padding-top: 0;
}

.collection-grid--dogs-twenty-one {
  padding-top: 0;
}

.collection-market-card--labeled {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.collection-market-card-caption {
  margin: 0;
  padding: 0 0.15rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.collection-market-card--with-palette .collection-piece-palette {
  margin: 0.2rem 0 0;
}

.collection-market-card--with-palette .collection-piece-palette-link:hover .collection-piece-swatch {
  filter: brightness(1.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 10px color-mix(in srgb, var(--pfp-pink) 35%, transparent);
}

.collection-grid--dogs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.8vw, 1.1rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
}

.collection-market-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.collection-market-card-caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
}

.collection-market-card-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}

.collection-market-card-link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pfp-pink) 40%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.collection-market-card-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
  outline-offset: 3px;
}

.collection-market-card-link img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: top;
}

.collection-market-card--pfp .collection-market-card-link {
  aspect-ratio: 1 / 1;
}

.collection-market-card--pfp .collection-market-card-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface-inset);
}

.collection-grid--dogs .collection-piece.collection-market-card {
  width: 100%;
  max-width: min(100%, var(--collection-pfp-max));
  min-width: 0; /* lets CSS Grid keep all columns; avoids collapse to one column */
  justify-self: center;
}

.collection-grid--dogs:not(.collection-grid--dogs-nine):not(.collection-grid--dogs-ten):not(.collection-grid--dogs-eleven):not(.collection-grid--dogs-twelve):not(.collection-grid--dogs-thirteen):not(.collection-grid--dogs-fourteen):not(.collection-grid--dogs-fifteen):not(.collection-grid--dogs-sixteen):not(.collection-grid--dogs-seventeen):not(.collection-grid--dogs-eighteen):not(.collection-grid--dogs-nineteen):not(.collection-grid--dogs-twenty):not(.collection-grid--dogs-twenty-one) {
  align-items: start;
}

.collection-grid--dogs-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(40rem, 100%);
}

@media (max-width: 520px) {
  .collection-grid--dogs-two {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: min(54rem, 100%);
}

@media (max-width: 900px) {
  .collection-grid--dogs-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(40rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs-three {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 960px) {
  .collection-grid--dogs-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs-four {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs-five {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(48rem, 100%);
  }
}

@media (min-width: 1100px) {
  .collection-grid--dogs-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs-five {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs-six {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(48rem, 100%);
  }
}

@media (min-width: 1200px) {
  .collection-grid--dogs-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: min(72rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs-six {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs-seven {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs-seven {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(48rem, 100%);
  }
}

@media (min-width: 1100px) {
  .collection-grid--dogs-seven {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs-seven {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    max-width: min(84rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs-seven {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs-eight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs-eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs-eight {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    max-width: min(96rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs-eight {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-nine {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-nine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-nine {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    max-width: min(108rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-nine {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-ten {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-ten {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-ten {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    max-width: min(120rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-ten {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-eleven {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-eleven {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-eleven {
    grid-template-columns: repeat(11, minmax(0, 1fr));
    max-width: min(132rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-eleven {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-twelve {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-twelve {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-twelve {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    max-width: min(144rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-twelve {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-thirteen {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-thirteen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-thirteen {
    grid-template-columns: repeat(13, minmax(0, 1fr));
    max-width: min(156rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-thirteen {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-fourteen {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-fourteen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-fourteen {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    max-width: min(168rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-fourteen {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-fifteen {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-fifteen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-fifteen {
    grid-template-columns: repeat(15, minmax(0, 1fr));
    max-width: min(180rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-fifteen {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-sixteen {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-sixteen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-sixteen {
    grid-template-columns: repeat(16, minmax(0, 1fr));
    max-width: min(192rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-sixteen {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-seventeen {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-seventeen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-seventeen {
    grid-template-columns: repeat(17, minmax(0, 1fr));
    max-width: min(204rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-seventeen {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-eighteen {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-eighteen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-eighteen {
    grid-template-columns: repeat(18, minmax(0, 1fr));
    max-width: min(216rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-eighteen {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

.collection-grid--dogs.collection-grid--dogs-nineteen {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(42rem, 100%);
}

@media (min-width: 720px) {
  .collection-grid--dogs.collection-grid--dogs-nineteen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(58rem, 100%);
  }
}

@media (min-width: 1400px) {
  .collection-grid--dogs.collection-grid--dogs-nineteen {
    grid-template-columns: repeat(19, minmax(0, 1fr));
    max-width: min(228rem, 100%);
  }
}

@media (max-width: 520px) {
  .collection-grid--dogs.collection-grid--dogs-nineteen {
    grid-template-columns: 1fr;
    max-width: min(18rem, 100%);
  }
}

/* 20-card grid: four per row everywhere except narrow viewports (two per row). */
.collection-grid--dogs.collection-grid--dogs-twenty {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: min(72rem, 100%);
}

@media (max-width: 639px) {
  .collection-grid--dogs.collection-grid--dogs-twenty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(42rem, 100%);
  }
}

/* 21 cards: three equal columns (7 rows) on tablet+; two on narrow — even rhythm */
.collection-grid--dogs.collection-grid--dogs-twenty-one {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: min(58rem, 100%);
  gap: clamp(0.75rem, 2vw, 1.15rem);
}

@media (max-width: 639px) {
  .collection-grid--dogs.collection-grid--dogs-twenty-one {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(42rem, 100%);
  }
}

@media (min-width: 900px) {
  .collection-grid--dogs.collection-grid--dogs-twenty-one {
    max-width: min(62rem, 100%);
  }
}

.collection-piece--op .collection-market-card-link {
  border-color: color-mix(in srgb, var(--pfp-gold) 55%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pfp-gold) 42%, transparent),
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 24px color-mix(in srgb, var(--pfp-gold) 20%, transparent);
}

.collection-market-card-caption-link {
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  outline-offset: 2px;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.collection-market-card-caption-link:hover {
  color: color-mix(in srgb, var(--pfp-pink) 55%, var(--text-muted));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.collection-market-card-caption-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
}

.collection-traits-mobile-trigger {
  display: none;
}

@media (max-width: 767px) {
  .collection-traits-mobile-trigger {
    display: block;
    width: 100%;
    margin: 0.15rem 0 0;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--pfp-pink) 35%, var(--border));
    background: color-mix(in srgb, var(--surface-inset) 88%, var(--edge-mix) 6%);
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .collection-traits-mobile-trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--pfp-gold) 65%, transparent);
    outline-offset: 2px;
  }
}

.collection-traits-grid--count-6 .trait-card:nth-child(6) {
  grid-column: 1 / -1;
}

.collection-traits-grid--count-7 .trait-card:nth-child(7) {
  grid-column: 1 / -1;
}

.trait-card-rarity--pill-blue {
  background: color-mix(in srgb, var(--palette-cyan) 38%, var(--edge-mix));
  color: #0e7490;
}

.trait-card-rarity--pill-purple {
  background: color-mix(in srgb, var(--palette-pink) 42%, var(--edge-mix));
  color: #be185d;
}

.trait-card-rarity--pill-orange {
  background: color-mix(in srgb, var(--palette-gold) 45%, var(--edge-mix));
  color: #b45309;
}

.trait-card-rarity--pill-gray {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text-muted);
}

.collection-traits-rarity--accent-blue {
  border-color: color-mix(in srgb, var(--palette-cyan) 50%, transparent);
  background: color-mix(in srgb, var(--surface-inset) 88%, var(--palette-cyan) 12%);
}

.collection-traits-rarity--accent-blue strong {
  color: #0e7490;
}

.collection-traits-rarity--accent-purple {
  border-color: color-mix(in srgb, var(--palette-pink) 55%, transparent);
  background: color-mix(in srgb, var(--surface-inset) 88%, var(--palette-pink) 12%);
}

.collection-traits-rarity--accent-purple strong {
  color: #be185d;
}

.collection-traits-rarity--accent-orange {
  border-color: color-mix(in srgb, var(--palette-gold) 50%, transparent);
  background: color-mix(in srgb, var(--surface-inset) 88%, var(--palette-gold) 12%);
}

.collection-traits-rarity--accent-orange strong {
  color: #c2410c;
}

.collection-traits-pending-msg {
  margin: 0.35rem 0 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: left;
}

/* Collection grid — three dogs per row */
.collection-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem 1.25rem;
  align-items: start;
  justify-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem) 0;
  overflow: visible;
}

@media (max-width: 599px) {
  .collection-showcase {
    gap: 1.35rem 0.75rem;
  }
}

.collection-piece {
  position: relative;
  width: min(100%, 220px);
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 0;
}

/* Hero / main display — large featured dog above the grid (SwitchMetaX-style) */
.collection-featured {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(0.5rem, 2vw, 1rem);
  display: flex;
  justify-content: center;
}

.collection-featured .collection-piece--featured {
  max-width: min(100%, var(--collection-pfp-max));
  width: 100%;
  margin: 0 auto;
  z-index: 3;
}

.collection-piece-frame {
  position: relative;
  width: 100%;
  z-index: 1;
}

@media (hover: hover) and (min-width: 768px) {
  .collection-piece-frame:hover {
    z-index: 8;
  }
}

.collection-piece-pfp-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  border-radius: 12px;
  text-align: left;
  outline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}

.collection-piece-pfp-btn:focus-visible {
  outline: 2px solid var(--pfp-gold);
}

.collection-piece-palette-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  outline-offset: 2px;
}

.collection-piece-palette-link:focus-visible {
  outline: 2px solid var(--pfp-gold);
}

.collection-piece-id-link {
  color: var(--pfp-gold);
  text-decoration: none;
  font-weight: 700;
}

.collection-piece-id-link:hover {
  text-decoration: underline;
}

.collection-piece-id-link:focus-visible {
  outline: 2px solid var(--pfp-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.collection-piece-media {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  transform-origin: center center;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.collection-piece-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.collection-piece--featured .collection-piece-media {
  border-color: color-mix(in srgb, var(--pfp-pink) 45%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pfp-gold) 22%, transparent),
    0 14px 44px rgba(0, 0, 0, 0.55),
    0 0 40px color-mix(in srgb, var(--pfp-pink) 22%, transparent);
}

@media (hover: hover) and (min-width: 768px) {
  .collection-piece-pfp-btn {
    cursor: default;
  }

  .collection-piece-frame:hover .collection-piece-pfp-btn .collection-piece-media {
    transform: scale(1.09);
    border-color: color-mix(in srgb, var(--pfp-gold) 58%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--pfp-gold) 45%, transparent),
      0 16px 48px rgba(0, 0, 0, 0.58),
      0 0 40px color-mix(in srgb, var(--pfp-green) 28%, transparent),
      0 0 28px color-mix(in srgb, var(--pfp-gold) 22%, transparent);
  }
}

@media (hover: hover) and (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .collection-piece-frame:hover .collection-piece-pfp-btn .collection-piece-media {
    transform: none;
  }
}

/* Hover trait panel (desktop) — marketplace-style */
.collection-traits-popover {
  display: none;
}

@media (hover: hover) and (min-width: 768px) {
  .collection-traits-popover {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 50;
    width: min(300px, 92vw);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 0.65rem 0.65rem 0.75rem;
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow:
      0 20px 48px color-mix(in srgb, var(--text) 14%, transparent),
      0 0 0 1px color-mix(in srgb, var(--palette-pink) 22%, transparent),
      0 12px 36px color-mix(in srgb, var(--palette-cyan) 10%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease,
      transform 0.22s ease;
  }

  .collection-traits-popover--featured {
    width: min(340px, 94vw);
  }

  .collection-piece-frame:hover .collection-traits-popover,
  .collection-piece-frame:focus-within .collection-traits-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .collection-piece--featured .collection-piece-frame {
    z-index: 2;
  }

  /* Lift whichever card is active so its trait panel stacks above every other PFP */
  .collection-piece:has(.collection-piece-frame:hover),
  .collection-piece:has(.collection-piece-frame:focus-within) {
    z-index: 60;
  }

  .collection-piece:has(.collection-piece-frame:hover) .collection-traits-popover,
  .collection-piece:has(.collection-piece-frame:focus-within) .collection-traits-popover {
    z-index: 70;
  }
}

.collection-traits-details {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-base) 70%, var(--edge-mix) 8%);
  border: 1px solid var(--border);
}

.collection-traits-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.collection-traits-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.collection-traits-dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.collection-traits-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.collection-traits-dl dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.collection-traits-owner {
  color: var(--pfp-gold) !important;
}

.collection-traits-owner a {
  color: inherit;
  text-decoration: none;
}

.collection-traits-owner a:hover {
  text-decoration: underline;
}

.collection-traits-block {
  margin-top: 0.35rem;
}

.collection-traits-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  padding: 0 0.1rem;
}

.collection-traits-head-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.collection-traits-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.collection-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.trait-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.5rem 0.45rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-inset) 88%, var(--edge-mix) 12%);
  border: 1px solid var(--border);
  text-align: left;
}

.trait-card-cat {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.trait-card-value {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.trait-card-rarity {
  margin-top: 0.35rem;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  background: var(--rarity-pill-shade);
}

.trait-card-rarity em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.trait-card--blue {
  border-color: rgba(100, 170, 255, 0.45);
}

.trait-card--mint {
  border-color: rgba(100, 200, 200, 0.45);
}

.trait-card--rose {
  border-color: rgba(255, 150, 190, 0.45);
}

.trait-card--gray {
  border-color: rgba(160, 160, 170, 0.4);
}

.trait-card--gray2 {
  border-color: rgba(150, 150, 160, 0.4);
}

.trait-card--muted {
  border-color: rgba(180, 140, 220, 0.4);
}

.trait-card--purple {
  border-color: rgba(160, 120, 220, 0.45);
}

.trait-card--purple2 {
  border-color: rgba(150, 110, 210, 0.45);
}

.trait-card--orange {
  border-color: rgba(220, 150, 90, 0.45);
}

.trait-card--trait-highlight {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--palette-gold) 58%, rgba(220, 150, 90, 0.65));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--palette-gold) 22%, transparent);
}

.trait-card--brown {
  border-color: rgba(180, 130, 90, 0.45);
}

.trait-card--brown2 {
  border-color: rgba(170, 120, 85, 0.45);
}

.collection-traits-rarity {
  margin-top: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--pfp-gold) 42%, transparent);
  background: color-mix(in srgb, var(--surface-inset) 92%, var(--pfp-gold) 8%);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.collection-traits-rarity strong {
  color: var(--pfp-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.collection-traits-fiat {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.collection-traits-dl dd .collection-traits-fiat {
  margin-top: 0.2rem;
  text-align: right;
}

.collection-traits-fiat--inline {
  display: inline;
  margin: 0 0 0 0.25rem;
  font-size: 0.92em;
  vertical-align: baseline;
}

.collection-traits-dl dd .collection-traits-fiat--inline {
  margin-top: 0;
  text-align: inherit;
}

.collection-traits-grid--stub .trait-card {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .collection-piece-pfp-btn {
    cursor: pointer;
  }

  .collection-traits-popover {
    display: none;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-top: 0.65rem;
    overflow: visible;
  }

  .collection-piece--traits-open .collection-traits-popover {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-traits-popover {
    transition: none;
  }
}

.collection-piece-palette {
  display: flex;
  gap: 5px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin: 0.55rem 0 0.45rem;
  padding: 0;
}

.collection-piece-swatch {
  flex: 1 1 0;
  min-width: 0;
  height: 11px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--edge-mix) 18%, transparent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.collection-piece-palette--331 .collection-piece-swatch:nth-child(1) {
  background: #80e0ff;
}

.collection-piece-palette--331 .collection-piece-swatch:nth-child(2) {
  background: #604020;
}

.collection-piece-palette--331 .collection-piece-swatch:nth-child(3) {
  background: #c0a070;
}

.collection-piece-palette--331 .collection-piece-swatch:nth-child(4) {
  background: #ffcc33;
}

.collection-piece-palette--331 .collection-piece-swatch:nth-child(5) {
  background: #904040;
}

.collection-piece-palette--234 .collection-piece-swatch:nth-child(1) {
  background: #a8e6cf;
}

.collection-piece-palette--234 .collection-piece-swatch:nth-child(2) {
  background: #c41e3a;
}

.collection-piece-palette--234 .collection-piece-swatch:nth-child(3) {
  background: #ffffff;
}

.collection-piece-palette--234 .collection-piece-swatch:nth-child(4) {
  background: #c0a070;
}

.collection-piece-palette--234 .collection-piece-swatch:nth-child(5) {
  background: #ffcc33;
}

.collection-piece-palette--2426 .collection-piece-swatch:nth-child(1) {
  background: var(--pfp-pink);
}

.collection-piece-palette--2426 .collection-piece-swatch:nth-child(2) {
  background: var(--pfp-green);
}

.collection-piece-palette--2426 .collection-piece-swatch:nth-child(3) {
  background: var(--pfp-gold);
}

.collection-piece-palette--2426 .collection-piece-swatch:nth-child(4) {
  background: #333333;
}

.collection-piece-palette--2426 .collection-piece-swatch:nth-child(5) {
  background: #e7c74b;
}

/* Collection PFP palette strips — sampled to match each dog art */
.collection-piece-palette--2814 .collection-piece-swatch:nth-child(1) {
  background: #ffb8d0;
}
.collection-piece-palette--2814 .collection-piece-swatch:nth-child(2) {
  background: #ffdd44;
}
.collection-piece-palette--2814 .collection-piece-swatch:nth-child(3) {
  background: #d4a012;
}
.collection-piece-palette--2814 .collection-piece-swatch:nth-child(4) {
  background: #1e1e24;
}
.collection-piece-palette--2814 .collection-piece-swatch:nth-child(5) {
  background: #ffffff;
}

.collection-piece-palette--2143 .collection-piece-swatch:nth-child(1) {
  background: #6ec4ea;
}
.collection-piece-palette--2143 .collection-piece-swatch:nth-child(2) {
  background: #3ecf7f;
}
.collection-piece-palette--2143 .collection-piece-swatch:nth-child(3) {
  background: #c9a27d;
}
.collection-piece-palette--2143 .collection-piece-swatch:nth-child(4) {
  background: #ffffff;
}
.collection-piece-palette--2143 .collection-piece-swatch:nth-child(5) {
  background: #4db8c9;
}

.collection-piece-palette--857 .collection-piece-swatch:nth-child(1) {
  background: #8fe89a;
}
.collection-piece-palette--857 .collection-piece-swatch:nth-child(2) {
  background: #8b5a2b;
}
.collection-piece-palette--857 .collection-piece-swatch:nth-child(3) {
  background: #f4f1ea;
}
.collection-piece-palette--857 .collection-piece-swatch:nth-child(4) {
  background: #e74c3c;
}
.collection-piece-palette--857 .collection-piece-swatch:nth-child(5) {
  background: #ffb703;
}

.collection-piece-palette--7710 .collection-piece-swatch:nth-child(1) {
  background: #f9b4c8;
}
.collection-piece-palette--7710 .collection-piece-swatch:nth-child(2) {
  background: #ffe566;
}
.collection-piece-palette--7710 .collection-piece-swatch:nth-child(3) {
  background: #7a5c20;
}
.collection-piece-palette--7710 .collection-piece-swatch:nth-child(4) {
  background: #c7708f;
}
.collection-piece-palette--7710 .collection-piece-swatch:nth-child(5) {
  background: #c0392b;
}

.collection-piece-palette--6541 .collection-piece-swatch:nth-child(1) {
  background: #ff8c8c;
}
.collection-piece-palette--6541 .collection-piece-swatch:nth-child(2) {
  background: #ffffff;
}
.collection-piece-palette--6541 .collection-piece-swatch:nth-child(3) {
  background: var(--surface-inset);
}
.collection-piece-palette--6541 .collection-piece-swatch:nth-child(4) {
  background: #e91e63;
}
.collection-piece-palette--6541 .collection-piece-swatch:nth-child(5) {
  background: #ff77aa;
}

/* Doginal Dog #8549 — cyan field, tan muzzle, suit, red tie, neon eyes */
.collection-piece-palette--8549 .collection-piece-swatch:nth-child(1) {
  background: #70f3ff;
}
.collection-piece-palette--8549 .collection-piece-swatch:nth-child(2) {
  background: var(--surface-inset);
}
.collection-piece-palette--8549 .collection-piece-swatch:nth-child(3) {
  background: #ffffff;
}
.collection-piece-palette--8549 .collection-piece-swatch:nth-child(4) {
  background: #ff0040;
}
.collection-piece-palette--8549 .collection-piece-swatch:nth-child(5) {
  background: #22e55e;
}

/* Doginal Dog #1875 (temporary using assets/pfp.png) */
.collection-piece-palette--1875 .collection-piece-swatch:nth-child(1) {
  background: var(--pfp-strip-mint);
}
.collection-piece-palette--1875 .collection-piece-swatch:nth-child(2) {
  background: var(--pfp-strip-pink);
}
.collection-piece-palette--1875 .collection-piece-swatch:nth-child(3) {
  background: var(--pfp-strip-yellow);
}
.collection-piece-palette--1875 .collection-piece-swatch:nth-child(4) {
  background: var(--pfp-strip-cyan);
}
.collection-piece-palette--1875 .collection-piece-swatch:nth-child(5) {
  background: var(--pfp-strip-ink);
}

/* Doginal Dog #3525 */
.collection-piece-palette--3525 .collection-piece-swatch:nth-child(1) {
  background: #d8add0;
}
.collection-piece-palette--3525 .collection-piece-swatch:nth-child(2) {
  background: #cb2c1f;
}
.collection-piece-palette--3525 .collection-piece-swatch:nth-child(3) {
  background: #f3d641;
}
.collection-piece-palette--3525 .collection-piece-swatch:nth-child(4) {
  background: #8d48df;
}
.collection-piece-palette--3525 .collection-piece-swatch:nth-child(5) {
  background: #050505;
}

/* Doginal Dog #6335 */
.collection-piece-palette--6335 .collection-piece-swatch:nth-child(1) {
  background: #d8b0d0;
}
.collection-piece-palette--6335 .collection-piece-swatch:nth-child(2) {
  background: #19a5b3;
}
.collection-piece-palette--6335 .collection-piece-swatch:nth-child(3) {
  background: #9a6f2a;
}
.collection-piece-palette--6335 .collection-piece-swatch:nth-child(4) {
  background: #fd0d0d;
}
.collection-piece-palette--6335 .collection-piece-swatch:nth-child(5) {
  background: #080808;
}

/* Doginal Dog #6725 */
.collection-piece-palette--6725 .collection-piece-swatch:nth-child(1) {
  background: #e6d795;
}
.collection-piece-palette--6725 .collection-piece-swatch:nth-child(2) {
  background: #d6d6d6;
}
.collection-piece-palette--6725 .collection-piece-swatch:nth-child(3) {
  background: #e59444;
}
.collection-piece-palette--6725 .collection-piece-swatch:nth-child(4) {
  background: #a78960;
}
.collection-piece-palette--6725 .collection-piece-swatch:nth-child(5) {
  background: #070707;
}

/* Doginal Dog #4476 — yellow field, white/cyan/teal/grey (sampled from assets/doginal-4476.png) */
.collection-piece-palette--4476 .collection-piece-swatch:nth-child(1) {
  background: #fee155;
}
.collection-piece-palette--4476 .collection-piece-swatch:nth-child(2) {
  background: #ffffff;
}
.collection-piece-palette--4476 .collection-piece-swatch:nth-child(3) {
  background: #01acc6;
}
.collection-piece-palette--4476 .collection-piece-swatch:nth-child(4) {
  background: #00788b;
}
.collection-piece-palette--4476 .collection-piece-swatch:nth-child(5) {
  background: #b2b2b2;
}

/* Doginal Dog #8266 — tan field, beige/tan suit, red eyes, black jacket (sampled from assets/doginal-8266.png) */
.collection-piece-palette--8266 .collection-piece-swatch:nth-child(1) {
  background: #e8d4a8;
}
.collection-piece-palette--8266 .collection-piece-swatch:nth-child(2) {
  background: #c9a882;
}
.collection-piece-palette--8266 .collection-piece-swatch:nth-child(3) {
  background: #ff3b3b;
}
.collection-piece-palette--8266 .collection-piece-swatch:nth-child(4) {
  background: #1a1a1a;
}
.collection-piece-palette--8266 .collection-piece-swatch:nth-child(5) {
  background: #f5f0e6;
}

/* Doginal Dog #7714 — aqua field, orange shiba, cream/yellow (sampled from assets/doginal-7714.png) */
.collection-piece-palette--7714 .collection-piece-swatch:nth-child(1) {
  background: #4ffcd2;
}
.collection-piece-palette--7714 .collection-piece-swatch:nth-child(2) {
  background: #ec9749;
}
.collection-piece-palette--7714 .collection-piece-swatch:nth-child(3) {
  background: #fee4b6;
}
.collection-piece-palette--7714 .collection-piece-swatch:nth-child(4) {
  background: #fee46f;
}
.collection-piece-palette--7714 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #8116 — purple field, gray/tiger, rasta hat, green glasses (sampled from assets/doginal-8116.png) */
.collection-piece-palette--8116 .collection-piece-swatch:nth-child(1) {
  background: #debdff;
}
.collection-piece-palette--8116 .collection-piece-swatch:nth-child(2) {
  background: #666666;
}
.collection-piece-palette--8116 .collection-piece-swatch:nth-child(3) {
  background: #c52d1e;
}
.collection-piece-palette--8116 .collection-piece-swatch:nth-child(4) {
  background: #50964f;
}
.collection-piece-palette--8116 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #6516 — coral field, black dog, tan poncho, green goggles (sampled from assets/doginal-6516.png) */
.collection-piece-palette--6516 .collection-piece-swatch:nth-child(1) {
  background: #ff7c82;
}
.collection-piece-palette--6516 .collection-piece-swatch:nth-child(2) {
  background: #212121;
}
.collection-piece-palette--6516 .collection-piece-swatch:nth-child(3) {
  background: #ecc66e;
}
.collection-piece-palette--6516 .collection-piece-swatch:nth-child(4) {
  background: #448942;
}
.collection-piece-palette--6516 .collection-piece-swatch:nth-child(5) {
  background: #01acc6;
}

/* Doginal Dog #6655 — blue field, white dog, builder hat, green eyes (sampled from assets/doginal-6655.png) */
.collection-piece-palette--6655 .collection-piece-swatch:nth-child(1) {
  background: #79f1ff;
}
.collection-piece-palette--6655 .collection-piece-swatch:nth-child(2) {
  background: #ffffff;
}
.collection-piece-palette--6655 .collection-piece-swatch:nth-child(3) {
  background: #ff8c24;
}
.collection-piece-palette--6655 .collection-piece-swatch:nth-child(4) {
  background: #57ff8a;
}
.collection-piece-palette--6655 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #2486 — tan field, white + brown collie, blue eyes (sampled from assets/doginal-2486.png) */
.collection-piece-palette--2486 .collection-piece-swatch:nth-child(1) {
  background: #f7e7b0;
}
.collection-piece-palette--2486 .collection-piece-swatch:nth-child(2) {
  background: #ffffff;
}
.collection-piece-palette--2486 .collection-piece-swatch:nth-child(3) {
  background: #c27e3e;
}
.collection-piece-palette--2486 .collection-piece-swatch:nth-child(4) {
  background: #00d7ff;
}
.collection-piece-palette--2486 .collection-piece-swatch:nth-child(5) {
  background: #a7a7a7;
}

/* Doginal Dog #93 — salmon field, cyan fur, sleepy eyes, collar (sampled from assets/doginal-93.png) */
.collection-piece-palette--93 .collection-piece-swatch:nth-child(1) {
  background: #ff8081;
}
.collection-piece-palette--93 .collection-piece-swatch:nth-child(2) {
  background: #0099cc;
}
.collection-piece-palette--93 .collection-piece-swatch:nth-child(3) {
  background: #b2ffff;
}
.collection-piece-palette--93 .collection-piece-swatch:nth-child(4) {
  background: #ffb6c1;
}
.collection-piece-palette--93 .collection-piece-swatch:nth-child(5) {
  background: #333333;
}

/* Doginal Dog #165 — cyan field, panda husky, wizard hat, cyber shades (sampled from assets/doginal-165.png) */
.collection-piece-palette--165 .collection-piece-swatch:nth-child(1) {
  background: #78f7ff;
}
.collection-piece-palette--165 .collection-piece-swatch:nth-child(2) {
  background: #b35b2a;
}
.collection-piece-palette--165 .collection-piece-swatch:nth-child(3) {
  background: #00e5ff;
}
.collection-piece-palette--165 .collection-piece-swatch:nth-child(4) {
  background: #ffffff;
}
.collection-piece-palette--165 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #6129 — mint field, gold + purple, round glasses (sampled from assets/doginal-6129.png) */
.collection-piece-palette--6129 .collection-piece-swatch:nth-child(1) {
  background: #97f99a;
}
.collection-piece-palette--6129 .collection-piece-swatch:nth-child(2) {
  background: #9132f3;
}
.collection-piece-palette--6129 .collection-piece-swatch:nth-child(3) {
  background: #f6ca33;
}
.collection-piece-palette--6129 .collection-piece-swatch:nth-child(4) {
  background: #000000;
}
.collection-piece-palette--6129 .collection-piece-swatch:nth-child(5) {
  background: #b8a3c8;
}

/* Doginal Dog #3360 — mint field, black dog, visor, red ball (sampled from assets/doginal-3360.png) */
.collection-piece-palette--3360 .collection-piece-swatch:nth-child(1) {
  background: #a8e6c4;
}
.collection-piece-palette--3360 .collection-piece-swatch:nth-child(2) {
  background: #000000;
}
.collection-piece-palette--3360 .collection-piece-swatch:nth-child(3) {
  background: #33d6ff;
}
.collection-piece-palette--3360 .collection-piece-swatch:nth-child(4) {
  background: #ff3344;
}
.collection-piece-palette--3360 .collection-piece-swatch:nth-child(5) {
  background: #4a4a4a;
}

/* Doginal Dog #59 — yellow field, collie visor, yellow lenses (sampled from assets/doginal-59.png) */
.collection-piece-palette--59 .collection-piece-swatch:nth-child(1) {
  background: #ffdd33;
}
.collection-piece-palette--59 .collection-piece-swatch:nth-child(2) {
  background: #000000;
}
.collection-piece-palette--59 .collection-piece-swatch:nth-child(3) {
  background: #ffffff;
}
.collection-piece-palette--59 .collection-piece-swatch:nth-child(4) {
  background: #f5e000;
}
.collection-piece-palette--59 .collection-piece-swatch:nth-child(5) {
  background: #9e9e9e;
}

/* Doginal Dog #4125 — cream field, yellow beanie, green glasses (sampled from assets/doginal-4125.png) */
.collection-piece-palette--4125 .collection-piece-swatch:nth-child(1) {
  background: #f5f0dc;
}
.collection-piece-palette--4125 .collection-piece-swatch:nth-child(2) {
  background: #ffdd22;
}
.collection-piece-palette--4125 .collection-piece-swatch:nth-child(3) {
  background: #6bdc7a;
}
.collection-piece-palette--4125 .collection-piece-swatch:nth-child(4) {
  background: #d4a017;
}
.collection-piece-palette--4125 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #1386 — pale yellow field, charcoal cap, cyan visor (sampled from assets/doginal-1386.png) */
.collection-piece-palette--1386 .collection-piece-swatch:nth-child(1) {
  background: #f9e7a9;
}
.collection-piece-palette--1386 .collection-piece-swatch:nth-child(2) {
  background: #4a4a4a;
}
.collection-piece-palette--1386 .collection-piece-swatch:nth-child(3) {
  background: #33ddff;
}
.collection-piece-palette--1386 .collection-piece-swatch:nth-child(4) {
  background: #c9a86c;
}
.collection-piece-palette--1386 .collection-piece-swatch:nth-child(5) {
  background: #1a1a1a;
}

/* Doginal Dog #1634 — pink field, brown dog, straw sombrero band (sampled from assets/doginal-1634.png) */
.collection-piece-palette--1634 .collection-piece-swatch:nth-child(1) {
  background: #ffb8c8;
}
.collection-piece-palette--1634 .collection-piece-swatch:nth-child(2) {
  background: #8b5a2b;
}
.collection-piece-palette--1634 .collection-piece-swatch:nth-child(3) {
  background: #e8c878;
}
.collection-piece-palette--1634 .collection-piece-swatch:nth-child(4) {
  background: #00b4d8;
}
.collection-piece-palette--1634 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #333 — aqua field, tiger fur, gold crown, green visor (sampled from assets/doginal-333.png) */
.collection-piece-palette--333 .collection-piece-swatch:nth-child(1) {
  background: #6ee7ff;
}
.collection-piece-palette--333 .collection-piece-swatch:nth-child(2) {
  background: #ffc928;
}
.collection-piece-palette--333 .collection-piece-swatch:nth-child(3) {
  background: #9b4dca;
}
.collection-piece-palette--333 .collection-piece-swatch:nth-child(4) {
  background: #39ff14;
}
.collection-piece-palette--333 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #905 — tan field, gold shiny visor dog (sampled from assets/doginal-905.png) */
.collection-piece-palette--905 .collection-piece-swatch:nth-child(1) {
  background: #f9e79f;
}
.collection-piece-palette--905 .collection-piece-swatch:nth-child(2) {
  background: #ffb300;
}
.collection-piece-palette--905 .collection-piece-swatch:nth-child(3) {
  background: #1a1a1a;
}
.collection-piece-palette--905 .collection-piece-swatch:nth-child(4) {
  background: #fff8dc;
}
.collection-piece-palette--905 .collection-piece-swatch:nth-child(5) {
  background: #c0c0c0;
}

/* Doginal Dog #6915 — aqua field, brown boxer, bone, yellow eyes (sampled from assets/doginal-6915.png) */
.collection-piece-palette--6915 .collection-piece-swatch:nth-child(1) {
  background: #5eead4;
}
.collection-piece-palette--6915 .collection-piece-swatch:nth-child(2) {
  background: #c4713d;
}
.collection-piece-palette--6915 .collection-piece-swatch:nth-child(3) {
  background: #ffd700;
}
.collection-piece-palette--6915 .collection-piece-swatch:nth-child(4) {
  background: #c8c8c8;
}
.collection-piece-palette--6915 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #6853 — lavender field, orange classic, monocle, bone (sampled from assets/doginal-6853.png) */
.collection-piece-palette--6853 .collection-piece-swatch:nth-child(1) {
  background: #d8bfff;
}
.collection-piece-palette--6853 .collection-piece-swatch:nth-child(2) {
  background: #ff8c28;
}
.collection-piece-palette--6853 .collection-piece-swatch:nth-child(3) {
  background: #00d4ff;
}
.collection-piece-palette--6853 .collection-piece-swatch:nth-child(4) {
  background: #b8b8b8;
}
.collection-piece-palette--6853 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* Doginal Dog #9952 — mint field, zombie black, wizard hat, green eyes (sampled from assets/doginal-9952.png) */
.collection-piece-palette--9952 .collection-piece-swatch:nth-child(1) {
  background: #c8f7d8;
}
.collection-piece-palette--9952 .collection-piece-swatch:nth-child(2) {
  background: #3a3a3a;
}
.collection-piece-palette--9952 .collection-piece-swatch:nth-child(3) {
  background: #3cb371;
}
.collection-piece-palette--9952 .collection-piece-swatch:nth-child(4) {
  background: #39ff14;
}
.collection-piece-palette--9952 .collection-piece-swatch:nth-child(5) {
  background: #ffc107;
}

/* Doginal Dog #3699 — pink field, orange shiba, teal collar, cyan eyes (sampled from assets/doginal-3699.png) */
.collection-piece-palette--3699 .collection-piece-swatch:nth-child(1) {
  background: #ffc0cb;
}
.collection-piece-palette--3699 .collection-piece-swatch:nth-child(2) {
  background: #ff8c42;
}
.collection-piece-palette--3699 .collection-piece-swatch:nth-child(3) {
  background: #14b8a6;
}
.collection-piece-palette--3699 .collection-piece-swatch:nth-child(4) {
  background: #00d4ff;
}
.collection-piece-palette--3699 .collection-piece-swatch:nth-child(5) {
  background: #000000;
}

/* IRL bio portrait — bathroom mirror: wallpaper, tub, suit, navy tie, gold watch */
.collection-piece-palette--bio-irl .collection-piece-swatch:nth-child(1) {
  background: #2a2d34;
}
.collection-piece-palette--bio-irl .collection-piece-swatch:nth-child(2) {
  background: #d2c4b2;
}
.collection-piece-palette--bio-irl .collection-piece-swatch:nth-child(3) {
  background: #aeb4bf;
}
.collection-piece-palette--bio-irl .collection-piece-swatch:nth-child(4) {
  background: #1c2e4a;
}
.collection-piece-palette--bio-irl .collection-piece-swatch:nth-child(5) {
  background: #c6a03a;
}

/* Sam Meta X — PFP color strip (home + bio); hexes from assets/pfp.png */
.collection-piece-palette--sam-pfp .collection-piece-swatch:nth-child(1) {
  background: var(--pfp-strip-mint);
}
.collection-piece-palette--sam-pfp .collection-piece-swatch:nth-child(2) {
  background: var(--pfp-strip-pink);
}
.collection-piece-palette--sam-pfp .collection-piece-swatch:nth-child(3) {
  background: var(--pfp-strip-yellow);
}
.collection-piece-palette--sam-pfp .collection-piece-swatch:nth-child(4) {
  background: var(--pfp-strip-cyan);
}
.collection-piece-palette--sam-pfp .collection-piece-swatch:nth-child(5) {
  background: var(--pfp-strip-ink);
}

/* duvalx collection — palette strips sampled from each PFP image (column medians + centerline blend) */
﻿.collection-piece-palette--duval-01 .collection-piece-swatch:nth-child(1) {

  background: #fee155;

}

.collection-piece-palette--duval-01 .collection-piece-swatch:nth-child(2) {

  background: #534750;

}

.collection-piece-palette--duval-01 .collection-piece-swatch:nth-child(3) {

  background: #af181e;

}

.collection-piece-palette--duval-01 .collection-piece-swatch:nth-child(4) {

  background: #c84852;

}

.collection-piece-palette--duval-01 .collection-piece-swatch:nth-child(5) {

  background: #fee155;

}



.collection-piece-palette--duval-02 .collection-piece-swatch:nth-child(1) {

  background: #8dffa4;

}

.collection-piece-palette--duval-02 .collection-piece-swatch:nth-child(2) {

  background: #4e875a;

}

.collection-piece-palette--duval-02 .collection-piece-swatch:nth-child(3) {

  background: #c6a55f;

}

.collection-piece-palette--duval-02 .collection-piece-swatch:nth-child(4) {

  background: #4e8c5a;

}

.collection-piece-palette--duval-02 .collection-piece-swatch:nth-child(5) {

  background: #8dffa4;

}



.collection-piece-palette--duval-03 .collection-piece-swatch:nth-child(1) {

  background: #fee155;

}

.collection-piece-palette--duval-03 .collection-piece-swatch:nth-child(2) {

  background: #10282f;

}

.collection-piece-palette--duval-03 .collection-piece-swatch:nth-child(3) {

  background: #152836;

}

.collection-piece-palette--duval-03 .collection-piece-swatch:nth-child(4) {

  background: #50622f;

}

.collection-piece-palette--duval-03 .collection-piece-swatch:nth-child(5) {

  background: #fee155;

}



.collection-piece-palette--duval-04 .collection-piece-swatch:nth-child(1) {

  background: #fee155;

}

.collection-piece-palette--duval-04 .collection-piece-swatch:nth-child(2) {

  background: #131212;

}

.collection-piece-palette--duval-04 .collection-piece-swatch:nth-child(3) {

  background: #1c1c1c;

}

.collection-piece-palette--duval-04 .collection-piece-swatch:nth-child(4) {

  background: #121212;

}

.collection-piece-palette--duval-04 .collection-piece-swatch:nth-child(5) {

  background: #fee155;

}



.collection-piece-palette--duval-05 .collection-piece-swatch:nth-child(1) {

  background: #4ffcd2;

}

.collection-piece-palette--duval-05 .collection-piece-swatch:nth-child(2) {

  background: #2b3b29;

}

.collection-piece-palette--duval-05 .collection-piece-swatch:nth-child(3) {

  background: #755c3f;

}

.collection-piece-palette--duval-05 .collection-piece-swatch:nth-child(4) {

  background: #2b3a28;

}

.collection-piece-palette--duval-05 .collection-piece-swatch:nth-child(5) {

  background: #2b8b74;

}



.collection-piece-palette--duval-06 .collection-piece-swatch:nth-child(1) {

  background: #ff7c82;

}

.collection-piece-palette--duval-06 .collection-piece-swatch:nth-child(2) {

  background: #5f411c;

}

.collection-piece-palette--duval-06 .collection-piece-swatch:nth-child(3) {

  background: #765c2c;

}

.collection-piece-palette--duval-06 .collection-piece-swatch:nth-child(4) {

  background: #2f2f2d;

}

.collection-piece-palette--duval-06 .collection-piece-swatch:nth-child(5) {

  background: #ff7c82;

}



.collection-piece-palette--duval-07 .collection-piece-swatch:nth-child(1) {

  background: #feb1dd;

}

.collection-piece-palette--duval-07 .collection-piece-swatch:nth-child(2) {

  background: #273a1c;

}

.collection-piece-palette--duval-07 .collection-piece-swatch:nth-child(3) {

  background: #1c1c1c;

}

.collection-piece-palette--duval-07 .collection-piece-swatch:nth-child(4) {

  background: #4a3825;

}

.collection-piece-palette--duval-07 .collection-piece-swatch:nth-child(5) {

  background: #feb1dd;

}



.collection-piece-palette--duval-08 .collection-piece-swatch:nth-child(1) {

  background: #feb1dd;

}

.collection-piece-palette--duval-08 .collection-piece-swatch:nth-child(2) {

  background: #8c617a;

}

.collection-piece-palette--duval-08 .collection-piece-swatch:nth-child(3) {

  background: #b2cfbf;

}

.collection-piece-palette--duval-08 .collection-piece-swatch:nth-child(4) {

  background: #543624;

}

.collection-piece-palette--duval-08 .collection-piece-swatch:nth-child(5) {

  background: #feb1dd;

}



.collection-piece-palette--duval-09 .collection-piece-swatch:nth-child(1) {

  background: #4ffcd2;

}

.collection-piece-palette--duval-09 .collection-piece-swatch:nth-child(2) {

  background: #2b3f15;

}

.collection-piece-palette--duval-09 .collection-piece-swatch:nth-child(3) {

  background: #625c33;

}

.collection-piece-palette--duval-09 .collection-piece-swatch:nth-child(4) {

  background: #2b4528;

}

.collection-piece-palette--duval-09 .collection-piece-swatch:nth-child(5) {

  background: #4ffcd2;

}



.collection-piece-palette--duval-10 .collection-piece-swatch:nth-child(1) {

  background: #64ffff;

}

.collection-piece-palette--duval-10 .collection-piece-swatch:nth-child(2) {

  background: #376962;

}

.collection-piece-palette--duval-10 .collection-piece-swatch:nth-child(3) {

  background: #1c1c1c;

}

.collection-piece-palette--duval-10 .collection-piece-swatch:nth-child(4) {

  background: #377a7a;

}

.collection-piece-palette--duval-10 .collection-piece-swatch:nth-child(5) {

  background: #64ffff;

}



.collection-piece-palette--duval-b01 .collection-piece-swatch:nth-child(1) {

  background: #ffcfeb;

}

.collection-piece-palette--duval-b01 .collection-piece-swatch:nth-child(2) {

  background: #547362;

}

.collection-piece-palette--duval-b01 .collection-piece-swatch:nth-child(3) {

  background: #127712;

}

.collection-piece-palette--duval-b01 .collection-piece-swatch:nth-child(4) {

  background: #7add6a;

}

.collection-piece-palette--duval-b01 .collection-piece-swatch:nth-child(5) {

  background: #ffcfeb;

}



.collection-piece-palette--duval-b02 .collection-piece-swatch:nth-child(1) {

  background: #feb1dd;

}

.collection-piece-palette--duval-b02 .collection-piece-swatch:nth-child(2) {

  background: #181818;

}

.collection-piece-palette--duval-b02 .collection-piece-swatch:nth-child(3) {

  background: #1c1c1c;

}

.collection-piece-palette--duval-b02 .collection-piece-swatch:nth-child(4) {

  background: #7a3838;

}

.collection-piece-palette--duval-b02 .collection-piece-swatch:nth-child(5) {

  background: #feb1dd;

}



.collection-piece-palette--duval-b03 .collection-piece-swatch:nth-child(1) {

  background: #64ffff;

}

.collection-piece-palette--duval-b03 .collection-piece-swatch:nth-child(2) {

  background: #375647;

}

.collection-piece-palette--duval-b03 .collection-piece-swatch:nth-child(3) {

  background: #575858;

}

.collection-piece-palette--duval-b03 .collection-piece-swatch:nth-child(4) {

  background: #373838;

}

.collection-piece-palette--duval-b03 .collection-piece-swatch:nth-child(5) {

  background: #378c8c;

}



.collection-piece-palette--duval-b04 .collection-piece-swatch:nth-child(1) {

  background: #feb1dd;

}

.collection-piece-palette--duval-b04 .collection-piece-swatch:nth-child(2) {

  background: #435b62;

}

.collection-piece-palette--duval-b04 .collection-piece-swatch:nth-child(3) {

  background: #138585;

}

.collection-piece-palette--duval-b04 .collection-piece-swatch:nth-child(4) {

  background: #13a1ea;

}

.collection-piece-palette--duval-b04 .collection-piece-swatch:nth-child(5) {

  background: #feb1dd;

}



.collection-piece-palette--duval-b05 .collection-piece-swatch:nth-child(1) {

  background: #f8e49d;

}

.collection-piece-palette--duval-b05 .collection-piece-swatch:nth-child(2) {

  background: #56244e;

}

.collection-piece-palette--duval-b05 .collection-piece-swatch:nth-child(3) {

  background: #323232;

}

.collection-piece-palette--duval-b05 .collection-piece-swatch:nth-child(4) {

  background: #877156;

}

.collection-piece-palette--duval-b05 .collection-piece-swatch:nth-child(5) {

  background: #f8e49d;

}



.collection-piece-palette--duval-b06 .collection-piece-swatch:nth-child(1) {

  background: #8dffa4;

}

.collection-piece-palette--duval-b06 .collection-piece-swatch:nth-child(2) {

  background: #e6ffe6;

}

.collection-piece-palette--duval-b06 .collection-piece-swatch:nth-child(3) {

  background: #7a5c3f;

}

.collection-piece-palette--duval-b06 .collection-piece-swatch:nth-child(4) {

  background: #4e745a;

}

.collection-piece-palette--duval-b06 .collection-piece-swatch:nth-child(5) {

  background: #8dffa4;

}



.collection-piece-palette--duval-b07 .collection-piece-swatch:nth-child(1) {

  background: #64ffff;

}

.collection-piece-palette--duval-b07 .collection-piece-swatch:nth-child(2) {

  background: #378c8c;

}

.collection-piece-palette--duval-b07 .collection-piece-swatch:nth-child(3) {

  background: #6c94af;

}

.collection-piece-palette--duval-b07 .collection-piece-swatch:nth-child(4) {

  background: #6ca6af;

}

.collection-piece-palette--duval-b07 .collection-piece-swatch:nth-child(5) {

  background: #64ffff;

}



.collection-piece-palette--duval-b08 .collection-piece-swatch:nth-child(1) {

  background: #64ffff;

}

.collection-piece-palette--duval-b08 .collection-piece-swatch:nth-child(2) {

  background: #376930;

}

.collection-piece-palette--duval-b08 .collection-piece-swatch:nth-child(3) {

  background: #6c1910;

}

.collection-piece-palette--duval-b08 .collection-piece-swatch:nth-child(4) {

  background: #378686;

}

.collection-piece-palette--duval-b08 .collection-piece-swatch:nth-child(5) {

  background: #64ffff;

}



.collection-piece-palette--duval-b09 .collection-piece-swatch:nth-child(1) {

  background: #debdff;

}

.collection-piece-palette--duval-b09 .collection-piece-swatch:nth-child(2) {

  background: #452523;

}

.collection-piece-palette--duval-b09 .collection-piece-swatch:nth-child(3) {

  background: #493e33;

}

.collection-piece-palette--duval-b09 .collection-piece-swatch:nth-child(4) {

  background: #25251c;

}

.collection-piece-palette--duval-b09 .collection-piece-swatch:nth-child(5) {

  background: #debdff;

}
/* Bio page night portrait — asphalt night, white, khaki, sneaker red, silver */
.collection-piece-palette--bio-portrait .collection-piece-swatch:nth-child(1) {
  background: var(--surface-inset);
}
.collection-piece-palette--bio-portrait .collection-piece-swatch:nth-child(2) {
  background: #f0f0f2;
}
.collection-piece-palette--bio-portrait .collection-piece-swatch:nth-child(3) {
  background: #b8956a;
}
.collection-piece-palette--bio-portrait .collection-piece-swatch:nth-child(4) {
  background: #e02028;
}
.collection-piece-palette--bio-portrait .collection-piece-swatch:nth-child(5) {
  background: #9aa0a8;
}

/* Bio page — IRL headshot (assets/spade-irl.png), sampled */
.collection-piece-palette--sam-irl .collection-piece-swatch:nth-child(1) {
  background: #121212;
}
.collection-piece-palette--sam-irl .collection-piece-swatch:nth-child(2) {
  background: #2b2b2b;
}
.collection-piece-palette--sam-irl .collection-piece-swatch:nth-child(3) {
  background: #f0dc5a;
}
.collection-piece-palette--sam-irl .collection-piece-swatch:nth-child(4) {
  background: #ea2f3b;
}
.collection-piece-palette--sam-irl .collection-piece-swatch:nth-child(5) {
  background: #c8b03f;
}

.collection-piece-palette--5435 .collection-piece-swatch:nth-child(1) {
  background: #ffb6c8;
}
.collection-piece-palette--5435 .collection-piece-swatch:nth-child(2) {
  background: #d4a574;
}
.collection-piece-palette--5435 .collection-piece-swatch:nth-child(3) {
  background: #b71c1c;
}
.collection-piece-palette--5435 .collection-piece-swatch:nth-child(4) {
  background: #ff1744;
}
.collection-piece-palette--5435 .collection-piece-swatch:nth-child(5) {
  background: #ef5350;
}

.collection-piece-palette--7351 .collection-piece-swatch:nth-child(1) {
  background: #f5e6a8;
}
.collection-piece-palette--7351 .collection-piece-swatch:nth-child(2) {
  background: #7a7a82;
}
.collection-piece-palette--7351 .collection-piece-swatch:nth-child(3) {
  background: #1a1a1e;
}
.collection-piece-palette--7351 .collection-piece-swatch:nth-child(4) {
  background: #c41e2a;
}
.collection-piece-palette--7351 .collection-piece-swatch:nth-child(5) {
  background: #ffffff;
}

.collection-piece-palette--922 .collection-piece-swatch:nth-child(1) {
  background: #98d4a8;
}
.collection-piece-palette--922 .collection-piece-swatch:nth-child(2) {
  background: #c6863d;
}
.collection-piece-palette--922 .collection-piece-swatch:nth-child(3) {
  background: #1a1a1e;
}
.collection-piece-palette--922 .collection-piece-swatch:nth-child(4) {
  background: #ffcc33;
}
.collection-piece-palette--922 .collection-piece-swatch:nth-child(5) {
  background: #ffffff;
}

.collection-piece-palette--5545 .collection-piece-swatch:nth-child(1) {
  background: #f5b8d8;
}
.collection-piece-palette--5545 .collection-piece-swatch:nth-child(2) {
  background: #c6863d;
}
.collection-piece-palette--5545 .collection-piece-swatch:nth-child(3) {
  background: #1a1a1e;
}
.collection-piece-palette--5545 .collection-piece-swatch:nth-child(4) {
  background: #6cf0ff;
}
.collection-piece-palette--5545 .collection-piece-swatch:nth-child(5) {
  background: #ffcc33;
}

.collection-piece-palette--9338 .collection-piece-swatch:nth-child(1) {
  background: #c4b5e8;
}
.collection-piece-palette--9338 .collection-piece-swatch:nth-child(2) {
  background: #5ec8e8;
}
.collection-piece-palette--9338 .collection-piece-swatch:nth-child(3) {
  background: #ffd54a;
}
.collection-piece-palette--9338 .collection-piece-swatch:nth-child(4) {
  background: #b0b8c4;
}
.collection-piece-palette--9338 .collection-piece-swatch:nth-child(5) {
  background: #ffcc33;
}

.collection-piece-palette--7287 .collection-piece-swatch:nth-child(1) {
  background: #c4b5e8;
}
.collection-piece-palette--7287 .collection-piece-swatch:nth-child(2) {
  background: #ffffff;
}
.collection-piece-palette--7287 .collection-piece-swatch:nth-child(3) {
  background: #1a1a1e;
}
.collection-piece-palette--7287 .collection-piece-swatch:nth-child(4) {
  background: #ffcc33;
}
.collection-piece-palette--7287 .collection-piece-swatch:nth-child(5) {
  background: #8a8a94;
}

.collection-piece-palette--6232 .collection-piece-swatch:nth-child(1) {
  background: #f5e64a;
}
.collection-piece-palette--6232 .collection-piece-swatch:nth-child(2) {
  background: #3a6cb8;
}
.collection-piece-palette--6232 .collection-piece-swatch:nth-child(3) {
  background: #d4a41e;
}
.collection-piece-palette--6232 .collection-piece-swatch:nth-child(4) {
  background: #ffffff;
}
.collection-piece-palette--6232 .collection-piece-swatch:nth-child(5) {
  background: #1a1a1e;
}

.collection-piece-palette--112 .collection-piece-swatch:nth-child(1) {
  background: #f5e6a8;
}
.collection-piece-palette--112 .collection-piece-swatch:nth-child(2) {
  background: #4ad4e8;
}
.collection-piece-palette--112 .collection-piece-swatch:nth-child(3) {
  background: #ffcc33;
}
.collection-piece-palette--112 .collection-piece-swatch:nth-child(4) {
  background: #e8a04a;
}
.collection-piece-palette--112 .collection-piece-swatch:nth-child(5) {
  background: #9040c0;
}

.collection-piece-palette--727 .collection-piece-swatch:nth-child(1) {
  background: #f5e6a8;
}
.collection-piece-palette--727 .collection-piece-swatch:nth-child(2) {
  background: #8a8a94;
}
.collection-piece-palette--727 .collection-piece-swatch:nth-child(3) {
  background: #1a1a1e;
}
.collection-piece-palette--727 .collection-piece-swatch:nth-child(4) {
  background: #ffcc33;
}
.collection-piece-palette--727 .collection-piece-swatch:nth-child(5) {
  background: #ffffff;
}

.collection-piece-palette--3820 .collection-piece-swatch:nth-child(1) {
  background: #e87878;
}
.collection-piece-palette--3820 .collection-piece-swatch:nth-child(2) {
  background: #e8a050;
}
.collection-piece-palette--3820 .collection-piece-swatch:nth-child(3) {
  background: #ffdd22;
}
.collection-piece-palette--3820 .collection-piece-swatch:nth-child(4) {
  background: #ff9ec8;
}
.collection-piece-palette--3820 .collection-piece-swatch:nth-child(5) {
  background: #c0c8d0;
}

.collection-piece-caption {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.collection-piece-caption-link {
  color: var(--pfp-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.collection-piece-caption-link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
  text-shadow: 0 0 10px color-mix(in srgb, var(--pfp-gold) 35%, transparent);
}

.collection-market-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--pfp-green) 55%, transparent);
  background: color-mix(in srgb, var(--pfp-green) 14%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--pfp-green) 12%, transparent);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.collection-market-btn:hover {
  border-color: var(--pfp-green);
  background: color-mix(in srgb, var(--pfp-green) 22%, transparent);
  box-shadow: 0 0 32px color-mix(in srgb, var(--pfp-green) 22%, transparent);
  color: var(--accent-bright);
}

.collection-market-btn:focus-visible {
  outline: 2px solid var(--pfp-gold);
  outline-offset: 3px;
}

/* Motion Mafia Doggy Run — compact secondary CTA (~half the primary control size) */
.collection-market-btn--doggy-run {
  min-height: 24px;
  padding: 0.28rem 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  border-color: color-mix(in srgb, var(--pfp-gold) 50%, transparent);
  background: color-mix(in srgb, var(--pfp-gold) 10%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--pfp-gold) 10%, transparent);
}

.collection-market-btn--doggy-run:hover {
  border-color: var(--pfp-gold);
  background: color-mix(in srgb, var(--pfp-gold) 18%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--pfp-gold) 18%, transparent);
}

/* —— sam meta x motion layer (pointer glow + home entrance + depth) —— */
@media (prefers-reduced-motion: no-preference) {
  .page-home .hero-brand-wrap {
    animation: sammetax-hero-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.04s;
  }

  .page-home .hero-brand-logo {
    animation: sammetax-hero-float 9s ease-in-out 1.15s infinite alternate;
  }

  .page-home .hero-brand-link:hover .hero-brand-logo {
    animation-play-state: paused;
  }

  .page-home .hero-headline--home.hero-headline--pair .hero-headline-line:nth-child(1) {
    animation: sammetax-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.18s;
  }

  .page-home .hero-headline--home.hero-headline--pair .hero-headline-sep {
    animation: sammetax-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.28s;
  }

  .page-home .hero-headline--home.hero-headline--pair .hero-headline-line:nth-child(3) {
    animation: sammetax-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.38s;
  }
}

/* Desktop only — spinning dashed frames around hero PFP */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .page-home .hero-brand-link {
    position: relative;
  }

  .page-home .hero-brand-link::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 17px;
    border: 2px dashed var(--palette-cyan);
    opacity: 0.65;
    pointer-events: none;
    animation: sammetax-orbit-spin 32s linear infinite;
  }

  .page-home .hero-brand-link::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 22px;
    border: 2px solid var(--palette-pink);
    opacity: 0.55;
    pointer-events: none;
    animation: sammetax-orbit-spin-reverse 48s linear infinite;
  }
}

/* Mobile — chromatic “signal” halo (no spinning squares) */
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .page-home .hero-brand-wrap {
    position: relative;
    isolation: isolate;
  }

  .page-home .hero-brand-wrap::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -14% -10% -18% -10%;
    border-radius: 50%;
    pointer-events: none;
    background:
      radial-gradient(
        ellipse 55% 45% at 35% 30%,
        color-mix(in srgb, var(--palette-pink) 55%, transparent),
        transparent 72%
      ),
      radial-gradient(
        ellipse 50% 40% at 72% 65%,
        color-mix(in srgb, var(--palette-cyan) 50%, transparent),
        transparent 70%
      ),
      conic-gradient(
        from 210deg,
        color-mix(in srgb, var(--palette-mint) 45%, transparent),
        color-mix(in srgb, var(--palette-pink) 40%, transparent),
        color-mix(in srgb, var(--palette-yellow) 35%, transparent),
        color-mix(in srgb, var(--palette-cyan) 42%, transparent),
        color-mix(in srgb, var(--palette-mint) 45%, transparent)
      );
    opacity: 0.62;
    filter: blur(20px) saturate(1.15);
    transform-origin: 50% 45%;
    animation: sammetax-pfp-halo-breathe 5.5s ease-in-out infinite;
  }

  .page-home .hero-brand-link {
    position: relative;
    z-index: 1;
  }

  .page-home .hero-home-palette {
    position: relative;
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .page-home .hero-brand-wrap {
    position: relative;
    isolation: isolate;
  }

  .page-home .hero-brand-wrap::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -12% -8% -16% -8%;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
      ellipse 70% 60% at 50% 42%,
      color-mix(in srgb, var(--palette-mint) 22%, transparent),
      transparent 68%
    );
    opacity: 0.4;
    filter: blur(18px);
  }

  .page-home .hero-brand-link {
    position: relative;
    z-index: 1;
  }

  .page-home .hero-home-palette {
    position: relative;
    z-index: 1;
  }
}

@keyframes sammetax-hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sammetax-hero-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}

@keyframes sammetax-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sammetax-orbit-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes sammetax-pfp-halo-breathe {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.55;
  }
  40% {
    transform: rotate(140deg) scale(1.08);
    opacity: 0.72;
  }
  70% {
    transform: rotate(260deg) scale(1.03);
    opacity: 0.62;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .collection-piece-frame {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  }

  .collection-piece-frame:hover {
    transform: perspective(900px) rotateX(2.5deg) rotateY(-3deg) translateZ(0);
    filter: drop-shadow(0 16px 28px color-mix(in srgb, var(--pfp-pink) 12%, transparent));
  }

  .collection-piece--featured .collection-piece-frame:hover {
    transform: perspective(1000px) rotateX(1.5deg) rotateY(-2deg);
  }
}

