:root {
  color-scheme: light;
  --ui-font: "Press Start 2P", ui-monospace, "Cascadia Mono", monospace;
  --page: #eef1eb;
  --page-ink: #27302c;
  --ink: #27302c;
  --muted: #64716a;
  --soft: #899892;
  --paper: #fbfcf7;
  --paper-2: #f3f6ef;
  --field: #f7f9f3;
  --panel: #e6ede5;
  --line: #c7d1c8;
  --line-strong: #9eaea4;
  --accent: #586d61;
  --accent-2: #34423b;
  --canvas: #e7e9e4;
  --danger: #b94848;
  --shadow: rgba(38, 48, 43, 0.12);
}

@font-face {
  font-family: "Press Start 2P";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url("/vendor/fonts/press-start-2p-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--page-ink);
  font-family: var(--ui-font);
  font-size: 12px;
  font-synthesis: none;
  line-height: 1.8;
  background-color: #f2f5ef;
  background: linear-gradient(180deg, #fbfcf7 0%, #f1f4ee 48%, #e9eee7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  background: linear-gradient(90deg, rgba(251, 252, 247, 0.68), transparent 18%, transparent 82%, rgba(251, 252, 247, 0.58));
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  height: min(18vh, 160px);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(210, 220, 211, 0.28) 100%);
  opacity: 0.42;
}

.app-shell {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(88, 109, 97, 0.22);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select {
  min-width: 0;
}

button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
  font-size: 0.56rem;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(38, 48, 43, 0.1);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button.primary,
button.secondary {
  width: 100%;
}

button.primary {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: var(--paper);
}

button.primary:hover:not(:disabled) {
  background: #222d28;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.56rem;
  line-height: 1.5;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  background-color: var(--field);
  padding-right: 34px;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(88, 109, 97, 0.12);
}

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

p,
h1,
h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

canvas {
  display: block;
}

.app-shell {
  width: min(1560px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.terminal-header {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  grid-template-areas:
    "brand nav"
    "subline nav";
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 22px;
}

.ascii-title {
  grid-area: brand;
  display: inline-grid;
  width: fit-content;
  gap: 8px;
}

.ascii-title span {
  color: var(--ink);
  font-size: 1.44rem;
  line-height: 1.2;
}

.ascii-title strong {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 400;
  line-height: 1.4;
}

.subline {
  grid-area: subline;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.85;
}

.rail-nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.rail-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(199, 209, 200, 0.78);
  border-radius: 8px;
  background: rgba(251, 252, 247, 0.88);
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.54rem;
  box-shadow: 0 12px 26px rgba(38, 48, 43, 0.06);
}

.rail-nav a:hover {
  border-color: var(--accent);
  background: #ffffff;
}

.workspace {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(251, 252, 247, 0.86);
  box-shadow:
    0 26px 80px rgba(38, 48, 43, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.workspace-top {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 247, 0.82);
  padding: 0 20px;
}

.workspace-top span,
.kicker,
.section-tag,
label,
.axis,
.workspace-footer,
.microcopy,
.nft-toolbar,
.nft-card span,
.nft-count span,
.stat-strip span,
.specimen-meta span,
.panel-title span,
.delegate-status span,
.art-terminal::before,
.art-terminal span,
.art-terminal strong,
.authorization-output {
  font-size: 0.54rem;
  line-height: 1.75;
}

.kicker,
.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.kicker::before,
.section-tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(88, 109, 97, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas:
    "copy action"
    "specimen action";
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.hero-copy,
.specimen,
.action-panel,
.connect-copy,
.connect-steps,
.nft-copy,
.nft-panel,
.supply-copy,
.chart-panel,
.faq-copy,
.faq-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 252, 247, 0.94);
  box-shadow: 0 12px 34px rgba(38, 48, 43, 0.055);
}

.hero-copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(250px, 1fr);
  gap: 22px 24px;
  align-items: center;
  padding: 24px;
}

h1 {
  max-width: 10ch;
  color: var(--ink);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.connect-copy h1,
.nft-copy h1 {
  font-size: 2.35rem;
}

.hero-copy p,
.connect-copy p,
.nft-copy p,
.supply-copy p,
.faq-copy p,
.faq-list p {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 2.1;
}

.stat-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat-strip div,
.specimen-meta,
.panel-title,
.delegate-status,
.authorization-output,
.art-terminal span,
.art-terminal strong,
.nft-empty,
.nft-card,
.faq-list details,
.connect-steps li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
}

.stat-strip div {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 13px;
}

.stat-strip strong,
.specimen-meta strong,
.nft-count strong,
.nft-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.specimen {
  grid-area: specimen;
  background: rgba(230, 237, 229, 0.72);
}

.specimen-stage {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(260px, 1fr);
  grid-template-areas:
    "art meta"
    "art traits";
  gap: 18px;
  align-items: start;
  padding: 20px;
}

.specimen-meta {
  grid-area: meta;
  min-height: 82px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
}

#artImage {
  grid-area: art;
  width: min(100%, 560px);
  aspect-ratio: 1;
  height: auto;
  display: block;
  border: 10px solid var(--paper);
  outline: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--canvas);
  image-rendering: auto;
  box-shadow: 0 18px 44px rgba(38, 48, 43, 0.12);
}

.art-terminal {
  grid-area: traits;
  display: grid;
  gap: 10px;
}

.art-terminal::before {
  content: "Traits";
  color: var(--ink);
}

.art-terminal span,
.art-terminal strong {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.scan-cursor {
  width: 10px;
  height: 18px;
  display: inline-block;
  background: var(--accent);
  animation: blink 1.1s steps(2, start) infinite;
}

.action-panel {
  grid-area: action;
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(230, 237, 229, 0.9);
}

.panel-title,
.delegate-status {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.panel-title strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.55;
}

.delegate-status strong {
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quote-grid label:last-child {
  grid-column: 1 / -1;
}

.authorization-output {
  min-height: 92px;
  display: block;
  padding: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.microcopy {
  color: var(--muted);
}

.lab-grid,
.connect-section,
.nft-section,
.faq-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  padding: 0 20px 20px;
  align-items: stretch;
}

.connect-section,
.nft-section {
  padding-top: 20px;
}

.connect-page-section {
  grid-template-columns: 1fr;
  align-items: start;
}

.connect-page-section .connect-copy {
  min-height: 0;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  gap: 18px 32px;
}

.connect-page-section .connect-copy .section-tag {
  grid-column: 1 / -1;
}

.connect-page-section .connect-copy h1 {
  max-width: none;
  font-size: 2rem;
}

.connect-page-section .connect-steps ol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.connect-page-section .connect-steps li,
.connect-page-section .connect-steps li:last-child {
  grid-column: auto;
  min-height: 150px;
}

.nft-page .nft-section {
  min-height: 520px;
}

.supply-copy,
.connect-copy,
.nft-copy,
.faq-copy,
.connect-steps,
.nft-panel,
.faq-list,
.chart-panel {
  padding: 20px;
}

.supply-copy,
.connect-copy,
.nft-copy,
.faq-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.supply-copy h2,
.connect-copy h2,
.nft-copy h2,
.faq-copy h2 {
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.38;
}

.chart-panel {
  background: var(--accent-2);
}

#supplyCanvas {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  background: var(--accent-2);
}

.axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: rgba(251, 252, 247, 0.78);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.64rem;
  line-height: 1.75;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
}

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

.faq-list p {
  padding: 0 14px 16px;
}

.connect-steps ol {
  counter-reset: connect-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connect-steps li {
  counter-increment: connect-step;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.connect-steps li:last-child {
  grid-column: 1 / -1;
  min-height: 118px;
}

.connect-steps li::before {
  content: "0" counter(connect-step);
  color: var(--soft);
  font-size: 0.54rem;
}

.connect-steps strong {
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.65;
}

.connect-steps span {
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.9;
}

.nft-count {
  width: min(100%, 220px);
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  padding: 14px;
}

.nft-count strong {
  font-size: 1.3rem;
}

.nft-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.nft-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.nft-empty {
  grid-column: 1 / -1;
  min-height: 170px;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

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

.nft-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nft-card:hover,
.nft-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(38, 48, 43, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.nft-card canvas,
.nft-card img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border: 8px solid var(--paper);
  border-radius: 10px;
  background: var(--canvas);
  image-rendering: auto;
  object-fit: cover;
}

.nft-card div {
  display: grid;
  gap: 8px;
}

.nft-card span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.nft-detail-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 80px rgba(38, 48, 43, 0.24);
}

.nft-detail-dialog::backdrop {
  background: rgba(24, 28, 27, 0.42);
}

.nft-detail-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.08fr);
  gap: 20px;
  padding: 20px;
}

.nft-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 8px;
  z-index: 1;
}

#detailNftImage {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  align-self: start;
  border: 8px solid var(--field);
  border-radius: 10px;
  background: var(--canvas);
  object-fit: cover;
}

.nft-detail-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: 34px;
}

.nft-detail-copy h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.nft-detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.nft-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.nft-detail-list div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.nft-detail-list dt,
.nft-detail-traits span {
  color: var(--muted);
  font-size: 0.58rem;
}

.nft-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.nft-detail-traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nft-detail-traits div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.nft-detail-traits strong {
  font-size: 0.64rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.nft-detail-link {
  justify-self: start;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
  text-decoration: none;
}

.nft-detail-link:hover {
  border-color: var(--accent);
}

.landing-page {
  width: min(1560px, calc(100% - 64px));
}

.landing-hero {
  min-height: min(720px, calc(100vh - 150px));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(251, 252, 247, 0.94) 0 36%, rgba(251, 252, 247, 0.74) 36% 58%, rgba(251, 252, 247, 0.2) 58% 100%),
    linear-gradient(180deg, #f7f8f2 0%, #e5ebe3 100%);
  box-shadow: 0 26px 80px rgba(38, 48, 43, 0.11);
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 56px);
}

.collection-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 252, 247, 0.94);
  box-shadow: 0 14px 34px rgba(38, 48, 43, 0.075);
  margin-bottom: 18px;
  padding: 10px;
  backdrop-filter: blur(10px);
}

.collection-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.52rem;
}

.collection-tabs a:hover {
  border-color: var(--accent);
  background: #ffffff;
}

.landing-art-wall {
  position: absolute;
  inset: 0 0 0 43%;
  z-index: -1;
  pointer-events: none;
}

.landing-art {
  position: absolute;
  display: block;
  width: min(33vw, 420px);
  min-width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 10px solid var(--paper);
  outline: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: 0 22px 58px rgba(38, 48, 43, 0.16);
}

.landing-art.art-a {
  right: 7%;
  top: 7%;
  transform: rotate(2deg);
}

.landing-art.art-b {
  right: 28%;
  bottom: 8%;
  transform: rotate(-3deg);
}

.landing-art.art-c {
  right: -2%;
  bottom: 18%;
  transform: rotate(4deg);
}

.landing-hero-copy {
  width: min(620px, 100%);
  display: grid;
  gap: 22px;
  padding-bottom: 10px;
}

.landing-hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
}

.landing-hero-copy p,
.landing-feature p,
.landing-overview p,
.collection-summary p,
.landing-story p,
.museum-scene p,
.trait-board p,
.mint-overview p,
.landing-faq p {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 2.15;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 0.56rem;
  box-shadow: 0 12px 26px rgba(38, 48, 43, 0.07);
}

.button-link.primary {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: var(--paper);
}

.button-link.secondary {
  background: rgba(251, 252, 247, 0.92);
  color: var(--ink);
}

.button-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #ffffff;
}

.button-link.primary:hover {
  background: #222d28;
  color: var(--paper);
}

.landing-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.collection-summary,
.landing-story,
.museum-scene,
.trait-board,
.mint-overview,
.landing-faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 252, 247, 0.9);
  box-shadow: 0 12px 34px rgba(38, 48, 43, 0.055);
  margin-bottom: 18px;
  padding: 22px;
}

.collection-summary {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.collection-summary img,
.story-art-grid img,
.featured-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--paper);
  outline: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: 0 18px 44px rgba(38, 48, 43, 0.11);
}

.collection-summary h2,
.landing-story h2,
.museum-scene h2,
.section-heading h2,
.mint-overview h2,
.landing-faq h2 {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 12px 0 0;
}

.collection-summary div,
.landing-story div,
.museum-copy,
.trait-board,
.landing-faq {
  display: grid;
  gap: 14px;
}

.landing-overview article {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 252, 247, 0.9);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(38, 48, 43, 0.045);
}

.landing-overview span {
  color: var(--muted);
  font-size: 0.5rem;
}

.landing-overview strong,
.landing-feature h2,
.featured-grid strong,
.trait-grid strong,
.fee-grid strong,
.mint-overview li strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.landing-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 252, 247, 0.9);
  padding: 22px;
  box-shadow: 0 12px 34px rgba(38, 48, 43, 0.055);
}

.landing-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
}

.story-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.museum-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.museum-wall {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--canvas);
  box-shadow: 0 18px 44px rgba(38, 48, 43, 0.12);
}

.featured-studies {
  margin-bottom: 18px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.featured-grid,
.trait-grid,
.fee-grid {
  display: grid;
  gap: 14px;
}

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

.featured-grid article,
.trait-grid article,
.fee-grid div,
.mint-overview li,
.landing-faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 252, 247, 0.92);
  box-shadow: 0 12px 34px rgba(38, 48, 43, 0.045);
}

.featured-grid article {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.featured-grid span,
.trait-grid span,
.fee-grid span,
.mint-overview li span,
.landing-faq-list summary {
  color: var(--muted);
  font-size: 0.54rem;
  line-height: 1.8;
}

.trait-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.trait-grid article {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.mint-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.mint-overview ol {
  counter-reset: mint-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mint-overview li {
  counter-increment: mint-step;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.mint-overview li::before {
  content: counter(mint-step, decimal-leading-zero);
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--accent);
  padding: 4px 8px;
  font-size: 0.52rem;
}

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

.fee-grid div {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
}

.landing-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-faq-list details {
  padding: 16px;
}

.landing-faq-list summary {
  cursor: pointer;
  color: var(--ink);
}

.landing-faq-list p {
  margin-top: 12px;
}

.workspace-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: rgba(230, 237, 229, 0.84);
  color: var(--muted);
  padding: 12px 20px;
}

.workspace-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.workspace-footer span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 2px;
  background: var(--accent);
}

.site-copyright {
  margin: 12px 20px 0;
  color: var(--muted);
  font-size: 0.52rem;
  line-height: 1.8;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
}

.toast {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(251, 252, 247, 0.96);
  box-shadow: 0 18px 44px rgba(38, 48, 43, 0.16);
  padding: 12px;
}

.toast.error {
  border-color: rgba(185, 72, 72, 0.45);
}

.toast strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 400;
}

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

.toast span {
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.9;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

@media (max-width: 1180px) {
  .app-shell {
    width: min(100% - 40px, 1020px);
  }

  .terminal-header,
  .hero-grid,
  .lab-grid,
  .connect-section,
  .nft-section,
  .faq-section,
  .landing-overview,
  .landing-feature,
  .collection-summary,
  .landing-story,
  .museum-scene,
  .mint-overview,
  .landing-faq-list {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .ascii-title,
  .subline,
  .rail-nav,
  .hero-copy,
  .specimen,
  .action-panel {
    grid-area: auto;
  }

  .rail-nav {
    justify-content: flex-start;
  }

  .hero-copy,
  .specimen-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "art"
      "traits";
  }

  .hero-copy {
    grid-template-areas: none;
  }

  .action-panel {
    position: static;
  }

  h1 {
    max-width: none;
    font-size: 2.35rem;
  }

  .landing-hero {
    min-height: 650px;
    background:
      linear-gradient(180deg, rgba(251, 252, 247, 0.96) 0 48%, rgba(251, 252, 247, 0.58) 48% 100%),
      linear-gradient(180deg, #f7f8f2 0%, #e5ebe3 100%);
  }

  .landing-art {
    width: min(42vw, 360px);
  }

  .landing-art.art-a {
    right: 5%;
    top: 8%;
  }

  .landing-art.art-b {
    right: 32%;
    bottom: 7%;
  }

  .landing-art.art-c {
    right: -7%;
    bottom: 19%;
  }

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

  .trait-grid,
  .mint-overview ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-summary img,
  .story-art-grid {
    width: min(100%, 360px);
  }

}

@media (max-width: 760px) {
  body {
    font-size: 11px;
  }

  .app-shell {
    width: min(100% - 20px, 680px);
    padding: 16px 0 34px;
  }

  .terminal-header {
    min-height: 0;
    margin-bottom: 14px;
  }

  .ascii-title span {
    font-size: 1.05rem;
  }

  .subline {
    max-width: 34ch;
    font-size: 0.52rem;
  }

  .rail-nav {
    gap: 8px;
  }

  .rail-nav a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.5rem;
  }

  .workspace-top,
  .hero-grid,
  .lab-grid,
  .connect-section,
  .nft-section,
  .faq-section,
  .collection-summary,
  .landing-story,
  .museum-scene,
  .trait-board,
  .mint-overview,
  .landing-faq {
    padding: 12px;
  }

  .workspace-top {
    min-height: 52px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-copy,
  .specimen-stage,
  .action-panel,
  .supply-copy,
  .connect-copy,
  .nft-copy,
  .faq-copy,
  .connect-steps,
  .nft-panel,
  .faq-list,
  .chart-panel {
    padding: 14px;
  }

  .connect-page-section .connect-copy {
    grid-template-columns: 1fr;
  }

  .connect-page-section .connect-copy h1 {
    font-size: 1.28rem;
  }

  h1,
  .connect-copy h1,
  .nft-copy h1 {
    font-size: 1.28rem;
    line-height: 1.3;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }

  .landing-hero {
    min-height: 760px;
    align-items: flex-start;
    padding: 18px;
  }

  .landing-hero-copy {
    gap: 16px;
    min-width: 0;
    max-width: 100%;
  }

  .landing-hero-copy p {
    max-width: 34ch;
  }

  .landing-hero-copy h1 {
    max-width: 8ch;
    font-size: 1.95rem;
  }

  .landing-actions {
    flex-direction: column;
    width: min(100%, 320px);
  }

  .button-link {
    width: 100%;
  }

  .landing-art {
    width: 58vw;
    min-width: 180px;
    border-width: 7px;
  }

  .landing-art-wall {
    inset: 0;
  }

  .landing-art.art-a {
    right: -8%;
    top: 60%;
  }

  .landing-art.art-b {
    left: 7%;
    right: auto;
    bottom: 4%;
  }

  .landing-art.art-c {
    display: none;
  }

  .landing-overview,
  .landing-feature,
  .collection-summary,
  .landing-story,
  .museum-scene,
  .trait-grid,
  .mint-overview,
  .mint-overview ol,
  .fee-grid,
  .landing-faq-list {
    grid-template-columns: 1fr;
  }

  .landing-overview article,
  .landing-feature,
  .trait-grid article,
  .fee-grid div,
  .mint-overview li,
  .landing-faq-list details {
    padding: 14px;
  }

  .collection-tabs {
    position: static;
    gap: 8px;
  }

  .collection-tabs a {
    flex: 1 1 calc(50% - 8px);
    font-size: 0.5rem;
  }

  .collection-summary img,
  .story-art-grid {
    width: 100%;
  }

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

  .collection-summary h2,
  .landing-story h2,
  .museum-scene h2,
  .section-heading h2,
  .mint-overview h2,
  .landing-faq h2 {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .supply-copy h2,
  .connect-copy h2,
  .nft-copy h2,
  .faq-copy h2 {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-copy p,
  .connect-copy p,
  .nft-copy p,
  .supply-copy p,
  .faq-copy p,
  .faq-list p,
  .landing-hero-copy p,
  .landing-overview p,
  .collection-summary p,
  .landing-story p,
  .museum-scene p,
  .trait-board p,
  .mint-overview p,
  .landing-faq p {
    font-size: 0.56rem;
  }

  .stat-strip,
  .quote-grid,
  .nft-toolbar,
  .connect-steps ol {
    grid-template-columns: 1fr;
  }

  #artImage {
    width: 100%;
    border-width: 7px;
  }

  .nft-detail-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .nft-detail-copy {
    padding-right: 0;
  }

  .nft-detail-traits {
    grid-template-columns: 1fr;
  }

  #supplyCanvas {
    height: 260px;
  }

  .workspace-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
