@font-face {
  font-family: "Gigantic";
  src: url("assets/fonts/Gigantic.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090c;
  --bg-raised: #0a0c10;
  --glass-bg: rgba(16, 19, 25, 0.30);

  --text: #eae9e6;
  --text-soft: #cfd0d6;
  --muted: #9ba0ac;
  --faint: #6c7180;

  --line: rgba(233, 233, 242, 0.09);
  --line-strong: rgba(233, 233, 242, 0.17);

  --accent: #a9b0ce;
  --focus: rgba(215, 219, 232, 0.9);

  --max-width: 1400px;
  --page-x: clamp(20px, 4vw, 56px);

  --font-display: "Gigantic", "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection {
  background: rgba(169, 176, 206, 0.35);
  color: #fff;
}

img,
video {
  max-width: 100%;
}

section {
  scroll-margin-top: 96px;
}

.container {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
  padding-inline: var(--page-x);
}

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

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(18px, 2.4vh, 26px);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: none;
  filter: none;
  -webkit-font-smoothing: antialiased;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.nav-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link--soon {
  color: var(--faint);
  pointer-events: none;
}

.soon {
  margin-left: 8px;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(169, 176, 206, 0.4);
  border-radius: 999px;
  padding: 3px 7px;
  vertical-align: 1px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #08090c;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
  pointer-events: none;
}

.video-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  pointer-events: none;
  will-change: opacity;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(86, 100, 140, 0.12);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
    180deg,
    rgba(5, 6, 8, 0.58) 0%,
    rgba(5, 6, 8, 0.52) 55%,
    rgba(5, 6, 8, 0.66) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr;
  gap: clamp(20px, 2vw, 28px);
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(32px, 5vh, 56px);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Glass ---------- */

.glass {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 62%),
    var(--glass-bg);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 30px 60px -24px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 400ms ease, box-shadow 400ms ease;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 34%);
  pointer-events: none;
}

.glass:hover {
  border-color: rgba(233, 233, 242, 0.26);
  box-shadow:
    0 40px 80px -28px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.wl {
  grid-column: 4 / 10;
  align-self: center;
  padding: clamp(28px, 2.6vw, 40px);
  animation: fade-up 1000ms cubic-bezier(0.2, 0.6, 0.2, 1) 140ms both;
}

.wl-heading {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
}

.wl-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wl-action {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.wl-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(233, 233, 242, 0.28);
  color: var(--text);
}

.wl-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.wl-input {
  width: 100%;
  height: 62px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.wl-input::placeholder {
  color: var(--faint);
}

.wl-input:hover {
  border-color: var(--line-strong);
}

.wl-input:focus {
  outline: none;
  border-color: rgba(234, 233, 230, 0.32);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(234, 233, 230, 0.07);
}

.wl-input.is-invalid {
  border-color: rgba(244, 120, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(244, 120, 120, 0.08);
}

.wl-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.wl-btn {
  height: 56px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.wl-btn--secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.wl-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(233, 233, 242, 0.28);
  color: var(--text);
}

.wl-btn--primary {
  background: rgba(240, 240, 244, 0.95);
  border: 1px solid rgba(240, 240, 244, 0.95);
  color: #0a0b0f;
}

.wl-btn--primary:hover {
  background: #fff;
  border-color: #fff;
}

.wl-btn:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.wl-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: clamp(30px, 4vw, 46px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0);
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.modal-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.modal-btn {
  margin-top: 26px;
  width: 100%;
}

/* ---------- Terminal product blocks ---------- */

.terminal-row .terminal-block {
  grid-column: 1 / -1;
}

.terminal-block {
  --toppad: clamp(36px, 4.4vw, 58px);
  --gutter: clamp(24px, 2.8vw, 40px);
  --numw: clamp(96px, 11vw, 150px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  margin-top: var(--block-gap);
  border-top: 1px solid var(--line);
}

.terminal-block-label {
  grid-column: 1 / 4;
  padding-top: var(--toppad);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.terminal-block-body {
  grid-column: 4 / 13;
}

.terminal-what {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.terminal-what-col {
  padding: var(--toppad) 0 0;
}

.terminal-what-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.terminal-what-desc {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.terminal-how {
  display: flex;
  flex-direction: column;
}

.terminal-how-row {
  display: grid;
  grid-template-columns: var(--numw) 1fr;
  gap: var(--gutter);
  align-items: start;
  padding-block: var(--toppad);
  border-bottom: 1px solid var(--line);
}

.terminal-how-row:last-child {
  border-bottom: none;
}

.terminal-how-num {
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 300;
  line-height: 1;
  color: rgba(154, 160, 172, 0.38);
  font-variant-numeric: tabular-nums;
}

.terminal-how-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.terminal-how-desc {
  margin-top: 12px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.terminal-visual {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6vw, 72px);
}

.terminal-visual + .terminal-block {
  margin-top: clamp(64px, 8vw, 90px);
}

.terminal-frame {
  display: block;
  padding: clamp(8px, 1vw, 14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 400ms ease,
    transform 600ms ease;
}

.terminal-frame:hover {
  border-color: var(--line-strong);
  transform: scale(1.003);
}

.terminal-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #08090c;
}

.terminal-caption {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  text-shadow: none;
  filter: none;
  -webkit-font-smoothing: antialiased;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: var(--text);
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .wl {
    grid-column: 3 / 11;
  }

  .hero::after {
    background-image: linear-gradient(
      180deg,
      rgba(5, 6, 8, 0.60) 0%,
      rgba(5, 6, 8, 0.54) 55%,
      rgba(5, 6, 8, 0.68) 100%
    );
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 780px) {
  :root {
    --page-x: 20px;
  }

  section {
    scroll-margin-top: 76px;
  }

  .nav-link--terminal {
    display: none;
  }

  .hero-inner {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(96px, 16vh, 120px);
    padding-bottom: 30px;
  }

  .wl {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    margin-top: clamp(20px, 4vh, 36px);
  }

  .wl-actions {
    grid-template-columns: 1fr;
  }

  .wl-input {
    height: 58px;
  }

  .terminal-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .terminal-block-label {
    grid-column: auto;
    padding-top: 32px;
  }

  .terminal-block-body {
    grid-column: auto;
  }

  .terminal-what {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .terminal-what-col {
    padding: 0;
  }

  .terminal-what-col + .terminal-what-col {
    margin-top: 44px;
  }

  .terminal-how-row {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding-block: clamp(38px, 7vw, 44px);
  }

  .terminal-how-num {
    font-size: clamp(34px, 12vw, 50px);
  }

  .site-footer {
    padding-top: clamp(38px, 8vw, 48px);
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .site-footer .container {
    padding-inline: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .footer-brand {
    font-size: 18px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    align-items: start;
    column-gap: 32px;
    row-gap: 18px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 17px;
  }

  .nav {
    gap: 14px;
  }

  .soon {
    display: none;
  }
}

/* ---------- Motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ---------- Collection and ecosystem ---------- */

.collection-intro,
.ecosystem {
  --col-gap: clamp(24px, 3vw, 48px);
  --block-gap: clamp(64px, 8vw, 110px);
  --toppad: clamp(36px, 4.4vw, 58px);
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(110px, 13vw, 180px);
}

.collection-intro {
  background: var(--bg);
}

.ecosystem {
  background: var(--bg-raised);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.section-label {
  grid-column: 1 / 4;
  padding-top: clamp(3px, 0.7vw, 8px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head-copy {
  grid-column: 4 / 13;
}

.section-title {
  max-width: 980px;
  font-size: clamp(34px, 4.2vw, 66px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-desc {
  margin-top: 26px;
  max-width: 690px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}

.section-sub {
  margin-top: 18px;
  max-width: 690px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  margin-top: var(--block-gap);
  border-top: 1px solid var(--line);
}

.story-item {
  padding-top: var(--toppad);
}

.story-item:first-child {
  grid-column: 4 / 8;
}

.story-item:last-child {
  grid-column: 9 / 13;
}

.story-kicker,
.product-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.story-copy,
.product-desc,
.product-note {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.product-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  margin-top: var(--block-gap);
  padding-top: clamp(38px, 4.6vw, 62px);
  border-top: 1px solid var(--line);
}

.product-index {
  grid-column: 1 / 4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.product-copy {
  grid-column: 4 / 13;
}

.product-title {
  margin-top: 18px;
  max-width: 690px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

.product-desc {
  max-width: 690px;
  color: var(--text-soft);
}

.product-note {
  max-width: 690px;
}

/* reveal animation for all narrative sections */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--rv, 0ms);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js .terminal-visual {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition:
    opacity 800ms cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 800ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.js .terminal-visual.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 780px) {
  .collection-intro,
  .ecosystem {
    padding-block: clamp(84px, 14vw, 120px);
  }

  .section-head,
  .story-grid,
  .product-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-label,
  .section-head-copy,
  .story-item:first-child,
  .story-item:last-child,
  .product-index,
  .product-copy {
    grid-column: auto;
  }

  .section-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .story-item {
    padding-top: 32px;
  }

  .story-item + .story-item {
    margin-top: 34px;
  }
}

/* ---------- Collection NFT marquee ---------- */

.nft-marquee {
  --marquee-card: clamp(250px, 22vw, 290px);
  --marquee-gap: clamp(18px, 1.8vw, 24px);
  --bubble-bg: #12151b;
  position: relative;
  margin-top: var(--block-gap);
}

.nft-marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.nft-marquee-bubble {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  max-width: 220px;
  padding: 9px 14px;
  border: 1px solid rgba(233, 233, 242, 0.16);
  border-radius: 10px;
  background: var(--bubble-bg);
  box-shadow:
    0 14px 32px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateX(-50%) translateY(3px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
}

.nft-marquee-bubble.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nft-marquee-bubble.is-leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(-3px);
}

.nft-marquee-bubble-text {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(234, 233, 230, 0.82);
}

.nft-marquee-bubble-arrow {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: var(--bubble-bg);
  border-right: 1px solid rgba(233, 233, 242, 0.16);
  border-bottom: 1px solid rgba(233, 233, 242, 0.16);
  transform: translateX(-50%) rotate(45deg);
}

.nft-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: nft-marquee-scroll 40s linear infinite;
}

.nft-marquee:hover .nft-marquee-track {
  animation-play-state: paused;
}

.nft-marquee-set {
  display: flex;
}

.nft-marquee-card {
  flex: 0 0 auto;
  width: var(--marquee-card);
  aspect-ratio: 1 / 1;
  margin-right: var(--marquee-gap);
  border: 1px solid rgba(233, 233, 242, 0.14);
  border-radius: 12px;
  background: var(--bg-raised);
  overflow: hidden;
  transition: transform 300ms ease;
}

.nft-marquee-card:hover {
  transform: scale(1.015);
}

.nft-marquee-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes nft-marquee-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1024px) {
  .nft-marquee {
    --marquee-card: clamp(200px, 30vw, 230px);
  }
}

@media (max-width: 560px) {
  .nft-marquee {
    --marquee-card: clamp(150px, 44vw, 175px);
    --marquee-gap: clamp(12px, 3vw, 16px);
    --bubble-bg: #12151b;
  }

  .nft-marquee-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }

  .nft-marquee-bubble {
    max-width: 160px;
    padding: 7px 11px;
  }

  .nft-marquee-bubble-text {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nft-marquee-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .nft-marquee-track {
    animation: none;
  }

  .nft-marquee-card:hover {
    transform: none;
  }
}

/* ---------- SOHO Change demo ---------- */

.change-demo {
  --col-gap: clamp(24px, 3vw, 48px);
  --block-gap: clamp(64px, 8vw, 110px);
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(110px, 13vw, 180px);
}

.demo-panel {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  margin-top: var(--block-gap);
  align-items: stretch;
}

.demo-stage {
  grid-column: 1 / 7;
  display: flex;
}

.preview-card {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #08090c;
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: preview-float 7s ease-in-out infinite;
}

@keyframes preview-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.preview-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.preview-jewel.is-hidden {
  opacity: 0;
}

.preview-layer.is-swapping {
  opacity: 0;
}

.preview-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(234, 233, 230, 0.75);
  background: rgba(8, 9, 12, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.demo-controls {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.controls-section-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.controls-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 22px;
}

.demo-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-group-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.demo-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-opt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.demo-opt:hover {
  color: var(--text);
  border-color: rgba(233, 233, 242, 0.28);
}

.demo-opt.is-active {
  color: var(--text);
  background: rgba(180, 255, 0, 0.12);
  border-color: rgba(180, 255, 0, 0.65);
  box-shadow:
    0 0 0 1px rgba(180, 255, 0, 0.2),
    0 0 22px rgba(180, 255, 0, 0.12);
}

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.future-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(233, 233, 242, 0.06);
  border-radius: 12px;
  padding: 14px;
  cursor: not-allowed;
  transition: border-color 200ms ease;
}

.future-tile:hover {
  border-color: var(--line);
}

.future-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.future-locked {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 233, 242, 0.05);
  border-radius: 10px;
  background: rgba(8, 9, 12, 0.5);
  overflow: hidden;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.future-chips {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  padding: 10px;
  filter: blur(4px);
  opacity: 0.45;
  user-select: none;
  pointer-events: none;
}

.future-lock {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 12, 0.4);
  color: var(--muted);
  pointer-events: none;
}

.future-lock-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.future-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: not-allowed;
}

.market {
  margin-top: var(--block-gap);
  padding-top: var(--toppad);
}

.market-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.market-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.market-note {
  margin-top: clamp(26px, 3vw, 40px);
}

.market-note-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.market-note-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.market-note-tagline {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  margin-top: clamp(38px, 4.6vw, 62px);
}

.market-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease;
}

.market-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.market-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0c10;
}

.market-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2.5px) saturate(0.55) brightness(0.75);
  transform: scale(1.04);
  transition: filter 300ms ease;
}

.market-card:hover .market-thumb img {
  filter: blur(2px) saturate(0.65) brightness(0.85);
}

.market-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.35), rgba(8, 9, 12, 0.05) 45%, rgba(8, 9, 12, 0.15));
}

.market-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(234, 233, 230, 0.7);
  background: rgba(8, 9, 12, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.market-body {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 6px;
}

.market-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.market-titles {
  min-width: 0;
}

.market-cat {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.market-price {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

.market-buy {
  margin: 20px 16px 16px;
  height: 40px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.market-buy:hover {
  color: var(--text);
  border-color: rgba(169, 176, 206, 0.4);
  background: rgba(169, 176, 206, 0.07);
}

.market-buy.is-feedback {
  color: var(--accent);
  border-color: rgba(169, 176, 206, 0.45);
  background: rgba(169, 176, 206, 0.08);
}

@media (max-width: 1024px) {
  .change-demo {
    padding-block: clamp(96px, 12vw, 140px);
  }

  .demo-panel {
    grid-template-columns: 1fr;
  }

  .demo-stage,
  .demo-controls {
    grid-column: auto;
  }

  .demo-stage {
    display: block;
    max-width: 640px;
  }

  .preview-card {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .demo-controls {
    max-width: 640px;
  }

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

@media (max-width: 780px) {
  .change-demo {
    padding-block: clamp(84px, 14vw, 120px);
  }

  .demo-stage {
    max-width: none;
  }

  .demo-controls {
    max-width: none;
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .market-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .future-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
}
