:root {
  --yellow: #f5c400;
  --yellow-2: #ffd24a;
  --ink: #17140f;
  --ink-2: #5c5346;
  --paper: #fff8ec;
  --paper-2: #fffdf7;
  --line: rgba(23, 20, 15, 0.1);
  --pink: #ff9bb8;
  --blue: #7ec8ea;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", "Noto Serif SC", serif;
  --font-sans: "Syne", "Noto Sans SC", sans-serif;
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--yellow);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor label {
  cursor: none;
}

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

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

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

button {
  background: none;
  border: 0;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 10001;
  background: var(--ink);
  color: var(--yellow);
  padding: 8px 12px;
}
.skip:focus {
  top: 16px;
}

.is-hidden,
[hidden] {
  display: none !important;
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10002;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor {
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.2s;
}
.cursor.is-hover {
  width: 64px;
  height: 64px;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}
body.has-cursor .cursor,
body.has-cursor .cursor-dot {
  opacity: 1;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--yellow);
  display: grid;
  place-items: center;
  transition: transform 0.9s var(--ease);
}
.loader.is-done {
  transform: translateY(-110%);
  pointer-events: none;
}
.loader-inner {
  text-align: center;
}
.loader-orbit {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
}
.loader-char {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  animation: floaty 2.8s ease-in-out infinite;
}
.loader-word {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  letter-spacing: 0.08em;
  animation: track-in 1.1s var(--ease) both;
}
.loader-sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.loader-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  transition: width 0.8s var(--ease);
}
.loader .note {
  position: absolute;
  font-size: 22px;
  color: var(--ink);
  animation: note-pop 2.4s ease-in-out infinite;
}
.loader .n1 { left: 8px; top: 28px; color: var(--pink); animation-delay: 0s; }
.loader .n2 { right: 12px; top: 18px; color: var(--blue); animation-delay: 0.4s; }
.loader .n3 { right: 36px; bottom: 24px; color: #e8b000; animation-delay: 0.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes track-in {
  from { letter-spacing: 0.38em; opacity: 0; }
  to { letter-spacing: 0.08em; opacity: 1; }
}
@keyframes note-pop {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-10px) scale(1.08); opacity: 1; }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  mix-blend-mode: multiply;
  transition: background 0.35s var(--ease), mix-blend-mode 0.2s, backdrop-filter 0.35s;
}
.nav.is-solid {
  background: rgba(255, 248, 236, 0.86);
  mix-blend-mode: normal;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
body.lb-open .nav {
  opacity: 0;
  pointer-events: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 13px;
  justify-self: start;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang,
.sound {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.sound[aria-pressed="false"] .sound-waves {
  opacity: 0.25;
}
.sound[aria-pressed="true"] .sound-waves {
  opacity: 1;
}
.sound.is-waiting .sound-waves {
  animation: sound-wait 1.1s ease-in-out infinite;
}
@keyframes sound-wait {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-video,
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}
.hero-video {
  position: absolute;
  inset: 0;
}
.hero-poster {
  position: absolute;
  inset: 0;
  transition: opacity 0.6s var(--ease);
}
.hero-video.is-ready + .hero-poster {
  opacity: 0;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 196, 0, 0.92) 0%, rgba(245, 196, 0, 0.55) 38%, rgba(245, 196, 0, 0.08) 68%),
    linear-gradient(180deg, transparent 60%, rgba(245, 196, 0, 0.35) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: calc(var(--pad) + 72px) var(--pad) 88px;
  max-width: 760px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-style: italic;
}
.hero-line {
  margin-top: 22px;
  max-width: 28ch;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-index {
  position: absolute;
  right: var(--pad);
  bottom: 36px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.85;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 22px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--yellow);
}

/* Tape */
.tape {
  background: var(--ink);
  overflow: hidden;
  padding: 18px 0;
}
.tape-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.tape-group {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}
.tape-group img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #fff;
  background: var(--yellow);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* About */
.about,
.archive,
.studio,
.tokenomics {
  scroll-margin-top: 80px;
}

.about {
  padding: clamp(72px, 12vw, 140px) var(--pad);
  background: var(--paper);
}
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.about-stage {
  position: relative;
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 40px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-char {
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
  animation: floaty 4s ease-in-out infinite;
}
.about-stage .note {
  position: absolute;
  font-size: 28px;
  animation: note-pop 3s ease-in-out infinite;
}
.about-stage .n1 { left: 18%; top: 16%; color: var(--pink); }
.about-stage .n2 { right: 16%; top: 22%; color: var(--blue); }
.about-stage .n3 { right: 22%; bottom: 18%; color: #d4a017; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.about h2,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}
.prose {
  margin-top: 22px;
  max-width: 46ch;
}
.prose p {
  font-size: 16px;
  line-height: 1.85;
  color: #3a342a;
  margin-bottom: 12px;
}
.rules {
  list-style: none;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  max-width: 420px;
}
.rules li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.rules span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}
.rules b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}

/* Sections */
.section-head {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}
.section-note {
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Tokenomics */
.tokenomics {
  padding: 0 var(--pad) clamp(72px, 10vw, 120px);
  background: var(--paper);
}
.tok-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.tok-stage {
  position: relative;
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 40px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tok-stage img {
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
  animation: floaty 4s ease-in-out infinite;
}
.tok-stage .note {
  position: absolute;
  font-size: 26px;
  animation: note-pop 3s ease-in-out infinite;
}
.tok-stage .n1 { left: 16%; top: 14%; color: var(--pink); }
.tok-stage .n2 { right: 14%; top: 20%; color: var(--blue); }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px 20px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72, "SOFT" 20;
}
.mech-card {
  margin-top: 14px;
  background: #1c1408;
  color: var(--paper);
  border-radius: 16px;
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
}
.mech-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 140px;
  height: 140px;
  background: var(--yellow);
  filter: blur(56px);
  opacity: 0.22;
  border-radius: 50%;
  pointer-events: none;
}
.mech-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin-bottom: 10px;
}
.mech-card p {
  color: rgba(255, 248, 236, 0.72);
  line-height: 1.75;
  font-size: 15px;
  max-width: 46ch;
}
.disclaimer {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--yellow);
  border: 1px solid rgba(245, 196, 0, 0.35);
  padding: 7px 12px;
  border-radius: 999px;
}
.ca-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}
.ca-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  flex-shrink: 0;
}
.ca-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-copy {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
}
.ca-copy:hover {
  background: var(--paper);
}
.ca-buy {
  height: 40px;
  padding: 0 18px;
  flex-shrink: 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 600;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--yellow);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Archive */
.archive {
  padding: 0 var(--pad) clamp(72px, 10vw, 120px);
  background: var(--paper);
}
.archive-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  border-radius: 8px;
  isolation: isolate;
  min-height: 240px;
}
.card.wide { grid-column: span 8; min-height: 380px; }
.card.full { grid-column: span 12; min-height: 52vh; }
.card.sq { grid-column: span 4; aspect-ratio: 1; min-height: 0; }
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover img {
  transform: scale(1.05);
}
.card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(245, 196, 0, 0.92));
  transform: translateY(8px);
  opacity: 0.95;
}
.card-meta span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  margin-bottom: 4px;
}
.card-meta b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}
.card-meta p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.card.full .card-meta,
.card.wide .card-meta {
  background: none;
  left: 22px;
  right: auto;
  bottom: 20px;
  max-width: 34ch;
  transform: none;
}

/* Studio */
.studio {
  padding: clamp(72px, 10vw, 120px) var(--pad);
  background: #1c1408;
  color: var(--paper);
}
.studio .eyebrow,
.studio .section-note {
  color: rgba(255, 248, 236, 0.55);
}
.studio h2 {
  color: var(--paper);
}
.studio-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.canvas-stage {
  background: #110e09;
  border: 1px solid rgba(255, 248, 236, 0.08);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 520px;
  position: relative;
}
.canvas-stage.is-drag {
  outline: 1px dashed var(--yellow);
}
#memeCanvas {
  width: min(100%, 540px);
  height: auto;
  background: var(--yellow);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}
.drop-hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 248, 236, 0.35);
}
.studio-panel {
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 248, 236, 0.5);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.thumbs button {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  padding: 0;
}
.thumbs button.is-on {
  border-color: var(--yellow);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
.segmented button {
  height: 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 248, 236, 0.6);
}
.segmented button.is-on {
  background: var(--yellow);
  color: var(--ink);
}
.studio-panel input,
.studio-panel textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 248, 236, 0.18);
  padding: 10px 0;
  outline: none;
  color: var(--paper);
  resize: none;
}
.studio-panel input:focus,
.studio-panel textarea:focus {
  border-bottom-color: var(--yellow);
}
.studio-panel input::placeholder,
.studio-panel textarea::placeholder {
  color: rgba(255, 248, 236, 0.28);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 248, 236, 0.78);
}
.chips button:hover,
.chips button.is-on {
  border-color: var(--yellow);
  color: var(--yellow);
}
.studio-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 8px;
}
.studio .btn:not(.btn-ghost) {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.studio .btn:not(.btn-ghost):hover {
  background: transparent;
  color: var(--yellow);
}
.studio .btn-ghost {
  color: var(--paper);
  border-color: rgba(255, 248, 236, 0.25);
}
.studio .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}
.file-btn {
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--yellow);
  padding: 56px var(--pad) 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid rgba(23, 20, 15, 0.15);
  padding-bottom: 28px;
}
.footer-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(48px, 10vw, 120px);
  line-height: 0.8;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.footer-mark {
  width: min(260px, 42vw);
  border-radius: 12px;
  border: 2px solid var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #17140f;
  color: var(--paper);
  display: grid;
  place-items: center;
  padding: 64px 24px 40px;
}
.lb-figure {
  max-width: min(640px, 92vw);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.lb-figure img {
  width: auto;
  max-width: 100%;
  max-height: 54vh;
  height: auto;
  background: var(--yellow);
  border-radius: 8px;
}
.lb-figure figcaption span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 248, 236, 0.5);
  margin-bottom: 10px;
}
.lb-figure b {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
}
.lb-figure p {
  margin: 10px auto 20px;
  line-height: 1.7;
  color: rgba(255, 248, 236, 0.7);
  max-width: 36ch;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  color: var(--paper);
  font-size: 36px;
  width: 48px;
  height: 48px;
  line-height: 1;
}
.lb-close { top: 16px; right: 20px; font-size: 42px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .btn-ghost {
  color: var(--paper);
  border-color: rgba(255, 248, 236, 0.35);
}
.lightbox .btn-ghost:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
  animation-play-state: paused;
}
.reveal.is-in {
  animation-play-state: running;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 18px var(--pad) 24px;
    border-bottom: 1px solid var(--line);
    mix-blend-mode: normal;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .about-grid,
  .studio-layout,
  .tok-layout {
    grid-template-columns: 1fr;
  }
  .ca-row {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 12px;
  }
  .ca-text {
    flex: 1 1 100%;
    order: 3;
    padding: 4px 8px 8px;
  }
  .ca-buy {
    margin-left: auto;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .card.wide,
  .card.sq,
  .card.full { grid-column: span 12; }
  .card.wide,
  .card.full { min-height: 240px; aspect-ratio: 16 / 10; }
  .card.sq { aspect-ratio: 1; }
  .hero-index { display: none; }
  .footer-top { flex-direction: column; align-items: start; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(245, 196, 0, 0.2) 12%, rgba(245, 196, 0, 0.55) 48%, rgba(245, 196, 0, 0.94) 78%);
  }
  .hero-video,
  .hero-poster {
    object-position: 82% 28%;
  }
}

@media (max-width: 640px) {
  .rules { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .studio-actions { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-copy { padding-bottom: 72px; }
  .scroll-cue { display: none; }
  .canvas-stage { min-height: 360px; }
  .hero h1 { font-size: clamp(56px, 18vw, 88px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-char,
  .about-char,
  .tape-track,
  .scroll-cue span,
  .note {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
