@font-face {
  font-family: "Rotmates Display";
  src: url("/fonts/luckiest-guy.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Rotmates Pixel";
  src: url("/fonts/supermario286rusbylyajka.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #15120f;
  --cream: #f5e5c6;
  --paper: #ddc9a8;
  --mustard: #f8b72b;
  --orange: #ec5c24;
  --green: #337f59;
  --teal: #0f665e;
  --purple: #775185;
  --red: #b9332d;
  --black: #100e0c;
  --line: clamp(2px, .22vw, 4px);
  --shadow: 8px 9px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 105px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

button, a { font: inherit; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
video:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 18px;
  top: 14px;
  padding: 11px 15px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 1000;
  text-transform: uppercase;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

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

.grain {
  position: fixed;
  inset: -70%;
  z-index: 100;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain-shift .24s steps(2) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(3%, -2%); }
  50% { transform: translate(-2%, 3%); }
  75% { transform: translate(2%, 2%); }
}

.site-nav {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 30px));
  min-height: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 12px 10px 20px;
  border: var(--line) solid var(--ink);
  border-radius: 22px 17px 25px 18px;
  background: rgba(245, 229, 198, .94);
  color: var(--ink);
  box-shadow: 5px 6px 0 rgba(16, 14, 12, .84);
  backdrop-filter: blur(12px);
}

.nav-logo {
  text-decoration: none;
  font-family: "Rotmates Display", Impact, sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: .02em;
  transform: rotate(-1.5deg);
}

.nav-logo span { color: var(--orange); -webkit-text-stroke: 1px var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 24px); }
.nav-links a { text-decoration: none; font-weight: 900; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.nav-menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  border-radius: 12px 9px 14px 10px;
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: .7rem;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-menu-toggle b { font-size: 1rem; }

.nav-ca {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 3px solid var(--ink);
  border-radius: 12px 9px 14px 10px;
  background: var(--purple);
  color: white;
  box-shadow: 3px 4px 0 var(--ink);
  font-size: .68rem;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-ca span { color: var(--mustard); font-family: "Rotmates Pixel", Impact, sans-serif; }
.nav-ca:hover,
.nav-ca.copied { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); background: var(--teal); }

.nav-watch,
.clay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 3px solid var(--ink);
  border-radius: 15px 12px 17px 11px;
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 1000;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.nav-watch:hover,
.clay-button:hover { transform: translate(3px, 3px) rotate(-1deg); box-shadow: 1px 2px 0 var(--ink); background: #ffd56b; }
.clay-button.dark { color: var(--cream); background: var(--ink); box-shadow: 5px 6px 0 rgba(0,0,0,.32); }
.clay-button.dark:hover { background: var(--teal); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #20140d;
  border-bottom: 6px solid var(--ink);
}

.hero-video,
.hero-fallback,
.hero-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; filter: saturate(1.1) contrast(1.03); }
.hero-fallback { object-fit: cover; }
.hero-wash {
  background:
    linear-gradient(180deg, rgba(10,8,5,.08) 25%, rgba(10,8,5,.82) 100%),
    linear-gradient(90deg, rgba(16,14,12,.64), transparent 58%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 140px 0 clamp(70px, 10vh, 120px);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px 6px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px 14px 8px 12px;
  box-shadow: 4px 5px 0 var(--ink);
  font-family: "Rotmates Pixel", Impact, sans-serif;
  font-size: clamp(.74rem, 1vw, .95rem);
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.hero h1 {
  max-width: 950px;
  margin: 0;
  font-family: "Rotmates Display", Impact, sans-serif;
  font-size: clamp(5rem, 14vw, 12.8rem);
  line-height: .72;
  letter-spacing: -.015em;
  color: var(--mustard);
  -webkit-text-stroke: clamp(3px, .42vw, 7px) var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(8px 10px 0 rgba(15, 11, 7, .88));
  transform: rotate(-1.5deg);
}

.hero-deck {
  max-width: 680px;
  margin: 26px 0 24px;
  font-family: "Rotmates Pixel", Impact, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  line-height: 1.28;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--ink);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { max-width: 280px; font-weight: 800; font-size: .78rem; line-height: 1.35; text-transform: uppercase; color: #fff0d6; }

.scroll-cue {
  position: absolute;
  right: 4vw;
  bottom: 42px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: scroll-bob 1.4s ease-in-out infinite alternate;
}

@keyframes scroll-bob { to { transform: translateY(10px); } }

.marquee {
  overflow: hidden;
  border-bottom: 5px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  transform: rotate(-.35deg) scale(1.01);
}

.marquee-track {
  width: max-content;
  padding: 15px 0 10px;
  font-family: "Rotmates Display", Impact, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

@keyframes marquee { to { transform: translateX(-50%); } }

.section {
  position: relative;
  padding: clamp(80px, 11vw, 150px) max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 6px solid var(--ink);
}

.section-title {
  margin: 0;
  font-family: "Rotmates Display", Impact, sans-serif;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: .84;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.section-lede { max-width: 680px; margin: 28px 0 0; font-size: clamp(1.12rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 700; }

.manifesto { background: var(--cream); color: var(--ink); overflow: hidden; }
.manifesto::after {
  content: "BAD IDEAS";
  position: absolute;
  right: -2vw;
  bottom: -3vw;
  font-family: "Rotmates Display", Impact, sans-serif;
  font-size: clamp(5rem, 17vw, 16rem);
  line-height: .7;
  color: rgba(185, 51, 45, .11);
  transform: rotate(-5deg);
  pointer-events: none;
}

.manifesto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: center;
}

.manifesto-photo {
  position: relative;
  min-height: 520px;
  border: 5px solid var(--ink);
  border-radius: 42px 23px 35px 19px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.4deg);
  background: var(--teal);
}

.manifesto-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.sticker {
  position: absolute;
  z-index: 2;
  right: -18px;
  top: 28px;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 4px solid var(--ink);
  border-radius: 47% 53% 45% 55% / 54% 39% 61% 46%;
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 6px 7px 0 var(--ink);
  font-family: "Rotmates Pixel", Impact, sans-serif;
  text-align: center;
  font-size: .8rem;
  line-height: 1.15;
  transform: rotate(9deg);
}

.cast { background: var(--green); overflow: hidden; }
.cast-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.cast-head p { max-width: 420px; margin: 0 0 8px; font-weight: 800; line-height: 1.35; }

.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cast-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 24px 16px 30px 19px;
  background: var(--paper);
  color: var(--cream);
  box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .2s ease, box-shadow .2s ease;
}
.cast-card:hover { transform: translateY(-10px) rotate(0); box-shadow: 10px 14px 0 var(--ink); }
.cast-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cast-card:hover img { transform: scale(1.035); }
.cast-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 43%, rgba(12,10,8,.9)); }
.cast-copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; }
.cast-copy h3 { margin: 0; font-family: "Rotmates Display", Impact, sans-serif; font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: .88; color: var(--mustard); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.cast-copy p { margin: 9px 0 0; font-weight: 800; line-height: 1.26; }

.episode { background: #221812; }
.episode-layout { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 46px); }
.episode-copy { width: 100%; max-width: 1040px; }
.episode-frame {
  position: relative;
  width: 100%;
  border: 5px solid var(--cream);
  border-radius: 26px 19px 30px 17px;
  box-shadow: 12px 14px 0 var(--orange);
  overflow: hidden;
  background: #000;
  transform: rotate(-.6deg);
}
.episode-frame::before { content: ""; display: block; padding-top: 56.25%; }
.episode-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.episode-copy h2 { color: var(--mustard); }
.episode-number { font-family: "Rotmates Pixel", Impact, sans-serif; color: var(--orange); }
.episode-copy p { max-width: 940px; margin-bottom: 0; font-size: clamp(1.06rem, 1.8vw, 1.35rem); line-height: 1.45; font-weight: 700; }
.episode-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 20px; }
.episode-meta span { padding: 7px 10px 5px; border: 2px solid var(--cream); border-radius: 99px; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.episode-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.episode-queue-status { font-family: "Rotmates Pixel", Impact, sans-serif; color: var(--mustard); font-size: .72rem; letter-spacing: .04em; }

.archive { background: var(--cream); color: var(--ink); }
.archive-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.archive-head > p { max-width: 470px; margin: 0 0 8px; font-weight: 800; line-height: 1.4; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.archive-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 21px 14px 24px 16px;
  box-shadow: 6px 7px 0 var(--ink);
  background: #1f1712 url("/media/runtime/brand/rotmates-animated-logo-final.png") center / cover no-repeat;
  color: var(--cream);
  transform: rotate(var(--tilt, 0deg));
}
.archive-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,5,.06), rgba(10,8,5,.94)); }
.archive-card > * { position: relative; z-index: 1; }
.archive-date { font-family: "Rotmates Pixel", Impact, sans-serif; color: var(--mustard); font-size: .68rem; text-transform: uppercase; }
.archive-card h3 { margin: 9px 0 10px; font-family: "Rotmates Display", Impact, sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: .9; }
.archive-card p { margin: 0 0 18px; font-size: .86rem; line-height: 1.35; font-weight: 700; opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.archive-card button { align-self: flex-start; min-height: 38px; padding: 0 13px; font-size: .69rem; }
.archive-loading { grid-column: 1 / -1; padding: 30px; border: 3px dashed var(--ink); border-radius: 18px; font-weight: 900; text-transform: uppercase; text-align: center; }
.archive-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 42px; }
.archive-pagination[hidden] { display: none; }
.archive-pagination button,
.archive-pages button {
  width: 46px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 13px 9px 14px 10px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  font-weight: 1000;
  cursor: pointer;
}
.archive-pages { display: flex; gap: 9px; }
.archive-pages button.active { background: var(--orange); color: white; transform: translate(2px, 2px); box-shadow: 2px 3px 0 var(--ink); }
.archive-pagination button:disabled { opacity: .35; cursor: not-allowed; }

.artifacts { background: var(--teal); overflow: hidden; }
.artifacts-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.artifacts-head > p { max-width: 470px; margin: 0 0 8px; font-weight: 800; line-height: 1.4; }
.artifact-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 30px; }
.artifact-tab {
  min-height: 48px;
  padding: 0 20px;
  border: 3px solid var(--ink);
  border-radius: 14px 10px 16px 11px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  font-family: "Rotmates Pixel", Impact, sans-serif;
  font-size: .78rem;
  text-transform: uppercase;
  cursor: pointer;
}
.artifact-tab.active { background: var(--mustard); transform: translate(3px, 3px) rotate(-1deg); box-shadow: 1px 2px 0 var(--ink); }
.artifact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.artifact-card { overflow: hidden; border: 5px solid var(--ink); border-radius: 24px 15px 28px 18px; background: var(--cream); color: var(--ink); box-shadow: 8px 9px 0 var(--ink); }
.artifact-card.video-artifact { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(190px, 1fr); align-items: stretch; }
.artifact-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #080706; border-bottom: 4px solid var(--ink); }
.artifact-media video,
.artifact-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.artifact-media.board { aspect-ratio: 4 / 3; }
.artifact-media.phone {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 9 / 16;
  justify-self: center;
  padding: 11px;
  border-right: 4px solid var(--ink);
  border-bottom: 0;
  background: #080706;
}
.artifact-media.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 34%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 0 0 9px 9px;
  background: var(--ink);
  pointer-events: none;
}
.artifact-media.phone video { object-fit: contain; border-radius: 20px; background: #000; }
.artifact-card.video-artifact .artifact-body { align-self: center; }
.artifact-body { padding: 20px; }
.artifact-type { font-family: "Rotmates Pixel", Impact, sans-serif; color: var(--orange); font-size: .68rem; text-transform: uppercase; }
.artifact-body h3 { margin: 8px 0 10px; font-family: "Rotmates Display", Impact, sans-serif; font-size: clamp(2rem, 3vw, 3rem); line-height: .9; }
.artifact-body p { margin: 0 0 18px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.artifact-body .clay-button { font-size: .7rem; min-height: 40px; }
.artifact-loading { grid-column: 1 / -1; padding: 30px; border: 3px dashed var(--cream); border-radius: 18px; font-weight: 900; text-transform: uppercase; text-align: center; }
.artifact-pagination { flex-wrap: wrap; }
.artifact-pagination .archive-pages { flex-wrap: wrap; justify-content: center; }

.board-dialog {
  width: min(1100px, calc(100% - 28px));
  max-height: 90vh;
  padding: 0;
  border: 5px solid var(--ink);
  border-radius: 24px 16px 28px 18px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 12px 14px 0 rgba(0,0,0,.65);
}
.board-dialog::backdrop { background: rgba(10,8,6,.84); backdrop-filter: blur(8px); }
.board-dialog-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 4px solid var(--ink); background: var(--mustard); }
.board-dialog-head span { font-family: "Rotmates Pixel", Impact, sans-serif; font-size: .65rem; }
.board-dialog-head h2 { margin: 4px 0 0; font-family: "Rotmates Display", Impact, sans-serif; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: .9; }
.board-dialog-head button { flex: 0 0 auto; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; }
.board-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.board-pages img { width: 100%; display: block; border: 3px solid var(--ink); border-radius: 10px; background: white; }

.engine { background: var(--mustard); color: var(--ink); overflow: hidden; }
.engine-grid { display: grid; grid-template-columns: minmax(270px, .76fr) minmax(0, 1.24fr); gap: clamp(45px, 8vw, 110px); align-items: start; }
.engine-copy { position: sticky; top: 120px; }
.engine-copy p { font-weight: 800; line-height: 1.45; font-size: 1.08rem; }
.pipeline { display: grid; gap: 16px; counter-reset: steps; }
.pipeline-step {
  counter-increment: steps;
  position: relative;
  min-height: 132px;
  padding: 24px 26px 22px 100px;
  border: 4px solid var(--ink);
  border-radius: 20px 13px 24px 15px;
  box-shadow: 7px 8px 0 var(--ink);
  background: var(--cream);
  transform: translateX(var(--shift, 0));
}
.pipeline-step::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 22px;
  font-family: "Rotmates Display", Impact, sans-serif;
  font-size: 2.6rem;
  color: var(--orange);
}
.pipeline-step h3 { margin: 0; font-family: "Rotmates Pixel", Impact, sans-serif; text-transform: uppercase; font-size: 1.05rem; }
.pipeline-step p { margin: 10px 0 0; line-height: 1.4; font-weight: 700; }
.pipeline-step.live::after { content: "LIVE"; position: absolute; right: 16px; top: 14px; padding: 5px 7px 3px; background: var(--red); color: white; border: 2px solid var(--ink); border-radius: 6px; font-size: .62rem; font-weight: 1000; transform: rotate(5deg); }

.ticker-section {
  background: var(--purple);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.ticker-mark {
  margin: 0;
  font-family: "Rotmates Display", Impact, sans-serif;
  font-size: clamp(4rem, 15vw, 14rem);
  line-height: .78;
  color: var(--mustard);
  -webkit-text-stroke: clamp(3px, .4vw, 7px) var(--ink);
  paint-order: stroke fill;
  text-shadow: 10px 12px 0 var(--ink);
  transform: rotate(-2deg);
}
.ticker-section .section-lede { margin-left: auto; margin-right: auto; max-width: 760px; }
.contract-card {
  width: min(920px, 100%);
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 18px 18px 24px;
  border: 5px solid var(--ink);
  border-radius: 23px 15px 27px 17px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 9px 10px 0 var(--ink);
  text-align: left;
  transform: rotate(-.45deg);
}
.contract-copy { min-width: 0; }
.contract-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-family: "Rotmates Pixel", Impact, sans-serif;
  font-size: .67rem;
  text-transform: uppercase;
}
.contract-copy code {
  display: block;
  overflow-wrap: anywhere;
  font-family: "Rotmates Pixel", ui-monospace, monospace;
  font-size: clamp(.78rem, 1.6vw, 1.12rem);
  line-height: 1.4;
  user-select: all;
}
.contract-button { white-space: nowrap; }
.copy-status { min-height: 20px; margin: 15px auto 0; color: var(--mustard); font-family: "Rotmates Pixel", Impact, sans-serif; font-size: .68rem; text-transform: uppercase; }
.ticker-actions { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.ticker-fine { max-width: 710px; margin: 28px auto 0; opacity: .72; font-size: .75rem; line-height: 1.45; font-weight: 700; text-transform: uppercase; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 60px max(20px, calc((100vw - 1180px) / 2));
  background: var(--black);
}
.footer-logo { font-family: "Rotmates Display", Impact, sans-serif; font-size: clamp(3.5rem, 8vw, 7rem); color: var(--mustard); line-height: .76; }
.footer-copy { margin-top: 16px; max-width: 480px; font-weight: 800; color: #c6baa4; }
.footer-links { display: flex; gap: 18px; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.footer-links a:hover { color: var(--mustard); }

.back-to-top {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border: 3px solid var(--ink);
  border-radius: 17px 12px 19px 13px;
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 1.5rem;
  font-weight: 1000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) rotate(4deg);
  transition: opacity .16s ease, transform .16s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { transform: translate(3px, 3px); box-shadow: 2px 3px 0 var(--ink); }

.release-toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  top: 96px;
  width: min(410px, calc(100% - 28px));
  padding: 24px 24px 20px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 24px 16px 28px 17px;
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .72);
  transform: rotate(-.8deg);
  animation: release-toast-in .24s cubic-bezier(.2,.8,.2,1) both;
}
.release-toast[hidden] { display: none; }
.release-toast-close {
  position: absolute;
  right: 12px;
  top: 11px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 1000;
  cursor: pointer;
}
.release-toast-kicker {
  display: block;
  margin: 0 48px 10px 0;
  color: var(--red);
  font-family: "Rotmates Pixel", Impact, sans-serif;
  font-size: .68rem;
  text-transform: uppercase;
}
.release-toast strong { font-family: "Rotmates Pixel", Impact, sans-serif; font-size: .72rem; text-transform: uppercase; }
.release-toast h2 { margin: 8px 40px 8px 0; font-family: "Rotmates Display", Impact, sans-serif; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: .88; text-transform: uppercase; }
.release-toast p { margin: 0 0 16px; font-size: .84rem; line-height: 1.35; font-weight: 900; text-transform: uppercase; }
.release-toast-watch { min-height: 40px; background: var(--cream); font-size: .72rem; }
.release-toast-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(21,18,15,.2); }
.release-toast-progress i { display: block; width: 100%; height: 100%; background: var(--orange); transform-origin: left; animation: release-countdown 3s linear forwards; }
@keyframes release-toast-in { from { opacity: 0; transform: translateY(-18px) rotate(-2deg) scale(.96); } }
@keyframes release-countdown { to { transform: scaleX(0); } }

.reveal { opacity: 0; transform: translateY(30px) rotate(.2deg); transition: opacity .65s ease, transform .65s cubic-bezier(.18,.72,.24,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .nav-menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border: 3px solid var(--ink);
    border-radius: 18px 13px 21px 14px;
    background: rgba(245, 229, 198, .98);
    box-shadow: 6px 7px 0 rgba(16, 14, 12, .84);
  }
  .site-nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 9px; }
  .nav-links a:hover,
  .nav-links a.active { background: rgba(236, 92, 36, .14); }
  .nav-ca { justify-content: center; min-height: 44px; margin-top: 3px; }
  .manifesto-grid,
  .engine-grid { grid-template-columns: 1fr; }
  .engine-copy { position: static; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artifact-grid { grid-template-columns: 1fr; }
  .manifesto-photo { min-height: 430px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-nav { top: 9px; width: calc(100% - 18px); padding-left: 14px; min-height: 54px; }
  .nav-watch { min-height: 38px; padding: 0 13px; font-size: .7rem; }
  .contract-card { grid-template-columns: 1fr; padding: 18px; }
  .contract-button { width: 100%; }
  .back-to-top { right: 12px; bottom: 12px; width: 46px; height: 46px; }
  .release-toast { top: 76px; right: 14px; padding: 20px 18px 18px; }
  .hero-copy { width: calc(100% - 30px); padding-bottom: 70px; }
  .hero h1 { font-size: clamp(4.6rem, 26vw, 7.4rem); line-height: .75; }
  .scroll-cue { display: none; }
  .cast-head { display: block; }
  .cast-head p { margin-top: 20px; }
  .cast-grid { grid-template-columns: 1fr; }
  .archive-head { display: block; }
  .archive-head > p { margin-top: 20px; }
  .archive-grid { grid-template-columns: 1fr; }
  .artifacts-head { display: block; }
  .artifacts-head > p { margin-top: 20px; }
  .board-pages { grid-template-columns: 1fr; }
  .artifact-card.video-artifact { grid-template-columns: 1fr; }
  .artifact-media.phone { width: min(100%, 270px); border-right: 0; border-bottom: 4px solid var(--ink); }
  .cast-card { min-height: 490px; }
  .manifesto-photo { min-height: 350px; }
  .sticker { width: 106px; right: -8px; }
  .pipeline-step { padding-left: 82px; }
  .pipeline-step::before { left: 17px; }
  .section { padding-left: 18px; padding-right: 18px; }
}

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