:root {
  --ink: #131022;
  --ink-deep: #0b0917;
  --panel: #1e1933;
  --violet: #3713ec;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
}

button, a { font: inherit; }
button { color: inherit; }

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

.gallery-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 8%, rgba(55, 19, 236, 0.14), transparent 27rem),
    radial-gradient(circle at 4% 38%, rgba(26, 56, 118, 0.14), transparent 34rem),
    linear-gradient(180deg, #131022 0%, #0c0b18 55%, #131022 100%);
}

.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.34) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(151,136,255,.26) 0 1px, transparent 1.5px);
  background-position: 0 0, 83px 47px;
  background-size: 173px 173px, 251px 251px;
  mask-image: linear-gradient(to bottom, black, transparent 38%);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  min-height: 65px;
  padding: 12px clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 16, 34, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.desktop-nav { display: flex; align-items: center; gap: 34px; }
.desktop-nav a, .mobile-menu a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .25s ease;
}
.desktop-nav a:hover, .desktop-nav a.active, .mobile-menu a:hover, .mobile-menu a.active { color: white; }
.desktop-nav a.active { position: relative; }
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%; bottom: -12px;
  height: 1px;
  background: rgba(178, 168, 255, .9);
  box-shadow: 0 0 8px rgba(104, 77, 255, .8);
}
.desktop-nav .gallery-nav-dropdown summary {
  position: relative;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 500;
}
.desktop-nav .gallery-nav-dropdown summary.active { color: white; }
.desktop-nav .gallery-nav-dropdown summary.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 1px;
  height: 1px;
  background: rgba(178, 168, 255, .9);
  box-shadow: 0 0 8px rgba(104, 77, 255, .8);
}

.desktop-nav .opensea-link, .mobile-menu .opensea-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--violet);
  color: white;
  font-weight: 700;
}
.desktop-nav .opensea-link:hover, .mobile-menu .opensea-link:hover { background: #4828ee; }

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

main { position: relative; z-index: 1; }

.gallery-hero {
  min-height: 600px;
  padding: 165px 24px 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 29px;
  color: rgba(194, 188, 255, .65);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .29em;
}

.gallery-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.018em;
  text-shadow: 0 0 38px rgba(121, 95, 255, .15);
}
.gallery-hero h1 span {
  display: block;
  margin-bottom: 13px;
  color: rgba(255,255,255,.35);
  font-size: .27em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .42em;
  transform: translateX(.21em);
}

.hero-line {
  margin: 33px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.85;
  letter-spacing: .2em;
}
.hero-description {
  margin: 20px 0 0;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  line-height: 1.8;
}
.hero-scroll {
  position: relative;
  display: flex;
  width: 44px;
  height: 88px;
  margin-top: 44px;
  align-items: flex-start;
  justify-content: center;
  color: rgba(184, 174, 255, .75);
  text-decoration: none;
}
.hero-scroll-track {
  position: relative;
  display: block;
  width: 1px;
  height: 72px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(157,142,255,.42), rgba(157,142,255,.08));
}
.hero-scroll-track::after {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(211,205,255,.98));
  box-shadow: 0 0 8px rgba(126,102,255,.85);
  animation: scroll-light 2s cubic-bezier(.45, 0, .55, 1) infinite;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-arrow 2s ease-in-out infinite;
}
.hero-scroll:hover { color: rgba(225,221,255,.96); }
.hero-scroll:focus-visible {
  outline: 1px solid rgba(184,174,255,.72);
  outline-offset: 5px;
  border-radius: 2px;
}

.collection {
  width: min(100% - 48px, 1340px);
  margin: 0 auto;
  padding-bottom: 132px;
  scroll-margin-top: 90px;
}

.collection-heading {
  margin: 0 auto 62px;
  text-align: center;
}
.collection-heading > p:first-child {
  margin: 0 0 17px;
  color: rgba(194,188,255,.53);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .24em;
}
.collection-heading > p:first-child span { color: rgba(255,255,255,.28); }
.collection-heading h2 {
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(25px, 3.5vw, 43px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.collection-heading h2 i {
  color: rgba(155,142,248,.42);
  font-family: inherit;
  font-size: .72em;
  font-style: normal;
  font-weight: 400;
}
.collection-heading h2 span {
  color: rgba(255,255,255,.62);
  font-weight: 400;
}
.collection-heading-copy {
  margin: 15px 0 0;
  color: rgba(255,255,255,.32);
  font-size: 11px;
  letter-spacing: .12em;
}

.collection-status {
  max-width: 780px;
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.status-item {
  position: relative;
  padding: 29px 12px 27px;
  text-align: center;
}
.status-item + .status-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%; bottom: 24%;
  width: 1px;
  background: var(--line);
}
.status-item strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -.025em;
}
.status-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .25em;
}

.gallery-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 2px 16px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  cursor: pointer;
  transition: color .25s ease;
}
.filter-button::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 50%; right: 50%; bottom: -1px;
  background: rgba(176,164,255,.95);
  box-shadow: 0 0 8px rgba(91,61,255,.75);
  transition: left .25s ease, right .25s ease;
}
.filter-button:hover, .filter-button.active { color: white; }
.filter-button.active::after { left: 0; right: 0; }
.view-count {
  flex: 0 0 auto;
  margin: 0 0 17px;
  color: rgba(255,255,255,.34);
  font-size: 9px;
  letter-spacing: .17em;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(13px, 1.55vw, 22px);
}
.art-card {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(30, 25, 51, .34);
  color: white;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: card-in .55s ease forwards;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.art-card:hover, .art-card:focus-visible {
  outline: none;
  border-color: rgba(159, 143, 255, .34);
  box-shadow: 0 0 24px rgba(55, 19, 236, .12);
}
.art-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0c0a18;
}
.art-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.art-card:hover .art-image { transform: scale(1.035); }
.art-card.is-minted .art-image { filter: brightness(.78) saturate(.85); }
.minted-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 5px 7px;
  border: 1px solid rgba(220,216,255,.24);
  border-radius: 3px;
  background: rgba(14,12,28,.62);
  backdrop-filter: blur(8px);
  color: rgba(235,232,255,.9);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
}
.art-meta {
  display: flex;
  width: 100%;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px 9px;
  background: rgba(19, 16, 34, .72);
}
.card-number {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.card-number-label {
  display: block;
  color: rgba(255,255,255,.3);
  font-size: 6px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .13em;
}
.art-id {
  display: block;
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
}
.art-status {
  color: rgba(255,255,255,.4);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .14em;
}
.is-minted .art-status, .art-status.minted { color: rgba(194,188,255,.8); }

.load-more-wrap { display: flex; justify-content: center; padding-top: 58px; }
.load-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 23px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.load-more:hover { color: white; border-color: rgba(151,136,255,.42); background: rgba(55,19,236,.08); }
.load-more svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.load-more[hidden] { display: none; }

.site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  padding: 29px 16px 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer p { margin: 0; color: rgba(255,255,255,.5); font-size: 12px; }

.art-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.art-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: rgba(5,4,12,.82);
  backdrop-filter: blur(13px);
  cursor: default;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px, max(210px, calc(100dvh - 174px)));
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(21,17,39,.94);
  box-shadow: 0 22px 80px rgba(0,0,0,.58), 0 0 48px rgba(55,19,236,.12);
  transform: translateY(9px) scale(.99);
  transition: transform .35s ease;
}
.art-modal.open .modal-panel { transform: none; }
.modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: rgba(12,10,24,.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-close svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.modal-image-wrap { aspect-ratio: 1; overflow: hidden; border-radius: 5px; background: #0c0a18; }
.modal-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.modal-meta { display: flex; align-items: center; justify-content: space-between; padding: 17px 9px 9px; }
.modal-number span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.3);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .18em;
}
.modal-meta h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .12em; }
.modal-meta .art-status { font-size: 9px; }
.modal-traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 5px 9px 9px;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.modal-traits div {
  min-width: 0;
  padding: 14px 12px 13px;
}
.modal-traits div:first-child { padding-left: 0; }
.modal-traits div + div { border-left: 1px solid rgba(255,255,255,.08); }
.modal-traits dt {
  margin: 0 0 7px;
  color: rgba(194,188,255,.52);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.modal-traits dd {
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.77);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
}
.noscript-message { text-align: center; color: var(--muted); }

@keyframes scroll-light {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  72% { opacity: 1; }
  100% { transform: translateY(100px); opacity: 0; }
}

@keyframes scroll-arrow {
  0%, 100% { opacity: .3; transform: translateY(-2px) rotate(45deg); }
  55% { opacity: 1; transform: translateY(2px) rotate(45deg); }
}

@keyframes card-in { to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .art-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .art-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .desktop-nav { gap: 22px; }
}

@media (max-width: 767px) {
  .site-header { min-height: 57px; padding: 8px 20px; }
  .brand { font-size: 16px; }
  .desktop-nav { display: none; }
  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-button svg { grid-area: 1 / 1; width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: opacity .25s ease, transform .25s ease; }
  .menu-close-icon { opacity: 0; transform: rotate(-45deg); }
  .menu-button.open .menu-open-icon { opacity: 0; transform: rotate(45deg); }
  .menu-button.open .menu-close-icon { opacity: 1; transform: none; }
  .mobile-menu {
    position: fixed;
    z-index: 45;
    display: block;
    top: 57px; right: 0;
    width: min(78vw, 288px);
    height: calc(100dvh - 57px);
    padding: 29px 24px;
    border-left: 1px solid var(--line);
    background: rgba(19,16,34,.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 10px; }
  .mobile-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 16px; }
  .mobile-menu .gallery-nav-dropdown summary { color: rgba(255,255,255,.82); font-size: 16px; font-weight: 500; }
  .mobile-menu .gallery-nav-dropdown summary.active { color: white; }
  .mobile-menu .gallery-nav-menu a { min-height: 0; padding: 2px 0; font-size: 13px; }
  .mobile-menu .opensea-link { margin-top: 16px; }

  .gallery-hero { min-height: 570px; padding: 137px 20px 83px; }
  .collection { width: min(100% - 32px, 1340px); padding-bottom: 92px; }
  .collection-status { margin-bottom: 67px; }
  .collection-heading { margin-bottom: 47px; }
  .status-item { padding: 23px 5px 21px; }
  .gallery-toolbar { align-items: flex-end; gap: 16px; }
  .filters { gap: 23px; }
  .view-count { display: none; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 560px) {
  .gallery-hero { min-height: 545px; padding-top: 125px; }
  .gallery-hero h1 { font-size: clamp(35px, 10.5vw, 48px); }
  .gallery-hero h1 span { letter-spacing: .34em; }
  .hero-line { margin-top: 28px; font-size: 10px; }
  .hero-description { font-size: 12px; }
  .collection-status { margin-bottom: 58px; }
  .status-item strong { font-size: 23px; }
  .status-item span { font-size: 7px; letter-spacing: .17em; }
  .art-grid { gap: 11px; }
  .art-meta { padding: 10px 9px; }
  .art-id { font-size: 11px; }
  .card-number-label { font-size: 5px; }
  .art-status { font-size: 7px; letter-spacing: .1em; }
  .minted-badge { top: 7px; right: 7px; font-size: 7px; }
  .load-more-wrap { padding-top: 43px; }
  .site-footer { width: calc(100% - 32px); }
  .art-modal { padding: 8px; }
  .modal-panel { width: min(94vw, 620px, max(200px, calc(100dvh - 166px))); padding: 8px; }
  .modal-traits div { padding: 12px 8px 11px; }
  .modal-traits dt { font-size: 7px; letter-spacing: .1em; }
  .modal-traits dd { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-scroll-track::after { top: 20px; opacity: .8; transform: none; }
  .hero-scroll::after { opacity: .8; transform: rotate(45deg); }
}
