:root {
  --ink: #171717;
  --ink-soft: #343434;
  --paper: #fffaf0;
  --paper-2: #fff3d7;
  --cream: #f8eac7;
  --pink: #ff9fbd;
  --pink-2: #ffd6e4;
  --blue: #8cccf4;
  --blue-2: #d7f2ff;
  --yellow: #ffd85f;
  --yellow-2: #fff0aa;
  --green: #a9dd89;
  --red: #ff6f6f;
  --night: #111019;
  --night-2: #1c1926;
  --white: #ffffff;
  --shadow: 0 18px 0 rgba(23, 23, 23, 0.12);
  --shadow-strong: 0 24px 0 rgba(23, 23, 23, 0.22);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 42px;
  --shell: min(1180px, calc(100% - 32px));
  --header-height: 78px;
  --ease: cubic-bezier(.2,.75,.2,1);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

main {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

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

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

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

button {
  color: inherit;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: -12px;
  pointer-events: none;
  z-index: 100;
}

.grain::before,
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 27%, var(--grain-color) 0 .75px, transparent 1px),
    radial-gradient(circle at 71% 42%, var(--grain-color) 0 .55px, transparent .9px),
    radial-gradient(circle at 37% 83%, var(--grain-color) 0 .65px, transparent 1px),
    radial-gradient(circle at 88% 69%, var(--grain-color) 0 .5px, transparent .85px);
  background-repeat: repeat;
  background-position: 0 0, 2px 3px, 5px 1px, 3px 7px;
  will-change: transform;
}

.grain::before {
  --grain-color: rgba(0, 0, 0, .98);
  background-size: 4px 5px, 7px 6px, 9px 11px, 13px 10px;
  opacity: .133;
  animation: grain-jitter .22s steps(2, end) infinite;
}

.grain::after {
  --grain-color: rgba(255, 255, 255, .96);
  background-size: 5px 4px, 8px 7px, 10px 12px, 14px 11px;
  opacity: .056;
  animation: grain-jitter-reverse .27s steps(2, end) infinite;
}

@keyframes grain-jitter {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-4px, 2px, 0); }
  40% { transform: translate3d(2px, -3px, 0); }
  60% { transform: translate3d(4px, 1px, 0); }
  80% { transform: translate3d(-2px, -2px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes grain-jitter-reverse {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(3px, -2px, 0); }
  50% { transform: translate3d(-2px, 3px, 0); }
  75% { transform: translate3d(-4px, -1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.cursor-blob {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 159, 189, .16);
  filter: blur(40px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: width .25s ease, height .25s ease, background .25s ease;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 14px 16px auto;
  z-index: 80;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 9px 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 250, 240, .92);
  box-shadow: 0 8px 0 rgba(23, 23, 23, .12);
  backdrop-filter: blur(18px);
  transition: transform .35s var(--ease), background .25s ease, box-shadow .25s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 24px));
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}

.site-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.wordmark-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.wordmark-main {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: -.05em;
  font-size: 1.08rem;
}

.wordmark-jp {
  color: #6f6a62;
  font-family: "Noto Sans JP", sans-serif;
  font-size: .72rem;
  font-weight: 900;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.desktop-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}

.desktop-nav a:hover {
  background: var(--pink-2);
  transform: translateY(-2px);
}

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

.header-social,
.menu-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.header-social:hover,
.menu-button:hover {
  transform: translateY(-2px) rotate(-3deg);
  background: var(--yellow-2);
}

.header-social svg,
.menu-button svg {
  width: 18px;
  height: 18px;
}

.menu-button {
  display: none;
}

.menu-close-icon {
  display: none;
}

.site-header.menu-active .menu-open-icon {
  display: none;
}

.site-header.menu-active .menu-close-icon {
  display: block;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .2s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.button-small {
  min-height: 44px;
  padding-inline: 16px;
  font-size: .84rem;
}

.button-primary {
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--ink);
}

.button-primary:hover {
  box-shadow: 10px 10px 0 var(--ink);
}

.button-paper {
  background: var(--white);
  box-shadow: 6px 6px 0 var(--cream);
}

.button-paper:hover {
  box-shadow: 10px 10px 0 var(--cream);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  box-shadow: 7px 7px 0 rgba(255,255,255,.2);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 110px 24px 32px;
  background: var(--paper);
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu nav a {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.5rem, 12vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  padding-block: 8px;
  border-bottom: 2px solid var(--ink);
}

.mobile-menu-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: .78rem;
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  gap: 34px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 72px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  width: 520px;
  height: 520px;
  left: -330px;
  top: 8%;
  background: var(--blue-2);
}

.hero::after {
  width: 360px;
  height: 360px;
  right: -220px;
  bottom: 4%;
  background: var(--pink-2);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-logo {
  display: block;
  width: clamp(180px, 23vw, 280px);
  height: auto;
  margin: 0 0 18px -18px;
  object-fit: contain;
  filter: drop-shadow(10px 12px 0 rgba(18, 18, 18, .18));
  transform: rotate(-5deg);
  animation: hero-logo-bob 4.8s ease-in-out infinite;
}

@keyframes hero-logo-bob {
  0%, 100% { transform: rotate(-5deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-2deg) translate3d(0, -10px, 0); }
}

.hero-kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(169,221,137,.65); }
  70% { box-shadow: 0 0 0 10px rgba(169,221,137,0); }
  100% { box-shadow: 0 0 0 0 rgba(169,221,137,0); }
}

.hero h1 {
  margin: 24px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(4.6rem, 8vw, 8.7rem);
  line-height: .8;
  letter-spacing: -.085em;
  font-weight: 700;
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  color: var(--pink);
  text-shadow: 4px 4px 0 var(--ink);
  -webkit-text-stroke: 2px var(--ink);
}

.scribble-line {
  position: relative;
  width: max-content;
}

.scribble-line::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: -14px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg width='500' height='18' viewBox='0 0 500 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12c72-9 116 5 178-2 77-9 124 4 190-1 45-3 77-1 128 2' stroke='%23ffd85f' stroke-width='10' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}

.hero-description {
  max-width: 610px;
  margin: 34px 0 0;
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  line-height: 1.65;
  color: #4b4741;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contract-card {
  max-width: 640px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 13px 13px 18px;
  border: 2px dashed var(--ink);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.contract-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.contract-meta span {
  color: #777067;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contract-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88rem;
}

.contract-card button,
.token-contract button {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 auto;
}

.contract-card button svg,
.token-contract button svg {
  width: 17px;
  height: 17px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 17px;
  color: #7b746b;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero-collage {
  position: relative;
  width: 100%;
  padding: 28px 14px 34px 20px;
}

.hero-collage::before {
  content: "";
  position: absolute;
  inset: 7% 0 2% 7%;
  border-radius: 38% 62% 55% 45% / 44% 36% 64% 56%;
  background: var(--blue-2);
  border: 3px solid var(--ink);
  transform: rotate(3deg);
  z-index: -1;
}

.hero-feature {
  position: relative;
  margin: 0;
  padding: 13px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 16px 18px 0 var(--ink);
  transform: rotate(1.4deg);
}

.hero-feature-image-wrap {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 19px;
  background: var(--paper);
}

.hero-feature-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.hero-feature:hover .hero-feature-image {
  transform: scale(1.025);
}

.hero-feature figcaption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 6px 2px;
}

.hero-feature figcaption span {
  color: #766f65;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero-feature figcaption strong {
  max-width: 230px;
  text-align: right;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(.9rem, 1.4vw, 1.15rem);
  line-height: 1;
}

.hero-feature-tape {
  position: absolute;
  width: 108px;
  height: 32px;
  z-index: 3;
  border: 1px solid rgba(23, 23, 23, .18);
  background: rgba(255, 216, 95, .88);
  mix-blend-mode: multiply;
}

.hero-feature-tape-left {
  top: -13px;
  left: 12%;
  transform: rotate(-7deg);
}

.hero-feature-tape-right {
  right: 8%;
  bottom: 52px;
  transform: rotate(8deg);
  background: rgba(173, 215, 243, .88);
}

.hero-feature-note {
  position: absolute;
  right: 3%;
  bottom: 1px;
  z-index: 4;
  margin: 0;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  transform: rotate(-3deg);
}

.media-slot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.1)),
    repeating-linear-gradient(45deg, var(--pink-2) 0 14px, var(--paper) 14px 28px);
}

.media-slot::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.05;
}

.media-slot::after {
  content: "DROP ART HERE";
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.media-slot.has-image::before,
.media-slot.has-image::after {
  display: none;
}

.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease, transform .8s var(--ease);
}

.media-slot.has-image img {
  opacity: 1;
}

.media-slot.has-image:hover img {
  transform: scale(1.035);
}

.media-slot figcaption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) rotate(-2deg);
  min-width: max-content;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  z-index: 3;
}

.marquee {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-.5deg) scale(1.01);
}

.marquee-track {
  --marquee-gap: 34px;
  display: flex;
  width: max-content;
  gap: var(--marquee-gap);
  padding-block: 15px;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}

.marquee-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
}

.marquee-group span {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 700;
  letter-spacing: .015em;
  white-space: nowrap;
}

.marquee-group i {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--ink);
}

@keyframes marquee-scroll {
  to { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); }
}

.story {
  padding-top: 140px;
  padding-bottom: 120px;
}

.story-intro {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  column-gap: 80px;
  align-items: end;
}

.story-intro .section-label {
  grid-column: 1 / -1;
  margin-bottom: 22px;
}

.story-intro h2,
.section-heading h2,
.gallery-heading h2,
.buy-heading h2,
.token-card h2,
.thesis-copy h2,
.community-inner h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3.1rem, 6vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.065em;
}

.story-intro h2 em,
.thesis-copy h2 em {
  color: var(--pink);
  font-style: normal;
  text-shadow: 3px 3px 0 var(--ink);
  -webkit-text-stroke: 1.5px var(--ink);
}

.story-intro > p:last-child,
.section-heading > p:last-child,
.gallery-heading > p:last-child {
  margin: 0;
  color: #575149;
  font-size: 1.08rem;
  line-height: 1.7;
}

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 70px;
}

.dream-card,
.nightmare-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
}

.dream-card {
  background: linear-gradient(160deg, var(--blue-2), var(--paper) 58%, var(--pink-2));
}

.dream-card-copy,
.nightmare-copy {
  position: relative;
  z-index: 4;
  padding: 38px;
}

.dream-card-copy span,
.nightmare-copy span {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.dream-card-copy h3,
.nightmare-copy h3 {
  max-width: 520px;
  margin: 12px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.dream-card-copy p,
.nightmare-copy p {
  max-width: 430px;
  margin: 17px 0 0;
  line-height: 1.6;
}

.dream-media-stack {
  position: absolute;
  inset: 205px 20px 20px;
}

.dream-photo {
  position: absolute;
  box-shadow: 10px 10px 0 rgba(23,23,23,.18);
}

.dream-photo-a {
  width: 55%;
  aspect-ratio: .9;
  left: 2%;
  top: 11%;
  transform: rotate(-8deg);
}

.dream-photo-b {
  width: 47%;
  aspect-ratio: 1.1;
  right: 1%;
  top: 0;
  transform: rotate(8deg);
}

.dream-photo-c {
  width: 44%;
  aspect-ratio: 1.2;
  right: 14%;
  bottom: 0;
  transform: rotate(-3deg);
}

.nightmare-card {
  color: var(--white);
  background: var(--night);
}

.nightmare-grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(55deg) scale(1.8) translateY(25%);
  transform-origin: bottom;
}

.nightmare-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% 10%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,111,111,.38), transparent 67%);
  filter: blur(18px);
}

.nightmare-eyes {
  position: absolute;
  right: 9%;
  top: 12%;
  display: flex;
  gap: 16px;
  transform: rotate(-8deg);
}

.nightmare-eyes i {
  width: 34px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 28px var(--red);
}

.nightmare-photo {
  position: absolute;
  width: 68%;
  aspect-ratio: 1.23;
  right: 5%;
  bottom: 5%;
  transform: rotate(5deg);
  background: repeating-linear-gradient(45deg, #2b2435 0 14px, #17131d 14px 28px);
  border-color: var(--white);
}

.nightmare-photo::before {
  color: var(--white);
}

.nightmare-photo::after {
  background: var(--red);
  border-color: var(--white);
  color: var(--white);
}

.friends {
  padding-bottom: 130px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr .55fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: -34px;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.friend-card {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 34px;
  box-shadow: 10px 12px 0 rgba(23,23,23,.13);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.friend-card:hover {
  transform: translateY(-8px) rotate(-.5deg);
  box-shadow: 15px 20px 0 rgba(23,23,23,.16);
}

.friend-white { background: var(--white); }
.friend-blue { background: var(--blue-2); }
.friend-yellow { background: var(--yellow-2); }

.friend-image {
  width: 100%;
  aspect-ratio: 1 / .86;
  border-radius: 22px;
}

.friend-copy {
  padding: 24px 10px 14px;
}

.friend-copy > span {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.friend-copy h3 {
  margin: 10px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.7rem, 2.7vw, 2.55rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.friend-copy p {
  margin: 14px 0 0;
  line-height: 1.6;
  color: #504b45;
}

.friend-tag {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  transform: rotate(-4deg);
}

.friend-blue .friend-tag { background: var(--blue); }
.friend-yellow .friend-tag { background: var(--yellow); }

.survival {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  padding: 130px 0 150px;
}

.survival::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: radial-gradient(circle at 10% 20%, white 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, white 0 1px, transparent 1.5px);
  background-size: 34px 34px, 52px 52px;
}

.survival-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .65fr;
  gap: 80px;
  align-items: end;
}

.section-label-light {
  color: rgba(255,255,255,.66);
}

.survival-heading h2 {
  margin: 22px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  line-height: .86;
  letter-spacing: -.07em;
}

.survival-copy p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 1.08rem;
  line-height: 1.75;
}

.survival-quote {
  margin-top: 26px;
  padding: 18px;
  border: 2px solid rgba(255,255,255,.34);
  border-radius: 18px;
  color: var(--yellow);
  font-family: ui-monospace, monospace;
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.5;
}

.survival-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 26px;
  overflow: hidden;
}

.survival-step {
  min-height: 285px;
  padding: 28px;
  border-right: 2px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
}

.survival-step:last-child { border-right: 0; }

.survival-step > svg {
  width: 38px;
  height: 38px;
  margin-top: 38px;
  color: var(--pink);
}

.survival-step:nth-child(2) > svg { color: var(--blue); }
.survival-step:nth-child(3) > svg { color: var(--yellow); }
.survival-step:nth-child(4) > svg { color: var(--green); }

.step-number {
  color: rgba(255,255,255,.4);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
}

.survival-step h3 {
  margin: 20px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.55rem;
}

.survival-step p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.58);
  line-height: 1.55;
}

.survival-collage {
  position: relative;
  z-index: 2;
  min-height: 640px;
  margin-top: 82px;
}

.survival-photo {
  position: absolute;
  border-color: rgba(255,255,255,.9);
  box-shadow: 12px 14px 0 rgba(255,255,255,.08);
}

.survival-photo::before { color: var(--white); }
.survival-photo::after { background: var(--night); color: var(--white); border-color: var(--white); }

.survival-photo-a { width: 31%; aspect-ratio: .86; left: 2%; top: 4%; transform: rotate(-8deg); }
.survival-photo-b { width: 29%; aspect-ratio: 1.08; left: 29%; top: 0; transform: rotate(4deg); }
.survival-photo-c { width: 32%; aspect-ratio: .9; right: 3%; top: 7%; transform: rotate(8deg); }
.survival-photo-d { width: 28%; aspect-ratio: 1.12; left: 8%; bottom: 0; transform: rotate(5deg); }
.survival-photo-e { width: 30%; aspect-ratio: .94; left: 36%; bottom: 2%; transform: rotate(-3deg); }
.survival-photo-f { width: 28%; aspect-ratio: 1.08; right: 6%; bottom: 0; transform: rotate(-7deg); }

.survival-stamp {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-7deg);
  padding: 16px 24px;
  border: 5px solid var(--red);
  color: var(--red);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: .05em;
  background: rgba(17,16,25,.84);
  box-shadow: 0 0 0 5px rgba(17,16,25,.8);
}

.thesis {
  padding: 120px 0;
}

.thesis-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 160px 1fr .75fr;
  gap: 38px;
  align-items: center;
  padding: 54px;
  border: 3px solid var(--ink);
  border-radius: 44px;
  background: var(--pink-2);
  box-shadow: 14px 16px 0 var(--ink);
}

.thesis-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -200px;
  top: -220px;
  border-radius: 50%;
  border: 52px solid rgba(255,255,255,.45);
}

.thesis-mark {
  position: relative;
  z-index: 2;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 5.4rem;
  font-weight: 900;
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(-7deg);
}

.thesis-copy,
.thesis-points {
  position: relative;
  z-index: 2;
}

.thesis-copy h2 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
}

.thesis-points {
  display: grid;
  gap: 12px;
}

.thesis-points article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: rgba(255,255,255,.6);
}

.thesis-points strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  font-size: .72rem;
}

.thesis-points span {
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
}

.gallery {
  padding-bottom: 125px;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr .45fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 54px;
}

.gallery-heading .section-label {
  margin-bottom: 18px;
}

.manga-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.manga-panel {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.manga-panel:hover {
  transform: translateY(-6px) rotate(-.5deg);
  box-shadow: 9px 10px 0 var(--ink);
  z-index: 4;
}

.manga-panel.is-hidden-panel {
  display: none;
}

.manga-panel.size-wide { grid-column: span 6; }
.manga-panel.size-medium { grid-column: span 4; }
.manga-panel.size-small { grid-column: span 3; }
.manga-panel.size-tall { grid-column: span 3; grid-row: span 2; min-height: 454px; }
.manga-panel.size-feature { grid-column: span 5; grid-row: span 2; min-height: 454px; }

.manga-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease, transform .7s var(--ease);
}

.manga-panel.has-image img { opacity: 1; }
.manga-panel.has-image:hover img { transform: scale(1.04); }

.manga-panel-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.8), transparent 20%),
    repeating-linear-gradient(45deg, var(--panel-color, var(--pink-2)) 0 16px, var(--paper) 16px 32px);
}

.manga-panel.has-image .manga-panel-fallback { display: none; }

.manga-panel-fallback strong {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.manga-panel-fallback span {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: .68rem;
  font-weight: 900;
}

.manga-panel-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.gallery-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 900;
  border-bottom: 2px solid var(--ink);
}

.source-link svg {
  width: 16px;
  height: 16px;
}

.token {
  padding-bottom: 125px;
}

.token-card {
  padding: 54px;
  border: 3px solid var(--ink);
  border-radius: 44px;
  background: var(--blue-2);
  box-shadow: 14px 16px 0 var(--ink);
}

.token-card-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.token-card h2 {
  margin-top: 18px;
}

.token-seal {
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(7deg);
}

.token-seal strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 3.8rem;
  line-height: 1;
}

.token-seal span {
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
}

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

.token-grid article {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}

.token-grid span,
.token-contract span {
  display: block;
  color: #6b655d;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.token-grid strong {
  display: block;
  margin-top: 8px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  overflow-wrap: anywhere;
}

.token-contract {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 2px dashed var(--ink);
  border-radius: 20px;
  background: rgba(255,255,255,.45);
}

.token-contract > div {
  min-width: 0;
}

.token-contract strong {
  display: block;
  margin-top: 7px;
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy {
  padding-bottom: 130px;
}

.buy-heading {
  margin-bottom: 50px;
}

.buy-heading .section-label {
  margin-bottom: 18px;
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.buy-step {
  min-height: 340px;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 7px 8px 0 rgba(23,23,23,.12);
}

.buy-step:nth-child(2) { background: var(--pink-2); }
.buy-step:nth-child(3) { background: var(--yellow-2); }
.buy-step:nth-child(4) { background: var(--blue-2); }

.buy-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.buy-icon svg {
  width: 27px;
  height: 27px;
}

.buy-step > span {
  display: block;
  margin-top: 42px;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.buy-step h3 {
  margin: 11px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}

.buy-step p {
  margin: 14px 0 0;
  color: #59534c;
  line-height: 1.6;
}

.buy-panel {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--pink);
  box-shadow: 10px 12px 0 var(--ink);
}

.buy-panel-copy > span {
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.buy-panel-copy h3 {
  margin: 9px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: .95;
}

.buy-panel-copy p {
  max-width: 590px;
  margin: 11px 0 0;
  line-height: 1.5;
}

.buy-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.community {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  display: grid;
  place-items: center;
}

.community::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,16,25,.94) 0%, rgba(17,16,25,.68) 55%, rgba(17,16,25,.8) 100%);
  z-index: 1;
}

.community-collage {
  position: absolute;
  inset: 0;
}

.community-photo {
  position: absolute;
  border-color: rgba(255,255,255,.8);
  opacity: .78;
}

.community-photo::before { color: var(--white); }
.community-photo::after { background: var(--night); color: var(--white); border-color: var(--white); }

.community-photo-a { width: 25%; aspect-ratio: .86; right: 3%; top: 7%; transform: rotate(8deg); }
.community-photo-b { width: 22%; aspect-ratio: 1.1; right: 24%; top: 2%; transform: rotate(-5deg); }
.community-photo-c { width: 26%; aspect-ratio: .95; right: 8%; bottom: 0; transform: rotate(-7deg); }
.community-photo-d { width: 21%; aspect-ratio: 1.08; right: 32%; bottom: 3%; transform: rotate(6deg); }
.community-photo-e { width: 18%; aspect-ratio: .85; left: -3%; bottom: 4%; transform: rotate(-8deg); }

.community-inner {
  position: relative;
  z-index: 2;
  padding-block: 100px;
}

.community-inner h2 {
  max-width: 730px;
  margin-top: 20px;
  font-size: clamp(4rem, 8vw, 8.5rem);
}

.community-inner > p:not(.section-label) {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 1.08rem;
  line-height: 1.65;
}

.community-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.site-footer {
  padding-top: 70px;
  padding-bottom: 120px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ink);
}

.footer-brand p {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 42px 0;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links span {
  margin-bottom: 6px;
  color: #777067;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-links a {
  width: max-content;
  font-weight: 800;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: var(--ink);
}

.footer-legal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid rgba(23,23,23,.22);
  color: #756f67;
  font-size: .69rem;
  line-height: 1.6;
}

.footer-legal p {
  max-width: 900px;
  margin: 0;
}

.footer-legal > span {
  font-weight: 900;
  white-space: nowrap;
}

.mobile-buy-bar {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 120px));
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--pink);
  transition:
    transform .35s var(--ease),
    opacity .2s ease,
    visibility 0s linear .35s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.lightbox {
  width: min(930px, calc(100% - 30px));
  max-height: calc(100svh - 30px);
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 18px 18px 0 var(--ink);
}

.lightbox::backdrop {
  background: rgba(17,16,25,.82);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 130px);
  object-fit: contain;
  border-radius: 18px;
  background: var(--white);
}

.lightbox p {
  margin: 13px 50px 0 4px;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.lightbox-close svg {
  width: 19px;
  height: 19px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Motion direction: a handmade manga scrapbook that floats, settles and reacts. */
.hero-feature {
  animation: hero-feature-float 8s ease-in-out infinite;
}

.hero-copy.is-visible h1 span {
  animation: type-pop .75s var(--ease) both;
}

.hero-copy.is-visible h1 span:nth-child(2) { animation-delay: .1s; }
.hero-copy.is-visible h1 span:nth-child(3) { animation-delay: .2s; }

.nightmare-grid {
  animation: nightmare-scan 13s linear infinite;
}

.nightmare-eyes i {
  animation: nightmare-blink 5s ease-in-out infinite;
}

.nightmare-eyes i:nth-child(2) { animation-delay: .18s; }

.survival-stamp {
  animation: stamp-pulse 4.5s ease-in-out infinite;
}

.thesis-mark {
  animation: mark-sway 6s ease-in-out infinite;
}

.token-seal {
  animation: seal-sway 6.5s ease-in-out .4s infinite;
}

.survival-step,
.buy-step,
.token-grid article,
.thesis-points article {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease;
}

.survival-step:hover,
.buy-step:hover,
.token-grid article:hover,
.thesis-points article:hover {
  transform: translateY(-6px);
}

.survival-step:hover { background: rgba(255,255,255,.09); }
.buy-step:hover { box-shadow: 11px 13px 0 rgba(23,23,23,.18); }
.token-grid article:hover,
.thesis-points article:hover { background: var(--white); }

@keyframes hero-feature-float {
  0%, 100% { transform: rotate(1.4deg) translate3d(0, 0, 0); }
  50% { transform: rotate(.3deg) translate3d(0, -8px, 0); }
}

@keyframes type-pop {
  0% { opacity: 0; transform: translateY(18px) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes nightmare-scan {
  0%, 100% { translate: 0 0; }
  50% { translate: -18px 8px; }
}

@keyframes nightmare-blink {
  0%, 42%, 48%, 100% { transform: scaleY(1); opacity: 1; }
  45% { transform: scaleY(.12); opacity: .72; }
}

@keyframes stamp-pulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(-4deg) scale(1.045); }
}

@keyframes mark-sway {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-7px); }
}

@keyframes seal-sway {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}

@media (max-width: 1080px) {
  :root { --shell: min(100% - 28px, 960px); }

  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button { display: inline-grid; }
  .header-social { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-collage {
    min-height: auto;
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

  .story-intro,
  .section-heading,
  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading .section-label {
    margin-bottom: 0;
  }

  .story-intro > p:last-child,
  .section-heading > p:last-child,
  .gallery-heading > p:last-child {
    max-width: 720px;
  }

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

  .friend-card:last-child {
    grid-column: 1 / -1;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .survival-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .survival-copy {
    max-width: 720px;
  }

  .survival-strip {
    grid-template-columns: 1fr 1fr;
  }

  .survival-step:nth-child(2) { border-right: 0; }
  .survival-step:nth-child(-n+2) { border-bottom: 2px solid rgba(255,255,255,.18); }

  .thesis-card {
    grid-template-columns: 130px 1fr;
  }

  .thesis-points {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .token-grid,
  .buy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .manga-panel.size-wide { grid-column: span 8; }
  .manga-panel.size-medium { grid-column: span 6; }
  .manga-panel.size-small { grid-column: span 4; }
  .manga-panel.size-tall { grid-column: span 4; }
  .manga-panel.size-feature { grid-column: span 8; }
}

@media (min-width: 821px) {
  .dream-card,
  .nightmare-card {
    display: grid;
    grid-template-rows: auto minmax(360px, 1fr);
    align-content: start;
  }

  .dream-media-stack {
    position: relative;
    inset: auto;
    min-height: 360px;
    margin: 0 20px 20px;
  }

  .nightmare-photo {
    position: relative;
    inset: auto;
    z-index: 2;
    align-self: end;
    justify-self: end;
    margin: 0 5% 5% 0;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 24px);
    --header-height: 68px;
  }

  .cursor-blob { display: none; }

  .site-header {
    inset: 8px 8px auto;
    min-height: 58px;
    padding: 6px 6px 6px 12px;
  }

  .wordmark-main { font-size: .94rem; }
  .wordmark-jp { display: none; }
  .wordmark-dot { width: 12px; height: 12px; }
  .site-logo { width: 48px; height: 48px; }
  .header-actions .button { display: none; }
  .menu-button { width: 44px; height: 44px; }

  .mobile-menu {
    padding: 94px 18px 26px;
  }

  .hero {
    min-height: auto;
    gap: 42px;
    padding-top: 112px;
    padding-bottom: 72px;
  }

  .hero-kicker {
    font-size: .66rem;
  }

  .hero-logo {
    width: min(230px, 62vw);
    margin-left: 10px;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.5rem);
  }

  .hero h1 span:nth-child(2) {
    text-shadow: 3px 3px 0 var(--ink);
    -webkit-text-stroke: 1.5px var(--ink);
  }

  .hero-description {
    margin-top: 28px;
    font-size: 1rem;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 52px;
    width: 100%;
  }

  .contract-card {
    align-items: stretch;
    padding: 12px;
  }

  .contract-meta {
    padding: 4px 0 4px 4px;
  }

  .contract-card button span { display: none; }
  .contract-card button { width: 48px; padding: 0; justify-content: center; }

  .hero-note {
    display: grid;
    gap: 5px;
  }

  .hero-collage {
    min-height: auto;
    padding: 20px 5px 30px;
  }

  .hero-collage::before {
    inset: 8% 0 2% 3%;
  }

  .hero-feature {
    padding: 9px;
    border-radius: 24px;
    box-shadow: 10px 12px 0 var(--ink);
  }

  .hero-feature-image-wrap {
    border-radius: 15px;
  }

  .hero-feature figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 11px 4px 3px;
  }

  .hero-feature figcaption strong {
    max-width: none;
    text-align: left;
  }

  .hero-feature-tape {
    width: 82px;
    height: 25px;
  }

  .hero-feature-tape-right {
    bottom: 57px;
  }

  .hero-feature-note {
    right: 1%;
    font-size: .6rem;
  }

  .marquee-track {
    --marquee-gap: 22px;
    padding-block: 12px;
    animation-duration: 20s;
  }

  .marquee-group span {
    font-size: .95rem;
  }

  .story {
    padding-top: 100px;
    padding-bottom: 92px;
  }

  .story-intro h2,
  .section-heading h2,
  .gallery-heading h2,
  .buy-heading h2,
  .token-card h2,
  .thesis-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  .story-split {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 46px;
  }

  .dream-card,
  .nightmare-card {
    min-height: 0;
    border-radius: 30px;
  }

  .dream-card-copy,
  .nightmare-copy {
    padding: 28px 24px;
  }

  .dream-media-stack {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 16px 18px;
  }

  .dream-photo,
  .dream-photo-a,
  .dream-photo-b,
  .dream-photo-c {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: var(--image-aspect, 2000 / 1405);
    transform: none;
  }

  .dream-photo-a {
    grid-column: 1 / -1;
  }

  .dream-photo-b {
    transform: rotate(1.5deg);
  }

  .dream-photo-c {
    transform: rotate(-1.5deg);
  }

  .nightmare-photo {
    position: relative;
    inset: auto;
    z-index: 2;
    width: calc(100% - 32px);
    aspect-ratio: var(--image-aspect, 2000 / 1405);
    margin: 8px 16px 18px;
    transform: rotate(1deg);
  }

  .dream-photo img,
  .nightmare-photo img {
    object-fit: contain;
  }

  .friends {
    padding-bottom: 92px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

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

  .friend-card,
  .friend-card:last-child {
    grid-column: auto;
    display: block;
    min-height: 0;
  }

  .friend-image {
    aspect-ratio: var(--image-aspect, 2000 / 1405);
  }

  .friend-image img {
    object-fit: contain;
  }

  .friend-copy {
    padding: 22px 8px 48px;
  }

  .survival {
    padding: 96px 0 110px;
  }

  .survival-heading h2 {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
  }

  .survival-strip {
    grid-template-columns: 1fr;
    border-radius: 22px;
    margin-top: 46px;
  }

  .survival-step {
    min-height: 245px;
    border-right: 0;
    border-bottom: 2px solid rgba(255,255,255,.18);
  }

  .survival-step:nth-child(2) { border-bottom: 2px solid rgba(255,255,255,.18); }
  .survival-step:last-child { border-bottom: 0; }

  .survival-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
    margin-top: 54px;
    padding: 6px;
    overflow: clip;
  }

  .survival-photo,
  .survival-photo-a,
  .survival-photo-b,
  .survival-photo-c,
  .survival-photo-d,
  .survival-photo-e,
  .survival-photo-f {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: var(--image-aspect, 2000 / 1405);
  }

  .survival-photo-a { transform: rotate(-1.5deg); }
  .survival-photo-b { transform: rotate(1deg); }
  .survival-photo-c { transform: rotate(1.5deg); }
  .survival-photo-d { transform: rotate(-1deg); }
  .survival-photo-e { transform: rotate(1deg); }
  .survival-photo-f { transform: rotate(-1.5deg); }

  .survival-photo img {
    object-fit: contain;
  }

  .survival-stamp {
    top: 50%;
    font-size: 1.25rem;
    padding: 12px 16px;
    border-width: 4px;
  }

  .thesis {
    padding: 92px 0;
  }

  .thesis-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 24px;
    border-radius: 30px;
    box-shadow: 8px 10px 0 var(--ink);
  }

  .thesis-mark {
    width: 104px;
    font-size: 3.5rem;
  }

  .thesis-points {
    grid-template-columns: 1fr;
  }

  .gallery {
    padding-bottom: 92px;
  }

  .gallery-heading {
    margin-bottom: 34px;
  }

  .manga-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .manga-panel,
  .manga-panel.size-wide,
  .manga-panel.size-medium,
  .manga-panel.size-small,
  .manga-panel.size-tall,
  .manga-panel.size-feature {
    grid-column: span 1;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: var(--image-aspect, 2000 / 1405);
  }

  .manga-panel:nth-child(5n + 1),
  .manga-panel:nth-child(7n + 2) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .manga-panel img {
    object-fit: contain;
  }

  .manga-panel-caption {
    font-size: .55rem;
  }

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

  .source-link {
    justify-content: center;
    padding-top: 8px;
    border-bottom: 0;
  }

  .token {
    padding-bottom: 92px;
  }

  .token-card {
    padding: 30px 22px;
    border-radius: 30px;
    box-shadow: 8px 10px 0 var(--ink);
  }

  .token-card-top {
    grid-template-columns: 1fr;
  }

  .token-seal {
    width: 110px;
    grid-row: 1;
    justify-self: end;
    margin-bottom: -80px;
    opacity: .9;
  }

  .token-seal strong { font-size: 2.6rem; }

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

  .token-grid article {
    padding: 17px;
  }

  .token-contract {
    align-items: stretch;
    flex-direction: column;
  }

  .token-contract strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .token-contract button {
    width: 100%;
    justify-content: center;
  }

  .buy {
    padding-bottom: 100px;
  }

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

  .buy-step {
    min-height: 0;
  }

  .buy-step > span {
    margin-top: 32px;
  }

  .buy-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 26px 22px;
    border-radius: 26px;
    box-shadow: 7px 8px 0 var(--ink);
  }

  .buy-panel-actions {
    display: grid;
  }

  .community {
    min-height: 720px;
  }

  .community::after {
    background: rgba(17,16,25,.82);
  }

  .community-inner {
    padding-block: 90px 120px;
  }

  .community-inner h2 {
    font-size: clamp(4rem, 19vw, 6.7rem);
  }

  .community-photo {
    aspect-ratio: var(--image-aspect, 2000 / 1405);
  }

  .community-photo img {
    object-fit: contain;
  }

  .community-photo-a { width: 44%; right: 3%; top: 4%; transform: rotate(2deg); }
  .community-photo-b { width: 42%; right: 53%; top: 2%; transform: rotate(-2deg); }
  .community-photo-c { width: 44%; right: 3%; bottom: 3%; transform: rotate(-2deg); }
  .community-photo-d { width: 42%; right: 53%; bottom: 2%; transform: rotate(2deg); }
  .community-photo-e { display: none; }

  .community-buttons {
    display: grid;
  }

  .site-footer {
    padding-top: 54px;
    padding-bottom: 120px;
  }

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

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mobile-buy-bar {
    position: fixed;
    z-index: 60;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 7px 7px 15px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: rgba(255,250,240,.95);
    box-shadow: 0 8px 0 rgba(23,23,23,.16);
    backdrop-filter: blur(16px);
  }

  .mobile-buy-bar > div {
    min-width: 0;
    display: grid;
    line-height: 1.1;
  }

  .mobile-buy-bar span {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
  }

  .mobile-buy-bar small {
    color: #716b63;
    font-size: .64rem;
  }

  .mobile-buy-bar a {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pink);
    border: 2px solid var(--ink);
    font-weight: 900;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 410px) {
  .hero h1 { font-size: 18.5vw; }
  .hero-collage { min-height: auto; }
  .token-grid { grid-template-columns: 1fr; }
  .manga-wall { grid-template-columns: 1fr; }
  .manga-panel,
  .manga-panel:nth-child(5n + 1),
  .manga-panel:nth-child(7n + 2) {
    grid-column: 1;
    min-height: 0;
  }
  .footer-links { grid-template-columns: 1fr; }
  .footer-links > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
    transform: none;
  }
  .grain,
  .grain::before,
  .grain::after {
    animation: none;
    transform: none;
  }
}
