:root {
  --ink: #0a0a0a;
  --paper: #f7f2dd;
  --yellow: #f3db57;
  --blue: #1464dd;
  --deep-blue: #172641;
  --red: #dd1d22;
  --white: #fffdf4;
  --outline: 4px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

a { color: inherit; }
.site-header {
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--yellow);
  border-bottom: var(--outline);
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: .06em;
  text-decoration: none;
}

.brand-burst {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  border: 3px solid var(--ink);
  clip-path: polygon(50% 0, 62% 20%, 84% 8%, 80% 34%, 100% 50%, 78% 61%, 89% 86%, 62% 79%, 50% 100%, 38% 79%, 12% 90%, 19% 63%, 0 50%, 22% 38%, 9% 12%, 38% 20%);
}

nav { display: flex; gap: clamp(14px, 3vw, 34px); }
nav a {
  font-weight: 900;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
nav a:hover, nav a:focus-visible { border-color: var(--ink); }

.hero {
  min-height: min(760px, calc(100svh - 78px));
  position: relative;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--deep-blue);
  border-bottom: var(--outline);
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.08);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 21, .94) 0%, rgba(5, 10, 21, .7) 34%, rgba(5, 10, 21, .05) 67%), linear-gradient(0deg, rgba(5, 10, 21, .72), transparent 45%);
}

.hero-copy {
  width: min(700px, 90%);
  padding: clamp(60px, 8vw, 105px) 0 64px clamp(22px, 6vw, 90px);
  position: relative;
  z-index: 2;
  color: white;
}

.issue-label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  transform: rotate(-1deg);
}

h1, h2, h3 { margin: 0; font-family: Bangers, Impact, sans-serif; letter-spacing: .035em; line-height: .86; }
h1 { font-size: clamp(6rem, 15vw, 12rem); text-shadow: 6px 6px 0 var(--ink), 9px 9px 0 var(--red); }
h1 span { color: var(--yellow); }
.ticker {
  display: inline-block;
  margin: 12px 0 18px;
  padding: 4px 16px;
  color: var(--ink);
  background: white;
  border: 4px solid var(--ink);
  font-family: Archivo Black, Impact, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  transform: rotate(2deg);
}
.hero-line { max-width: 510px; font-size: clamp(1rem, 2.1vw, 1.35rem); line-height: 1.4; font-weight: 900; text-shadow: 2px 2px 0 var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }

.comic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 58px;
  padding: 12px 24px;
  background: var(--red);
  color: white;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--yellow), 10px 10px 0 var(--ink);
  font-family: Archivo Black, Impact, sans-serif;
  text-decoration: none;
  transform: skew(-4deg) rotate(-1deg);
  transition: transform .15s ease, box-shadow .15s ease;
}
.comic-button.dark { background: var(--deep-blue); }
.comic-button:hover, .comic-button:focus-visible { transform: skew(-4deg) translate(5px, 5px); box-shadow: 2px 2px 0 var(--yellow), 5px 5px 0 var(--ink); }
.pow-stamp {
  position: absolute;
  right: clamp(18px, 4vw, 60px);
  bottom: 28px;
  z-index: 2;
  width: 145px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.7rem;
  line-height: .9;
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  clip-path: polygon(50% 0, 60% 25%, 82% 8%, 78% 34%, 100% 45%, 76% 57%, 94% 78%, 66% 75%, 54% 100%, 43% 76%, 15% 92%, 22% 62%, 0 50%, 25% 38%, 8% 16%, 38% 24%);
  transform: rotate(7deg);
  animation: stamp 2.2s ease-in-out infinite;
}
@keyframes stamp { 50% { transform: rotate(5deg) scale(1.06); } }

.contract-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: 28px clamp(20px, 6vw, 90px);
  background: var(--red);
  color: white;
  border-bottom: var(--outline);
}
.contract-kicker { display: block; margin-bottom: 10px; font-weight: 900; font-size: .78rem; letter-spacing: .14em; }
.contract-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--white);
  border: var(--outline);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(.82rem, 2vw, 1.05rem);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.contract-button span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-label { flex: none; padding: 5px 8px; color: white; background: var(--blue); border: 2px solid var(--ink); font-family: Inter, sans-serif; font-size: .76rem; }
.contract-strip p { max-width: 280px; margin: 0; font-weight: 800; line-height: 1.4; }

.origin-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.comic-panel { opacity: 0; transform: translateY(26px) rotate(-1deg); transition: opacity .55s ease, transform .55s ease; }
.comic-panel.revealed, .mission-card.revealed, .section-heading.revealed { opacity: 1; transform: none; }
.origin-copy {
  position: relative;
  padding: clamp(28px, 5vw, 62px);
  background: white;
  border: var(--outline);
  box-shadow: var(--shadow);
}
.panel-number { font-weight: 900; letter-spacing: .12em; color: var(--red); }
.origin-copy h2, .section-heading h2 { font-size: clamp(3.4rem, 7vw, 6.7rem); }
.origin-copy > p:not(.panel-number):not(.speech) { font-size: 1.08rem; line-height: 1.7; font-weight: 600; }
.speech {
  position: absolute;
  right: -22px;
  bottom: -54px;
  padding: 22px 28px;
  background: var(--yellow);
  border: var(--outline);
  border-radius: 50%;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.7rem;
  transform: rotate(-6deg);
}
.portrait-panel {
  position: relative;
  padding: 18px;
  background: var(--blue);
  border: var(--outline);
  box-shadow: 12px 12px 0 var(--red), 16px 16px 0 var(--ink);
  transform: rotate(2deg);
  overflow: hidden;
}
.portrait-panel img { display: block; width: 100%; position: relative; z-index: 1; border: 3px solid var(--ink); }
.portrait-panel figcaption { position: relative; z-index: 2; padding: 14px 8px 2px; color: white; font-family: Archivo Black, Impact, sans-serif; text-align: center; letter-spacing: .06em; }
.halftone, .mission-section::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#0a0a0a 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  opacity: .17;
}

.mission-section { position: relative; padding: clamp(65px, 8vw, 110px) clamp(20px, 6vw, 90px); background: var(--deep-blue); color: white; border-block: var(--outline); overflow: hidden; }
.mission-section::before { opacity: .3; }
.section-heading { position: relative; opacity: 0; transform: translateY(24px); transition: .5s ease; }
.section-heading p { margin: 0 0 8px; color: var(--yellow); font-weight: 900; letter-spacing: .18em; }
.mission-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.mission-card { min-height: 310px; padding: 30px; color: var(--ink); border: var(--outline); box-shadow: 8px 8px 0 white; opacity: 0; transform: translateY(28px) rotate(-1deg); transition: .55s ease; }
.mission-card:nth-child(2) { transition-delay: .1s; transform: translateY(28px) rotate(1deg); }
.mission-card:nth-child(3) { transition-delay: .2s; }
.mission-card.yellow { background: var(--yellow); }
.mission-card.blue { background: #59b4ee; }
.mission-card.red { background: var(--red); color: white; }
.mission-card span { font-family: Bangers, Impact, sans-serif; font-size: 3.5rem; }
.mission-card h3 { margin-top: 32px; font-size: 3.1rem; }
.mission-card p { font-weight: 700; line-height: 1.6; }

.join-section {
  min-height: 620px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 7vw, 90px);
  padding: clamp(60px, 8vw, 110px) clamp(20px, 8vw, 120px);
  background: var(--yellow);
}
.join-burst {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  border: 6px solid var(--ink);
  clip-path: polygon(50% 0, 60% 24%, 82% 8%, 78% 34%, 100% 50%, 77% 61%, 92% 86%, 63% 77%, 50% 100%, 39% 77%, 12% 91%, 20% 63%, 0 50%, 23% 39%, 8% 13%, 39% 23%);
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(5rem, 12vw, 11rem);
  text-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-5deg);
}
.join-section h2 { font-size: clamp(4.3rem, 9vw, 8.5rem); }

footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px clamp(20px, 5vw, 70px); background: var(--ink); color: white; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-align: center; }
footer p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 100; padding: 14px 24px; background: var(--yellow); border: var(--outline); box-shadow: 6px 6px 0 var(--ink); font-family: Archivo Black, Impact, sans-serif; transform: translate(-50%, 140px) rotate(-2deg); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0) rotate(-2deg); }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { min-height: 760px; }
  .hero-banner { object-position: 62% center; }
  .hero-vignette { background: linear-gradient(90deg, rgba(5,10,21,.94), rgba(5,10,21,.42)), linear-gradient(0deg, rgba(5,10,21,.72), transparent 50%); }
  .pow-stamp { width: 112px; font-size: 1.3rem; }
  .contract-strip, .origin-section, .join-section { grid-template-columns: 1fr; }
  .contract-strip { align-items: start; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-card { min-height: auto; }
  .join-burst { width: min(380px, 90vw); justify-self: center; }
}

@media (max-width: 560px) {
  .site-header { min-height: 66px; }
  .brand-burst { width: 42px; }
  .hero { min-height: 690px; }
  .hero-copy { padding-top: 58px; padding-left: 20px; }
  h1 { font-size: clamp(5rem, 27vw, 7.5rem); }
  .hero-line { max-width: 300px; }
  .pow-stamp { display: none; }
  .contract-button { align-items: flex-start; }
  .origin-section { padding-bottom: 100px; }
  .speech { right: 4px; }
  .join-section { overflow: hidden; }
  .join-section > div:last-child { min-width: 0; }
  .join-burst { width: min(310px, 78vw); font-size: clamp(4.6rem, 25vw, 7rem); }
  .join-section h2 { font-size: clamp(3.7rem, 17vw, 4.2rem); }
  .join-section .hero-actions { width: 100%; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .comic-panel, .mission-card, .section-heading { opacity: 1; transform: none; }
}
