:root {
  --paper: #f1eee5;
  --paper-2: #e5e0d4;
  --ink: #1d1c19;
  --muted: #686259;
  --line: #b8b0a3;
  --gold: #ead87a;
  --gold-2: #fff1a8;
  --dark: #24231f;
  --blue: #8fb1bd;
  --green: #9ab78c;
  --pink: #d9a1b3;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.55), transparent 18rem),
    linear-gradient(135deg, rgba(0,0,0,.04) 25%, transparent 25%) 0 0 / 4px 4px,
    var(--paper-2);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .38;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.09) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 12% 18%, rgba(234,216,122,.32), transparent 18rem),
    radial-gradient(circle at 86% 28%, rgba(143,177,189,.26), transparent 20rem);
  mix-blend-mode: multiply;
}

.page-mosaic {
  position: fixed;
  inset: -4vh -4vw;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(10, minmax(120px, 1fr));
  gap: 22px;
  padding: 24px;
  opacity: .095;
  filter: grayscale(.15) saturate(.75) contrast(1.1);
  transform: rotate(-2deg) scale(1.04);
  pointer-events: none;
  overflow: hidden;
}

.page-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(29,28,25,.22);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(16px, 3vw, 42px);
  background: rgba(229,224,212,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.main-nav a {
  padding-block: 8px;
}

.main-nav a:hover {
  color: #8a711d;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contract-pill {
  max-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.icon-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  font-size: 24px;
}

.buy-btn,
.primary,
.dark,
.generate-btn,
.wide-btn,
.preview-actions button {
  min-height: 52px;
  border: 1px solid #746c5e;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.buy-btn,
.primary,
.generate-btn {
  background: linear-gradient(135deg, #fff7bc, var(--gold));
}

.dark {
  color: #fff;
  background: var(--dark);
}

.nav-toggle {
  display: none;
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(246,244,237,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 18px 40px rgba(62,55,45,.08);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(420px, 1fr);
  min-height: 640px;
  margin-top: 18px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #8c7938;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: .95;
}

h1,
.section-head h2,
.mini-panel h2 {
  font-family: "Archivo Black", Impact, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(40px, 3.7vw, 64px);
}

.hero-copy h2 {
  margin-top: 18px;
  color: #bea64c;
  font-size: clamp(20px, 2vw, 28px);
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  max-width: 600px;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 54px;
}

.hero-buttons button {
  min-width: 210px;
  padding: 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats-grid div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.stats-grid strong {
  font-size: clamp(15px, 1.4vw, 20px);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(246,244,237,.95), rgba(246,244,237,.18) 32%),
    linear-gradient(135deg, rgba(229,224,212,.9), rgba(143,177,189,.35));
  overflow: hidden;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: .28;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.2) 3px);
  mix-blend-mode: multiply;
}

.hero-mosaic {
  position: absolute;
  inset: -4%;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 18px;
  padding: 24px;
  opacity: .36;
  filter: saturate(.82) contrast(1.05);
  transform: rotate(-1.5deg) scale(1.04);
}

.hero-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(29,28,25,.18);
  box-shadow: 0 12px 24px rgba(29,28,25,.12);
}

.hero-art > .a1lon9-image-link {
  position: relative;
  z-index: 1;
  width: min(72%, 560px);
  aspect-ratio: 1;
}

.hero-art > .a1lon9-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 22px;
  filter: saturate(.92) contrast(1.08);
  transform: rotate(-1deg);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.hero-card {
  position: absolute;
  z-index: 2;
  left: 32px;
  bottom: 44px;
  display: grid;
  gap: 6px;
  width: 240px;
  padding: 20px;
  background: rgba(246,244,237,.9);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-card strong {
  font-size: 26px;
}

.a1lon9-image-link:hover img,
.hero-card:hover {
  filter: saturate(.96) contrast(1.08) brightness(1.04);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 34px 18px;
}

.section-head.stacked {
  display: block;
}

.section-head h2,
.mini-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head p {
  margin: 8px 0 0;
  text-transform: uppercase;
}

.text-btn {
  border: 0;
  background: transparent;
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-panel {
  margin-top: 18px;
}

.gallery-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 0 34px 30px;
}

.round-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  font-size: 30px;
}

.gallery-track {
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding: 2px 4px 10px;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.gallery-loop {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

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

.gallery-item {
  flex: 0 0 136px;
  text-align: center;
}

.gallery-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #82786b;
  border-radius: 10px;
  filter: contrast(1.05) saturate(.95);
  transition: transform .2s ease, filter .2s ease;
}

.gallery-preview:hover img {
  transform: translateY(-3px);
  filter: contrast(1.08) saturate(1.02);
}

.gallery-item span {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(19,18,16,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

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

.lightbox img {
  width: min(82vmin, 760px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(239,235,224,.92);
  font-size: 34px;
  line-height: 1;
}

.about-section {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.about-section h2 {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(22px, 2.5vw, 34px);
}

.about-section h2 span {
  color: #a7903d;
  font-family: "Space Mono", ui-monospace, monospace;
}

.about-section p {
  margin: 18px 0 0;
  line-height: 1.65;
}

.origin-panel {
  display: grid;
  grid-template-columns: minmax(270px, .75fr) minmax(0, 2fr);
  gap: 28px;
  padding: 30px 34px;
}

.about-copy p {
  max-width: 470px;
}

.origin-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.origin-steps div {
  position: relative;
}

.origin-steps div:not(:last-child)::after {
  position: absolute;
  top: 76px;
  right: -18px;
  width: 18px;
  border-top: 2px dotted rgba(29,28,25,.38);
  content: "";
}

.origin-steps img,
.transform-row img,
.about-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #82786b;
  border-radius: 10px;
  filter: contrast(1.05) saturate(.95);
}

.transform-row img:first-child {
  filter: contrast(1.03) saturate(.88) sepia(.08);
}

.origin-steps strong,
.origin-steps span {
  display: block;
}

.origin-steps strong {
  margin-top: 12px;
  text-transform: uppercase;
}

.origin-steps span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.what-panel {
  padding-bottom: 30px;
}

.what-grid {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1fr);
  gap: 34px;
  padding: 0 34px;
  align-items: center;
}

.transform-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.transform-row > span {
  font-size: 46px;
  font-weight: 700;
  text-align: center;
}

.what-copy p:first-child {
  margin-top: 0;
  font-weight: 700;
}

.icon-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.icon-row span {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px solid rgba(184,176,163,.7);
  border-radius: var(--radius);
  background: rgba(255,255,255,.28);
  font-size: 28px;
}

.icon-row small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr .86fr 1.15fr;
  gap: 14px;
}

.about-card {
  display: grid;
  gap: 18px;
  padding: 26px 28px;
  min-height: 270px;
}

.culture-card,
.cta-card {
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
}

.wild-card img {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-position: center;
}

.cta-card .primary {
  margin-top: 26px;
  padding: 0 24px;
}

.cta-rotator {
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #82786b;
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}

.cta-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: contrast(1.06) saturate(.94);
  opacity: 0;
  transition: opacity .7s ease;
}

.cta-rotator img.active {
  opacity: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(330px, .95fr);
  gap: 14px;
  margin-top: 14px;
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  padding: 0 34px 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  text-transform: uppercase;
  font-size: 13px;
}

.step span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

.upload-box {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #83796d;
  border-radius: var(--radius);
  background: rgba(255,255,255,.32);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.upload-box:hover,
.upload-box.has-upload {
  border-color: var(--ink);
  background: rgba(255, 245, 191, .42);
}

.upload-box strong,
.upload-box small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  font-size: 48px;
  line-height: 1;
}

.generator-copy {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(184,176,163,.75);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 244, 177, .34), rgba(255,255,255,.2)),
    rgba(255,255,255,.28);
}

.generator-copy p {
  margin: 0;
  font: 700 14px/1.55 "Space Mono", monospace;
  text-transform: uppercase;
}

.generator-copy p.is-processing::after {
  content: "";
  display: inline-block;
  width: 2.8em;
  text-align: left;
  animation: statusDots 1s steps(4, end) infinite;
}

@keyframes statusDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.style-grid,
.accessory-grid,
.background-grid,
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.style-card {
  width: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.36);
  padding: 6px;
  text-align: center;
}

.style-card.active,
.accessory-grid button.active,
.background-grid button.active,
.swatch.active {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.style-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.style-card span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.control-groups {
  display: grid;
  grid-template-columns: 1.2fr .7fr .9fr .9fr;
  gap: 14px;
  margin-top: 8px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(184,176,163,.7);
  border-radius: var(--radius);
}

legend {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.swatch {
  width: 22px;
  height: 22px;
  border: 1px solid #554f46;
  border-radius: 50%;
  background: var(--color);
}

.swatches.small .swatch {
  width: 28px;
  height: 28px;
}

.accessory-grid button,
.background-grid button {
  display: grid;
  min-width: 44px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.45);
  font-size: 22px;
}

.range-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.generate-btn {
  width: 100%;
  margin-top: 18px;
  font-size: 18px;
}

.preview-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.35);
  max-width: 430px;
}

.preview-card h3 {
  margin-bottom: 12px;
  text-transform: uppercase;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.preview-actions button {
  min-height: 44px;
  font-size: 12px;
  background: rgba(255,255,255,.42);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.feature-strip div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  text-transform: uppercase;
}

.feature-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.community-panel {
  padding-bottom: 34px;
}

.feed {
  padding: 0 28px;
}

.feed article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.feed img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.feed small,
.feed span {
  display: block;
  color: var(--muted);
}

.feed p {
  margin: 8px 0 10px;
  line-height: 1.45;
}

.wide-btn {
  width: calc(100% - 56px);
  margin: 26px 28px 0;
  background: rgba(255,255,255,.38);
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.mini-panel {
  padding: 30px 34px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.token-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.35);
}

.token-grid span {
  display: block;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(24px, 4vw, 42px);
}

.roadmap {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding-left: 24px;
}

.footer {
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr 1.35fr;
  gap: 34px;
  width: min(1480px, calc(100% - 32px));
  margin: 14px auto 22px;
  padding: 28px 34px;
}

.footer p {
  max-width: 310px;
  line-height: 1.6;
}

.footer h3 {
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin: 8px 0;
}

.newsletter label {
  display: grid;
  grid-template-columns: 1fr 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.newsletter span {
  position: absolute;
  opacity: 0;
}

.newsletter input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: rgba(255,255,255,.5);
}

.newsletter button {
  min-height: 54px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--gold);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.45);
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.open .main-nav,
  .site-header.open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .origin-panel,
  .what-grid,
  .about-cards,
  .culture-card,
  .cta-card,
  .content-grid,
  .split-row,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 520px;
  }

  .control-groups,
  .feature-strip,
  .token-grid,
  .origin-steps,
  .icon-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .origin-steps div:not(:last-child)::after {
    display: none;
  }

  .culture-card img,
  .cta-card img,
  .wild-card img {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  main,
  .footer {
    width: min(100% - 18px, 1480px);
  }

  .hero-copy,
  .section-head,
  .generator-layout,
  .mini-panel,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-buttons,
  .hero-buttons button {
    width: 100%;
  }

  .stats-grid,
  .control-groups,
  .feature-strip,
  .token-grid,
  .origin-steps,
  .icon-row,
  .transform-row {
    grid-template-columns: 1fr;
  }

  .origin-panel,
  .what-grid,
  .about-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .transform-row > span {
    transform: rotate(90deg);
  }

  .stats-grid div,
  .feature-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid div:last-child,
  .feature-strip div:last-child {
    border-bottom: 0;
  }

  .gallery-wrap {
    grid-template-columns: 1fr;
  }

  .gallery-wrap .round-btn {
    display: none;
  }

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