:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --text: #0c0c0c;
  --text-muted: #4a4a4a;
  --green: #0f6b45;
  --green-soft: rgba(15, 107, 69, 0.1);
  --yellow: #b8860b;
  --yellow-soft: rgba(184, 134, 11, 0.12);
  --border: #e5e5e5;
  --font: "Kode Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 4px;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--yellow));
  z-index: 9999;
  pointer-events: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 3px;
}

.logo-text {
  line-height: 1;
}

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

.logo:hover .logo-mark {
  opacity: 0.9;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav a {
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--yellow);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 10vw, 6rem);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr min(38vw, 420px);
    gap: 3rem 4rem;
  }
}

.hero-label {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.pill {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.pill--green {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.pill--outline {
  background: transparent;
  color: var(--text-muted);
}

.pill--yellow {
  background: var(--yellow-soft);
  border-color: var(--yellow);
  color: var(--yellow);
}

.hero-manifesto {
  margin: 0 0 1.25rem;
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-manifesto-line {
  display: block;
}

.hero-manifesto-line--drift {
  color: var(--text);
  font-weight: 500;
  margin-top: 0.35rem;
  padding-left: 0.55rem;
  border-left: 3px solid var(--green);
}

.hero-intro {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 1rem;
}

.hero-title-word {
  display: inline-block;
}

.hero-souls {
  margin: 0 0 1.1rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.5;
}

.eth-chip {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid var(--green);
  background: var(--green-soft);
  border-radius: 3px;
}

.hero-desc {
  margin: 0 0 1.75rem;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s,
    border-color 0.2s, box-shadow 0.2s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover:not(:disabled) {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(15, 107, 69, 0.25);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow-soft);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-coming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: default;
  pointer-events: none;
  opacity: 0.95;
}

.btn-coming .btn-icon-opensea {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.mint-fact-opensea {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mint-fact-opensea img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  opacity: 0.85;
}

.hero-panel {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  max-width: min(100%, 22rem);
  justify-self: center;
}

@media (min-width: 900px) {
  .hero-panel {
    justify-self: end;
    max-width: min(100%, 24rem);
  }
}

.hero-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--yellow));
  z-index: 1;
  pointer-events: none;
}

.hero-panel-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.35rem 1.5rem 1.65rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-panel-tag {
  align-self: flex-end;
}

.hero-panel-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.hero-panel-art img {
  width: 100%;
  max-width: 280px;
  max-height: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transition: opacity 0.45s var(--ease);
}

.hero-panel-quote {
  margin: 0;
  margin-top: auto;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-family: var(--font);
}

.panel-freemint-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  border: 1px solid var(--green);
  background: var(--green-soft);
  color: var(--green);
}

/* Stats */
.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--bg);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* Story */
.block-header {
  margin-bottom: 2rem;
}

.block-header--spread {
  margin-bottom: 2.25rem;
}

.block-kicker {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.block-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.block-lede {
  margin: 0.75rem 0 0;
  max-width: 32em;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.story-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .story-card--wide {
    grid-column: 1 / -1;
  }
}

.story-card {
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.story-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.story-card strong,
.story-card em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.story-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.85rem;
}

.story-accent {
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  flex-shrink: 0;
}

.story-accent--green {
  background: var(--green);
}

.story-accent--yellow {
  background: var(--yellow);
}

/* Gallery — stage + filmstrip */
.gallery-section {
  border-top: 1px solid var(--border);
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
}

.gallery-section .section-inner {
  position: relative;
  z-index: 1;
}

.gallery-shell {
  padding: 0.25rem 0 1.5rem;
}

.gallery-viewer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: min(34rem, 92vw);
  margin: 0 auto;
}

.gallery-stage-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--radius);
  text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-stage-open:hover,
.gallery-stage-open:focus-visible {
  transform: translateY(-3px);
  outline: none;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(15, 107, 69, 0.25);
}

.gallery-stage-frame {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.gallery-stage-layers {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.gallery-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.gallery-stage-img--visible {
  opacity: 1;
  z-index: 1;
}

.gallery-filmstrip-wrap {
  position: relative;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

.gallery-filmstrip-wrap::before,
.gallery-filmstrip-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2rem;
  z-index: 2;
  pointer-events: none;
}

.gallery-filmstrip-wrap::before {
  left: 0.5rem;
  background: linear-gradient(90deg, var(--bg-soft), transparent);
}

.gallery-filmstrip-wrap::after {
  right: 0.5rem;
  background: linear-gradient(-90deg, var(--bg-soft), transparent);
}

.gallery-filmstrip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.25rem 0.65rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.gallery-filmstrip::-webkit-scrollbar {
  height: 5px;
}

.gallery-filmstrip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  scroll-snap-align: start;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

@media (min-width: 480px) {
  .gallery-thumb {
    width: 5.25rem;
    height: 5.25rem;
  }
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88);
  transition: filter 0.25s;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  filter: saturate(1);
}

.gallery-thumb.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--yellow), 0 4px 14px rgba(15, 107, 69, 0.2);
}

.gallery-thumb.is-selected img {
  filter: saturate(1.05);
}

/* Whitelist checker */
.whitelist {
  border-top: 1px solid var(--border);
}

.wl-form {
  max-width: 38rem;
}

.wl-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.wl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
}

.wl-input {
  flex: 1;
  min-width: min(100%, 14rem);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
}

.wl-input::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.wl-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}

.wl-submit {
  flex-shrink: 0;
  min-width: 6.5rem;
}

.wl-result {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-soft);
}

.wl-result--yes {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.wl-result--no {
  color: var(--text-muted);
}

.wl-result--error {
  color: #9a2b2b;
  border-color: rgba(154, 43, 43, 0.35);
  background: rgba(154, 43, 43, 0.06);
}

.wl-result--neutral {
  color: var(--text-muted);
}

/* Mint */
.mint {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.mint-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 880px) {
  .mint-inner {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }
}

.mint-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 38em;
  line-height: 1.75;
}

.mint-facts {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 500px) {
  .mint-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.mint-fact {
  margin: 0;
}

.mint-fact dt {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 0.35rem;
}

.mint-fact dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.mint-fact-note {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-mint {
  width: 100%;
  max-width: 300px;
}

.mint-note {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mint-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.mint-aside::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--yellow));
}

.mint-aside-inner {
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mint-aside-tag {
  align-self: flex-end;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
}

.mint-aside-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.mint-aside-art img {
  width: 100%;
  max-width: 220px;
  max-height: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mint-aside-quote {
  margin: 0;
  margin-top: auto;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

/* Footer */
.site-footer {
  padding: 1.75rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.footer-dot {
  opacity: 0.35;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.65rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  border-color: var(--green);
  color: var(--green);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.65rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.lightbox-nav:hover {
  background: var(--text);
  color: var(--bg);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.lightbox-content {
  max-width: min(92vw, 760px);
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: min(72vh, 680px);
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.1);
}

.lightbox-caption {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lightbox-caption:empty {
  display: none;
  margin: 0;
}

@media (max-width: 720px) {
  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
    min-height: 44px;
    min-width: 44px;
    padding: 0.65rem 0.85rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-close {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 639px) {
  .site-header {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    row-gap: 0.5rem;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .hero {
    padding: 1.75rem 1rem 2.5rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero-inner {
    gap: 1.75rem;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 3.25rem);
    word-break: break-word;
  }

  .hero-panel {
    max-width: 100%;
    width: 100%;
    justify-self: stretch;
  }

  .hero-panel-inner {
    min-height: 240px;
    padding: 1.25rem 1.1rem 1.25rem 1.35rem;
  }

  .hero-panel-art img {
    max-width: min(260px, 85vw);
    max-height: min(260px, 85vw);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .stat {
    padding: 1rem 0.65rem;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .mint-inner {
    gap: 2rem;
  }

  .mint-aside {
    min-height: 280px;
  }

  .wl-row {
    flex-direction: column;
  }

  .wl-input {
    min-height: 48px;
    width: 100%;
  }

  .wl-submit {
    width: 100%;
    min-height: 48px;
  }

  .gallery-thumb {
    width: 4rem;
    height: 4rem;
  }

  .site-footer {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-panel-art img {
    transition: none !important;
  }

  .gallery-stage-img,
  .gallery-stage-open,
  .gallery-thumb,
  .gallery-thumb img,
  .btn {
    transition: none !important;
  }

  .gallery-stage-open:hover,
  .gallery-stage-open:focus-visible {
    transform: none;
  }

  .gallery-thumb:hover {
    transform: none;
  }
}
