/* duvalx — 8 discrete swatches (no single blended wash; see .palette-strip + per-control colors) */
:root {
  /* Raw swatches — each used visibly on its own somewhere in the UI */
  --palette-pink: #f9a8d4;
  --palette-mint: #99f6a4;
  --palette-cream: #fde68a;
  --palette-coral: #fb7185;
  --palette-yellow: #facc15;
  --palette-cyan: #67e8f9;
  --palette-lime: #86efac;
  --palette-gold: #fde047;

  /* 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-cyan);
  --pfp-green: var(--palette-lime);
  --pfp-gold: var(--palette-coral);
  --pfp-gold-band: var(--palette-gold);
  --pizza-mint: var(--palette-mint);
  --pizza-cheese: var(--palette-gold);
  --pizza-tomato: var(--palette-coral);
  --pizza-crust: #292524;

  --bg-base: #ffffff;
  --bg-deep: #ffffff;
  --bg-elevated: #ffffff;
  --surface-inset: #f5f2ed;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: var(--palette-coral);
  --accent-bright: var(--palette-yellow);
  --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);
}

*,
*::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;
  --bg-base: #000000;
  --bg-deep: #000000;
  --bg-elevated: #16181c;
  --surface-inset: #1e2730;
  --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);
}

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

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;
}

@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: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  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):nth-child(6)::after {
    background: var(--palette-lime);
  }

  .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 .nav-link-csn {
  border: 2px solid var(--palette-gold);
  background: var(--palette-yellow);
  color: #1c1917;
}

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

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

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

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

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

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

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

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

.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;
  }
}

.mobile-nav {
  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(--bg-elevated);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav 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 a:last-child {
  border-bottom: none;
}

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: bottom CTA bar replaces powered-by footer — avoid flex-stretch
   that can make the section + footer interact oddly with scroll/min-height. */
.page-collection main {
  min-height: 0;
}

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

.page-collection .collection-footer-cta {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

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

.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;
}

.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-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: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35em 0.5em;
  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--home .hero-headline-line,
.page-home .hero-headline--home .hero-headline-line--mid,
.page-home .hero-headline--home .hero-headline-line--accent {
  white-space: nowrap;
}

/* 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-lime);
}

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

.page-home .hero-bg-layers {
  background: var(--palette-cream);
}

.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);
}

.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);
}

/* 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) + 6px);
}

.page-bio main > .section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--palette-strip-vertical);
  border-radius: 0 4px 4px 0;
  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-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(34rem, 100%);
}

@media (max-width: 520px) {
  .bio-images--duo {
    gap: 0.5rem 0.65rem;
  }
}

.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-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);
}

.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-typemedia-wrap {
  margin: 0 0 1.35rem;
  text-align: center;
}

.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;
}

/* Palette under bio copy — matches collection card strips (e.g. Doginal #6541) */
.bio-content-panel .collection-piece-palette {
  margin-top: 1.5rem;
}

/* Hop on 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: 28rem;
}

.duval-shop-card {
  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: center;
}

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

.duval-shop-image-link {
  display: block;
  line-height: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.15rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.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 {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.duval-shop-product-title {
  margin: 0 0 0.35rem;
  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);
}

.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;
}

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

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

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

.duval-shop-wallet-hint {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  word-break: break-all;
}

.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-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-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));
  justify-self: center;
}

.collection-grid--dogs:not(.collection-grid--dogs-nine) {
  align-items: start;
}

.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-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--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-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;
}

/* 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;
}

/* 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;
}

.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);
}

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

  .page-home .hero-brand-logo {
    animation: duvalx-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-line:nth-child(1) {
    animation: duvalx-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.18s;
  }

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

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

  .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-lime);
    opacity: 0.65;
    pointer-events: none;
    animation: duvalx-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: duvalx-orbit-spin-reverse 48s linear infinite;
  }
}

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

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

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

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

@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);
  }
}

