@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Space+Mono:wght@400;700&family=Syne:wght@500;600;700;800&family=Unbounded:wght@500;600;700&display=swap");

:root {
  --accent: #caff4a;
  --accent-2: #ff8157;
  --surface: #11130f;
  --ink: #f4f5eb;
  --muted: #a0a79b;
  --line: rgba(244, 245, 235, 0.16);
  --panel: rgba(20, 23, 18, 0.88);
  --panel-solid: #171a15;
  --danger: #ff8068;
  --mono: "DM Mono", "SFMono-Regular", Menlo, monospace;
  --display: "Syne", "Helvetica Neue", "PingFang SC", sans-serif;
  --display-tight: "Syne", "Helvetica Neue", "PingFang SC", sans-serif;
}

html[data-theme="cyber"] {
  --display: "Unbounded", "PingFang SC", sans-serif;
  --display-tight: "Unbounded", "PingFang SC", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Menlo, monospace;
}

html[data-theme="mecha"] {
  --display: "Chakra Petch", "PingFang SC", sans-serif;
  --display-tight: "Chakra Petch", "PingFang SC", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Menlo, monospace;
}

html[data-theme="botanical"] {
  --display: "Fraunces", "Songti SC", serif;
  --display-tight: "Fraunces", "Songti SC", serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;
}

html[data-theme="cosmic"] {
  --display: "Syne", "PingFang SC", sans-serif;
  --display-tight: "Syne", "PingFang SC", sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;
}

html[data-theme="pixel"] {
  --display: "Chakra Petch", "PingFang SC", sans-serif;
  --display-tight: "Space Mono", "SFMono-Regular", Menlo, monospace;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #0c0e0b;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 2%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 32rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #0c0e0b;
  background-size: auto, 36px 36px, 36px 36px, auto;
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(105deg, #0c0e0b 0%, rgba(12, 14, 11, 0.94) 48%, rgba(12, 14, 11, 0.55) 100%),
    url("/preview.svg") center / cover no-repeat;
  opacity: 0.44;
  filter: saturate(0.7);
}

html[data-theme="cyber"] body {
  background:
    linear-gradient(115deg, transparent 0 48%, color-mix(in srgb, var(--accent) 8%, transparent) 48% 49%, transparent 49%),
    radial-gradient(circle at 78% 2%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 31rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    #090c0c;
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

html[data-theme="mecha"] body {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 119px,
      rgba(255, 255, 255, 0.025) 119px 120px
    ),
    radial-gradient(circle at 78% 4%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 28rem),
    #0d0d0b;
}

html[data-theme="botanical"] body {
  background:
    radial-gradient(ellipse at 85% 4%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 26rem),
    radial-gradient(ellipse at 8% 55%, color-mix(in srgb, var(--accent-2) 11%, transparent), transparent 32rem),
    #0c100b;
}

html[data-theme="cosmic"] body {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 30rem),
    #080815;
  background-size: 97px 97px, 151px 151px, auto, auto;
}

html[data-theme="pixel"] body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 2px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.035) 2px, transparent 2px),
    radial-gradient(circle at 80% 0, color-mix(in srgb, var(--accent) 18%, transparent), transparent 27rem),
    #0b0d0a;
  background-size: 24px 24px, 24px 24px, auto, auto;
}

html[data-theme="cyber"] .preview-frame {
  clip-path: polygon(0 0, 94% 0, 100% 6%, 100% 100%, 6% 100%, 0 94%);
}

html[data-theme="mecha"] .mint-panel,
html[data-theme="mecha"] .state-panel,
html[data-theme="mecha"] .preview-frame,
html[data-theme="pixel"] .mint-panel,
html[data-theme="pixel"] .state-panel {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

html[data-theme="mecha"] .brand-mark,
html[data-theme="pixel"] .brand-mark {
  clip-path: none;
  border-radius: 3px;
}

html[data-theme="botanical"] .preview-frame {
  border-radius: 48% 12% 46% 15% / 13% 43% 15% 49%;
}

html[data-theme="botanical"] .primary-link,
html[data-theme="botanical"] .mint-button,
html[data-theme="botanical"] .sticky-mint a {
  border-radius: 999px;
}

html[data-theme="cosmic"] .preview-frame {
  border-radius: 50%;
}

html[data-theme="cosmic"] .corner-note {
  border-radius: 999px;
}

html[data-theme="pixel"] .preview-frame {
  image-rendering: pixelated;
  transform: rotate(1deg);
}

html[data-theme="pixel"] .gallery img {
  image-rendering: pixelated;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #111;
  background: var(--accent);
}

.boot {
  display: grid;
  min-height: 100vh;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.fatal {
  max-width: 640px;
  margin: 12vh auto;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.fatal h1 {
  margin-top: 0;
  font-size: clamp(30px, 6vw, 58px);
}

.site-head {
  position: relative;
  z-index: 20;
  display: grid;
  max-width: 1280px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 24px 28px;
}

.brand {
  display: flex;
  min-width: 0;
  width: max-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand > span {
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand small {
  max-width: 260px;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.wallet-button {
  justify-self: end;
  min-width: 142px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.wallet-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.hero {
  display: grid;
  max-width: 1280px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 8vw, 112px);
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 42px 28px 96px;
}

.hero > *,
.mint-grid > *,
.guide-grid > *,
.gallery > *,
.protocol-grid > *,
.faq-list > * {
  min-width: 0;
}

.eyebrow,
.section-label,
.mint-panel small,
.state-head,
.cost-block small,
.quantity-row > span,
.agent-note,
.project-foot,
.site-head small {
  font-family: var(--mono);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
  animation: breathe 2.8s ease-in-out infinite;
}

.hero h1 {
  max-width: 900px;
  margin: 22px 0 24px;
  font-size: clamp(64px, 10.2vw, 156px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.8;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  max-width: 680px;
  margin: 0;
  color: #c7ccc2;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.6;
}

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 36px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.fact-strip span {
  flex: 1 1 120px;
  padding: 13px 15px;
  color: var(--muted);
  background: rgba(12, 14, 11, 0.86);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-strip b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 15px 19px;
  color: #0d0f0c;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.secondary-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-underline-offset: 5px;
}

.secondary-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.primary-link:hover {
  transform: translateY(-2px);
}

.primary-link span {
  font-size: 20px;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
}

.preview-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent 55%),
    var(--panel-solid);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.018),
    0 38px 100px rgba(0, 0, 0, 0.48);
  transform: rotate(2.2deg);
}

.preview-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corner-note {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
  padding: 6px 8px;
  color: #0d0f0c;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.orbit-line {
  position: absolute;
  z-index: -1;
  top: 6%;
  left: -10%;
  width: 122%;
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--accent-2) 45%, transparent);
  border-radius: 50%;
  animation: spin 36s linear infinite;
}

.hero-copy > * {
  animation: rise-in 650ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 70ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 140ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 210ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 280ms;
}

.hero-art {
  animation: art-in 900ms cubic-bezier(0.2, 0.75, 0.2, 1) 120ms both;
}

.mint-section,
.guide-section,
.faq-section,
.gallery-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 28px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.section-label span {
  color: var(--accent);
}

.section-label::after {
  width: 80px;
  height: 1px;
  content: "";
  background: var(--line);
}

.mint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.mint-panel,
.state-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.mint-panel {
  padding: clamp(24px, 4vw, 48px);
}

.mint-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.mint-panel small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.mint-panel h2 {
  margin: 9px 0 0;
  font-size: clamp(30px, 4.2vw, 60px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}

.chain-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.mint-tabs {
  display: flex;
  gap: 5px;
  margin: 34px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mint-tab {
  padding: 8px 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mint-tab.active {
  border-color: var(--line);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quantity-row > span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}

.quantity-control button {
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.quantity-control button:hover:not(:disabled) {
  color: #111;
  background: var(--accent);
}

.quantity-control button:disabled,
.mint-button:disabled,
.utility-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.quantity-control output {
  min-width: 48px;
  text-align: center;
  font-family: var(--mono);
  font-size: 18px;
}

.cost-block {
  display: grid;
  gap: 5px;
  margin: 28px 0 20px;
}

.cost-block > span {
  color: var(--accent);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.cost-block small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.mint-button {
  width: 100%;
  min-height: 54px;
  padding: 13px 18px;
  border: 1px solid var(--accent);
  color: #0d0f0c;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.mint-button:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.agent-pane {
  display: grid;
  gap: 12px;
}

.agent-pane label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #0d0f0c;
}

.agent-input:focus-within {
  border-color: var(--accent);
}

.agent-input input {
  min-width: 0;
  flex: 1;
  padding: 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
}

.agent-input span {
  padding-right: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.agent-note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.agent-validation {
  margin: -3px 0 3px;
  padding: 9px 11px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
}

.agent-validation.checking {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.agent-validation.valid {
  border-color: var(--accent);
  color: var(--accent);
}

.agent-validation.error {
  border-color: var(--danger);
  color: var(--danger);
}

#agent-prompt {
  max-height: 180px;
  overflow: auto;
  margin: 6px 0 0;
  padding: 13px;
  border: 1px solid var(--line);
  color: #b9c0b3;
  background: #0b0d0a;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.ghost-button,
.utility-button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.ghost-button:hover,
.utility-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.status {
  min-height: 18px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
}

.status.ok {
  color: var(--accent);
}

.status.error {
  color: var(--danger);
}

.advanced-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mint-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.mint-step {
  min-height: 126px;
  padding: 15px;
  background: #0d0f0c;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.mint-step > span {
  color: #656b61;
  font-family: var(--mono);
  font-size: 8px;
}

.mint-step div {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.mint-step strong {
  font-size: 13px;
  line-height: 1.2;
}

.mint-step small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
}

.mint-step.active {
  color: #10120e;
  background: var(--accent);
}

.mint-step.active > span,
.mint-step.active small {
  color: color-mix(in srgb, #10120e 72%, transparent);
}

.mint-step.done {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 11%, transparent),
      transparent
    ),
    #0d0f0c;
}

.mint-step.done > span {
  color: var(--accent);
}

.state-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 38px);
}

.state-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.state-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a6056;
}

.state-head i.live {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}

.state-panel dl {
  margin: 34px 0;
}

.state-panel dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.state-panel dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.state-panel dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.state-panel dd.state-open {
  color: var(--accent);
}

.meter {
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 500ms ease;
}

.state-panel > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
}

.guide-section {
  position: relative;
  border-top: 1px solid var(--line);
}

.guide-section::before {
  position: absolute;
  top: -1px;
  left: 28px;
  width: min(34vw, 410px);
  height: 1px;
  content: "";
  background: var(--accent);
}

.guide-head,
.faq-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 50px;
}

.guide-head h2,
.faq-head h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6vw, 92px);
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-wrap: balance;
}

.guide-head p,
.faq-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 52px;
  border: 1px solid var(--line);
  background: var(--line);
}

.guide-grid article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 2%,
      color-mix(in srgb, var(--accent) 11%, transparent),
      transparent 34%
    ),
    #0d0f0c;
}

.guide-grid article > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.guide-grid h3 {
  max-width: 210px;
  margin: 80px 0 12px;
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.75;
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: -0.025em;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 5px;
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 860px;
  margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.85;
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 50px;
}

.gallery-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 86px);
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-transform: uppercase;
}

.gallery-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.75;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 48px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery figure:hover img {
  transform: scale(1.025);
}

.gallery figcaption {
  padding: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.gallery-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%),
    var(--panel-solid);
}

.gallery-placeholder span {
  align-self: start;
  justify-self: start;
  padding: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.gallery-placeholder b {
  grid-area: 1 / 1;
  color: var(--accent);
  font-size: clamp(36px, 5vw, 74px);
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--line);
}

.protocol-grid article {
  padding: 26px;
  background: #0e100d;
}

.protocol-grid span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.protocol-grid h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  text-transform: uppercase;
}

.protocol-grid p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
}

footer {
  display: flex;
  max-width: 1280px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 32px 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
}

#footer-contract {
  max-width: 520px;
  overflow-wrap: anywhere;
  text-align: right;
}

dialog {
  width: min(92vw, 500px);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--ink);
  background: #11140f;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.64);
}

dialog::backdrop {
  background: rgba(5, 7, 4, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

dialog h3 {
  margin: 0;
  font-size: 25px;
  text-transform: uppercase;
}

.dialog-head button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.wallet-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.wallet-list button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.wallet-list button:hover {
  border-color: var(--accent);
}

.wallet-list img,
.wallet-fallback {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
}

.wallet-fallback {
  color: #111;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.result-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #111;
  background: var(--accent);
  font-size: 25px;
}

#result-copy {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 42vh;
  margin-top: 18px;
  overflow: auto;
}

.result-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0d0a;
}

.result-grid img,
.sealed-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sealed-art {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 10px,
      rgba(255, 255, 255, 0.025) 10px 20px
    ),
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--accent) 24%, transparent),
      transparent 35%
    ),
    #11140f;
}

.sealed-art span {
  align-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.sealed-art b {
  align-self: start;
  color: var(--accent);
  font-size: clamp(32px, 7vw, 58px);
}

.result-grid figcaption {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.result-grid figcaption strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-grid figcaption span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.result-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.dialog-actions a,
.dialog-actions button {
  padding: 11px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  cursor: pointer;
}

.dialog-actions a {
  border-color: var(--accent);
  color: #111;
  background: var(--accent);
}

.sticky-mint {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--ink);
  background: rgba(12, 14, 11, 0.93);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
  font-family: var(--mono);
  font-size: 9px;
  backdrop-filter: blur(14px);
}

.sticky-mint span {
  color: var(--muted);
}

.sticky-mint b {
  color: var(--ink);
}

.sticky-mint a {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #10120e;
  background: var(--accent);
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 4%, transparent);
  }
}

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

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

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .site-head {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 50px;
  }

  .hero-art {
    width: min(100%, 560px);
    order: -1;
  }

  .hero h1 {
    font-size: clamp(56px, 15vw, 104px);
  }

  .mint-grid,
  .gallery-head,
  .guide-head,
  .faq-head {
    grid-template-columns: 1fr;
  }

  .gallery-head,
  .guide-head,
  .faq-head {
    gap: 24px;
  }

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

  .mint-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sticky-mint {
    display: flex;
  }

  footer {
    padding-bottom: 106px;
  }
}

@media (max-width: 620px) {
  .site-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 17px 16px;
  }

  .brand small {
    max-width: 160px;
  }

  .wallet-button {
    max-width: 132px;
    min-width: 0;
    overflow: hidden;
    padding: 10px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  .mint-section,
  .guide-section,
  .faq-section,
  .gallery-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    gap: 30px;
    padding-bottom: 70px;
  }

  .hero h1 {
    margin-top: 16px;
    letter-spacing: -0.065em;
  }

  .fact-strip span {
    flex-basis: calc(50% - 1px);
  }

  .mint-panel,
  .state-panel {
    padding: 22px;
  }

  .mint-panel-head {
    display: grid;
  }

  .chain-badge {
    justify-self: start;
  }

  .gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery > * {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .guide-grid article {
    min-height: 190px;
  }

  .guide-grid h3 {
    margin-top: 46px;
  }

  .mint-step {
    min-height: 142px;
    padding: 13px;
  }

  .mint-step div {
    margin-top: 18px;
  }

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

  .faq-list summary {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  footer {
    display: grid;
    padding-right: 16px;
    padding-left: 16px;
  }

  #footer-contract {
    text-align: left;
  }
}

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