:root {
  --ink: #17110b;
  --ink-soft: #332318;
  --paper: #d1a955;
  --paper-light: #efd594;
  --gold: #f0bd4a;
  --rust: #b64f1e;
  --cream: #fae8b3;
  --mx: 0;
  --my: 0;
  --spot-x: 50%;
  --spot-y: 50%;
}

* {
  box-sizing: border-box;
}

html {
  background: #090705;
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #090705;
  color: var(--ink);
  font-family: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
}

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

button,
a,
[role="button"] {
  touch-action: manipulation;
}

.stage {
  position: relative;
  width: min(100vw, 1920px);
  height: min(100vh, 1080px);
  min-height: 620px;
  margin: auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  box-shadow: 0 0 80px #000;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 40;
  border: 2px solid rgba(23, 17, 11, 0.64);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.background,
.background > div {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -5;
  overflow: hidden;
  background: #c3953f;
}

.background__poster {
  inset: -3% !important;
  background: url("assets/poster-bg.jpg") center / cover no-repeat;
  filter: saturate(0.86) contrast(1.08) brightness(0.84);
  transform: scale(1.06) translate(calc(var(--mx) * -9px), calc(var(--my) * -7px));
  transition: transform 180ms ease-out;
}

.background__texture {
  background: url("assets/paper-texture.jpg") center / 520px 520px repeat;
  opacity: 0.3;
  mix-blend-mode: multiply;
  animation: paper-drift 18s steps(8) infinite;
}

.background__ink {
  background:
    linear-gradient(90deg, rgba(21, 14, 8, 0.74) 0%, rgba(21, 14, 8, 0.14) 42%, rgba(21, 14, 8, 0.02) 62%),
    linear-gradient(0deg, rgba(21, 14, 8, 0.52), transparent 32%),
    radial-gradient(circle at 73% 45%, transparent 0 24%, rgba(23, 17, 11, 0.16) 64%, rgba(23, 17, 11, 0.48) 100%);
  mix-blend-mode: multiply;
}

.background__spotlight {
  background: radial-gradient(circle 230px at var(--spot-x) var(--spot-y), rgba(255, 234, 169, 0.16), transparent 68%);
  mix-blend-mode: screen;
}

.background__codes {
  inset: -5% !important;
  overflow: hidden;
  opacity: 0.19;
  mix-blend-mode: multiply;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 10px)) rotate(-3deg);
}

.code-fragment {
  position: absolute;
  font-family: "Courier New", monospace;
  font-size: clamp(2rem, 3.6vw, 5.4rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.08em;
  white-space: nowrap;
  animation: code-pulse var(--duration) steps(2, end) infinite alternate;
  animation-delay: var(--delay);
}

.ticker {
  position: absolute;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 38px;
  overflow: hidden;
  border-block: 2px solid var(--paper-light);
  background: var(--ink);
  color: var(--paper-light);
  font: 900 0.88rem/34px "Courier New", monospace;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.ticker--top {
  top: 0;
  transform: rotate(-0.35deg) scaleX(1.01);
  transform-origin: center;
}

.ticker--bottom {
  bottom: 0;
  transform: rotate(0.35deg) scaleX(1.01);
  transform-origin: center;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker__track--reverse {
  animation-direction: reverse;
  animation-duration: 24s;
}

.site-header {
  position: absolute;
  top: 58px;
  left: clamp(28px, 4.2vw, 82px);
  right: clamp(28px, 4.2vw, 82px);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.monogram {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  transform: rotate(-2deg);
}

.monogram__seal {
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  font: 900 1.35rem/1 Georgia, serif;
  box-shadow: 4px 4px 0 var(--rust);
}

.monogram__text {
  font: 900 0.75rem/0.92 "Courier New", monospace;
  letter-spacing: 0.14em;
}

.social-nav {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 9px;
  border: 2px solid var(--ink);
  background: rgba(239, 213, 148, 0.88);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font: 900 0.78rem/1 "Courier New", monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.social-link:nth-child(2) {
  transform: rotate(1.5deg);
}

.social-link:hover,
.social-link:focus-visible {
  outline: 0;
  background: var(--gold);
  box-shadow: 7px 7px 0 var(--ink);
  transform: translate(-3px, -3px) rotate(-1deg);
}

.social-link__icon {
  display: grid;
  width: 27px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 1rem;
}

.social-link__icon--pump {
  background: var(--rust);
  font-family: Georgia, serif;
  font-weight: 900;
}

.hero {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hero__copy {
  position: absolute;
  top: clamp(155px, 17vh, 184px);
  left: clamp(32px, 5.2vw, 100px);
  z-index: 12;
  width: min(48vw, 850px);
  color: var(--cream);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 6px;
  font: 900 clamp(0.72rem, 0.8vw, 0.95rem)/1.2 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  padding: 5px 8px 4px;
  background: var(--rust);
  color: var(--cream);
  transform: rotate(-1.5deg);
}

h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  line-height: 0.73;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.title-line {
  position: relative;
  display: block;
  width: max-content;
  color: var(--paper-light);
  filter: drop-shadow(7px 8px 0 var(--ink));
}

.title-line::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--rust);
  transform: translate(11px, -4px);
  clip-path: polygon(0 0, 100% 0, 100% 46%, 0 58%);
  opacity: 0.95;
}

.title-line--donald {
  font-size: clamp(6.2rem, 10.4vw, 12.7rem);
  transform: rotate(-2.2deg);
}

.title-line--coin {
  margin: 0 0 0 0.55em;
  color: var(--gold);
  font-size: clamp(6.8rem, 11.8vw, 14rem);
  transform: rotate(1.2deg);
}

.hero__dek {
  margin: clamp(25px, 3vh, 38px) 0 0 8px;
  max-width: 580px;
  color: var(--cream);
  font: 900 clamp(1.15rem, 1.55vw, 1.9rem)/1.04 Georgia, serif;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 0 var(--ink);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 0 8px;
}

.ca-button {
  position: relative;
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 0 21px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--gold);
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: 900 clamp(0.95rem, 1.1vw, 1.25rem)/1 "Courier New", monospace;
  letter-spacing: 0.03em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  transform: rotate(-1deg);
}

.ca-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 11px, rgba(255,255,255,0.22) 12px 13px);
  transform: translateX(-110%);
  transition: transform 380ms ease;
}

.ca-button:hover,
.ca-button:focus-visible {
  outline: 0;
  background: var(--paper-light);
  box-shadow: 11px 11px 0 var(--ink);
  transform: translate(-4px, -4px) rotate(1deg);
}

.ca-button:hover::after,
.ca-button:focus-visible::after {
  transform: translateX(110%);
}

.ca-button.is-copied {
  background: var(--cream);
  animation: copied-pop 380ms ease;
}

.ca-button__label {
  color: var(--rust);
}

.ca-button__copy {
  margin-left: 8px;
  padding: 6px 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.7em;
}

.copy-note {
  max-width: 130px;
  margin: 0;
  color: var(--cream);
  font: 700 0.78rem/1.25 "Courier New", monospace;
  text-transform: uppercase;
}

.character {
  position: absolute;
  top: clamp(95px, 10vh, 118px);
  right: clamp(-85px, -3.5vw, -28px);
  z-index: 8;
  width: min(54vw, 955px);
  aspect-ratio: 1;
  margin: 0;
  cursor: pointer;
  filter: drop-shadow(-24px 32px 0 rgba(23, 17, 11, 0.27));
  transform: translate(calc(var(--mx) * -11px), calc(var(--my) * -7px));
  transition: filter 220ms ease;
  animation: character-float 6s ease-in-out infinite;
}

.character:focus-visible {
  outline: 5px solid var(--cream);
  outline-offset: 9px;
}

.character__shadow {
  position: absolute;
  inset: 7% 8% -2% 5%;
  z-index: -2;
  border-radius: 49% 51% 45% 55%;
  background: var(--rust);
  transform: rotate(4deg) translate(-18px, 15px);
  clip-path: polygon(9% 2%, 95% 0, 100% 82%, 87% 100%, 4% 94%, 0 17%);
}

.character__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 5px solid var(--ink);
  background: var(--paper);
  clip-path: polygon(7% 1%, 97% 4%, 100% 88%, 90% 99%, 3% 96%, 0 12%);
  transform: rotate(1.2deg);
}

.character__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 13px solid rgba(240, 189, 74, 0.24);
  mix-blend-mode: multiply;
}

.character img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.78) sepia(0.12);
  mix-blend-mode: multiply;
  transform: scale(1.015);
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), filter 250ms ease;
}

.character:hover img,
.character:focus-visible img {
  filter: contrast(1.15) saturate(0.9) sepia(0);
  transform: scale(1.045) rotate(-0.35deg);
}

.character__scan {
  position: absolute;
  inset: -50% 0 auto;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(255, 238, 185, 0.24), transparent);
  mix-blend-mode: screen;
  animation: scan 5s ease-in-out infinite;
}

.character__flash {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(24, 17, 10, 0.13) 5px);
  mix-blend-mode: multiply;
  opacity: 0.32;
}

.character__caption {
  position: absolute;
  right: 9%;
  bottom: -7px;
  z-index: 4;
  padding: 8px 12px 7px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font: 900 clamp(0.65rem, 0.75vw, 0.85rem)/1 "Courier New", monospace;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.character__stamp {
  position: absolute;
  top: 8%;
  right: 2%;
  z-index: 5;
  display: grid;
  width: clamp(112px, 9vw, 164px);
  aspect-ratio: 1;
  place-content: center;
  border: 6px double var(--rust);
  border-radius: 50%;
  color: var(--rust);
  font: 900 clamp(0.75rem, 0.86vw, 1rem)/0.9 "Courier New", monospace;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(23, 17, 11, 0.2);
  transform: rotate(12deg);
  opacity: 0.9;
}

.character.is-reacting {
  animation: character-react 720ms cubic-bezier(.2,.8,.2,1);
}

.character.is-reacting .character__stamp {
  animation: stamp-hit 720ms ease;
}

.lore {
  position: absolute;
  left: clamp(32px, 5.2vw, 100px);
  bottom: clamp(66px, 7.2vh, 78px);
  z-index: 18;
  display: grid;
  grid-template-columns: auto minmax(320px, 650px) auto;
  align-items: center;
  gap: clamp(16px, 1.7vw, 32px);
  width: min(58vw, 1020px);
  padding: 18px 22px;
  border: 3px solid var(--ink);
  background: rgba(239, 213, 148, 0.94);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(-0.4deg);
}

.lore::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(23, 17, 11, 0.45);
  pointer-events: none;
}

.lore__number {
  color: var(--rust);
  font: 900 clamp(3.7rem, 4.6vw, 5.6rem)/0.8 Impact, sans-serif;
  letter-spacing: -0.06em;
}

.lore__kicker {
  margin: 0 0 4px;
  color: var(--rust);
  font: 900 0.68rem/1 "Courier New", monospace;
  letter-spacing: 0.12em;
}

.lore h2 {
  margin: 0 0 6px;
  font: 900 clamp(1.2rem, 1.45vw, 1.7rem)/1 Georgia, serif;
  letter-spacing: -0.03em;
}

.lore p:last-child {
  margin: 0;
  font: 700 clamp(0.8rem, 0.82vw, 0.95rem)/1.32 Arial, sans-serif;
}

.lore__seal {
  display: grid;
  min-width: 112px;
  aspect-ratio: 1;
  place-content: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  transform: rotate(4deg);
}

.lore__seal span,
.lore__seal strong {
  display: block;
}

.lore__seal span {
  font: 900 0.57rem/1.4 "Courier New", monospace;
  letter-spacing: 0.07em;
}

.lore__seal strong {
  font: 900 1.35rem/1 Impact, sans-serif;
  letter-spacing: 0.04em;
}

.fiction-note {
  position: absolute;
  right: clamp(28px, 4vw, 74px);
  bottom: 49px;
  z-index: 21;
  margin: 0;
  color: var(--cream);
  font: 900 0.63rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 0 var(--ink);
}

.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 60;
  padding: 18px 24px;
  border: 4px solid var(--ink);
  background: var(--rust);
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--cream);
  font: 900 clamp(1rem, 1.6vw, 1.8rem)/1 Impact, sans-serif;
  letter-spacing: 0.08em;
  transform: translate(-50%, -40%) rotate(-3deg) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

.toast.is-visible {
  animation: toast-pop 1.5s ease both;
}

@keyframes ticker {
  to { transform: translateX(-25%); }
}

@keyframes paper-drift {
  0% { background-position: 0 0; }
  50% { background-position: 23px -17px; }
  100% { background-position: 0 0; }
}

@keyframes code-pulse {
  from { opacity: 0.35; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(5px); }
}

@keyframes character-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -9px; }
}

@keyframes scan {
  0%, 22% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  70% { transform: translateY(410%); opacity: 0.5; }
  100% { transform: translateY(410%); opacity: 0; }
}

@keyframes copied-pop {
  50% { transform: scale(1.06) rotate(1deg); }
}

@keyframes character-react {
  0% { transform: translate(0) rotate(0); }
  22% { transform: translate(-12px, 2px) rotate(-1.5deg); }
  44% { transform: translate(10px, -7px) rotate(1.2deg); }
  66% { transform: translate(-5px, -2px) rotate(-0.6deg); }
  100% { transform: translate(0) rotate(0); }
}

@keyframes stamp-hit {
  0% { opacity: 0; transform: rotate(28deg) scale(2.4); }
  48% { opacity: 1; transform: rotate(10deg) scale(0.88); }
  70% { transform: rotate(13deg) scale(1.05); }
  100% { transform: rotate(12deg) scale(1); }
}

@keyframes toast-pop {
  0% { opacity: 0; transform: translate(-50%, -30%) rotate(-8deg) scale(0.6); }
  17%, 72% { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) rotate(3deg) scale(0.94); }
}

@media (max-height: 800px) and (min-width: 901px) {
  .hero__copy { top: 128px; transform: scale(0.88); transform-origin: top left; }
  .character { top: 82px; width: min(50vw, 760px); }
  .lore { bottom: 58px; transform: scale(0.86) rotate(-0.4deg); transform-origin: bottom left; }
  .site-header { top: 50px; }
}

@media (max-width: 1100px) and (min-width: 701px) {
  .title-line--donald { font-size: clamp(5rem, 11.5vw, 8.3rem); }
  .title-line--coin { font-size: clamp(5.5rem, 13vw, 9.4rem); }
  .character { width: 57vw; right: -7vw; }
  .lore { width: 68vw; grid-template-columns: auto 1fr; }
  .lore__seal { display: none; }
  .fiction-note { display: none; }
}

@media (max-width: 700px) {
  body { overflow: auto; }

  .stage {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }

  .stage::after { inset: 5px; }
  .background { position: fixed; }
  .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 60px 22px 0;
  }

  .monogram__text { display: none; }
  .social-link { min-height: 42px; padding: 7px 9px; font-size: 0.68rem; }
  .social-link__icon { width: 24px; }
  .hero { position: relative; display: flex; flex-direction: column; }
  .hero__copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 58px 22px 0;
  }

  .eyebrow { font-size: 0.66rem; }
  .title-line--donald { font-size: clamp(5.2rem, 25vw, 8rem); }
  .title-line--coin { margin-left: 0.27em; font-size: clamp(5.8rem, 28vw, 9rem); }
  .hero__dek { margin-top: 26px; font-size: 1.35rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  .ca-button { min-height: 58px; }
  .copy-note { max-width: none; }

  .character {
    position: relative;
    top: auto;
    right: auto;
    width: 112vw;
    margin: 44px 0 0 -5vw;
  }

  .character__caption { right: 12%; bottom: 2%; }
  .character__stamp { right: 7%; }
  .lore {
    position: relative;
    left: auto;
    bottom: auto;
    grid-template-columns: auto 1fr;
    width: calc(100% - 44px);
    margin: 22px 22px 96px;
    padding: 18px;
  }

  .lore__number { align-self: start; font-size: 3.6rem; }
  .lore__seal { display: none; }
  .lore p:last-child { font-size: 0.9rem; }
  .fiction-note { display: none; }
  .ticker--bottom { position: absolute; }
}

@media (max-width: 430px) {
  .social-link span:nth-child(2) { display: none; }
  .social-link { min-width: 44px; justify-content: center; }
  .hero__copy { padding-top: 42px; }
  .lore { grid-template-columns: 1fr; }
  .lore__number { display: none; }
}

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

  .background__poster,
  .background__codes,
  .character {
    transform: none !important;
  }
}
