:root {
  --bg: #f7f4ef;
  --paper: #fbf9f5;
  --line: #111111;
  --line-soft: rgba(17, 17, 17, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.08);
  --max-width: 1220px;
  --header-height: 94px;
  --comic-font: "Comic Sans MS", "Chalkboard SE", "Marker Felt", "Trebuchet MS", cursive;
  --ui-font: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --runner-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='31' cy='9' r='5' fill='none' stroke='%23111' stroke-width='3'/%3E%3Cpath d='M30 14l-6 7 8 5 5 8M24 21l-8 10M27 18l8 4 8-7M31 26l-2 13M22 38l8 1' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--line);
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.03), transparent 30%),
    linear-gradient(180deg, #f9f7f2 0%, #f4f0ea 100%);
  font-family: var(--ui-font);
  overflow-x: hidden;
}

body.overlay-active {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 62%, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 48% 84%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px);
  background-size: 140px 140px, 190px 190px, 170px 170px;
  mix-blend-mode: multiply;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: grayscale(1) contrast(1.02) brightness(1);
  animation: cinematicPush 5s ease-out forwards;
}

.intro-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  width: min(90vw, 540px);
  padding: 2rem;
}

.eyebrow,
.note-tag {
  margin: 0;
  font-family: var(--comic-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.enter-shell {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

.enter-button,
.sign-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.9rem 1.4rem;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--line);
  box-shadow: 8px 8px 0 #111111;
  font-family: var(--comic-font);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}

.enter-button:hover,
.enter-button:focus-visible,
.sign-button:hover,
.sign-button:focus-visible,
.run-card:hover,
.run-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 #111111;
}

.sign-button--filled {
  background: #111111;
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(251, 249, 245, 0.92);
  border-bottom: 3px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-logo {
  width: 172px;
}

.site-nav,
.header-actions,
.cta-row,
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
  font-family: var(--comic-font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(17, 17, 17, 0.08);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.hero-section,
.top-runs-section,
.response-section,
.how-to-section,
.image-story,
.site-footer {
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-video,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-video {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
}

.hero-scrim {
  background:
    linear-gradient(180deg, rgba(247, 244, 239, 0.08) 0%, rgba(247, 244, 239, 0.16) 40%, rgba(247, 244, 239, 0.94) 100%),
    linear-gradient(90deg, rgba(247, 244, 239, 0.96) 0%, rgba(247, 244, 239, 0.42) 42%, rgba(247, 244, 239, 0) 68%);
}

.hero-content {
  position: relative;
  width: min(100%, 620px);
  margin: clamp(1rem, 4vw, 2rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 4px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.section-heading h2,
.how-to-copy h2 {
  margin: 0 0 0.8rem;
  font-family: var(--comic-font);
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.story-note h2 {
  margin: 0;
  font-family: var(--comic-font);
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero-copy,
.section-heading p,
.story-note p,
.how-to-copy p,
.checklist li,
.site-footer p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.hero-copy {
  margin: 0;
  font-family: var(--comic-font);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.5;
}

.hero-legs {
  position: absolute;
  left: 65%;
  bottom: 0;
  width: 140px;
  height: 180px;
  transform: translateX(-50%);
  opacity: 0.9;
}

.hero-legs span {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 112px;
  background: #111111;
  border-radius: 999px;
  transform-origin: bottom center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.hero-legs span:first-child {
  left: 42px;
  transform: rotate(14deg);
}

.hero-legs span:last-child {
  right: 42px;
  transform: rotate(-12deg);
}

.connector {
  position: relative;
  width: min(100% - 2rem, 1120px);
  height: 110px;
  margin: 0 auto;
}

.connector--compact {
  height: 84px;
}

.connector-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 4px dashed #111111;
}

.connector-line::before,
.story-frame::before,
.how-to-copy::before,
.how-to-visual::before,
.site-footer::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  background: center / contain no-repeat var(--runner-svg);
  pointer-events: none;
  z-index: 4;
  animation: runnerDash 11s linear infinite;
}

.connector-line::before {
  top: -24px;
  left: 0;
}

.connector-runner,
.connector-sign {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.connector-runner {
  width: 48px;
  height: 48px;
  border: 4px solid #111111;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, #111111 47%, #111111 55%, transparent 56%),
    linear-gradient(-45deg, transparent 46%, #111111 47%, #111111 55%, transparent 56%);
  background-repeat: no-repeat;
  background-size: 70% 70%;
  background-position: center;
}

.connector-runner--left {
  left: 8%;
}

.connector-runner--center {
  left: calc(50% - 24px);
}

.connector-runner--right {
  right: 8%;
}

.connector-sign {
  left: 50%;
  padding: 0.45rem 0.9rem;
  border: 3px solid #111111;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 6px 6px 0 #111111;
  font-family: var(--comic-font);
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.story-frame {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  border: 4px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.story-frame::before {
  top: -22px;
  left: 0;
  animation-duration: 13s;
}

.story-frame img {
  aspect-ratio: auto;
}

.story-note {
  position: absolute;
  display: grid;
  gap: 0.85rem;
  max-width: min(34vw, 410px);
  padding: 1.25rem 1.4rem;
  border: 4px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 10px 10px 0 #111111;
}

.story-note--lore {
  top: 6%;
  right: 4%;
}

.story-note--join {
  left: 50%;
  bottom: 8%;
  right: auto;
  width: min(90%, 520px);
  max-width: 520px;
  transform: translateX(-50%);
}

.note-tag {
  font-size: 0.85rem;
}

.story-note--join .cta-row {
  justify-content: center;
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto 2.2rem;
  text-align: center;
}

.top-runs-section,
.response-section,
.how-to-section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.run-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  perspective: 1200px;
}

.run-card {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.run-card-inner {
  position: relative;
  display: block;
  min-height: 500px;
  transform-style: preserve-3d;
  transition: transform 680ms ease;
}

.run-card.is-flipped .run-card-inner {
  transform: rotateY(180deg);
}

.run-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 4px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  backface-visibility: hidden;
}

.run-card-front img {
  flex: 1;
  object-fit: cover;
}

.run-label,
.run-card-back {
  padding: 1rem 1.05rem 1.2rem;
}

.run-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 4px solid var(--line);
  background: #ffffff;
  font-family: var(--comic-font);
}

.run-label strong,
.run-card-back strong {
  font-size: 1.45rem;
  text-transform: uppercase;
}

.run-card-back {
  justify-content: center;
  gap: 0.8rem;
  transform: rotateY(180deg);
  font-family: var(--comic-font);
}

.run-card-back ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
  font-size: 1.02rem;
}

.cta-row {
  margin-top: 0.3rem;
}

.cta-row--center {
  justify-content: center;
  margin-top: 2rem;
}

.bubble-field {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: start;
}

.speech-bubble {
  position: relative;
  padding: 1.15rem 1.2rem;
  border: 4px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 8px 8px 0 #111111;
  font-family: var(--comic-font);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-right: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  background: #ffffff;
  bottom: -12px;
  left: 18%;
  transform: rotate(35deg);
}

.speech-bubble--lg {
  grid-column: span 5;
}

.speech-bubble--md {
  grid-column: span 4;
}

.speech-bubble--sm {
  grid-column: span 3;
}

.how-to-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: center;
}

.how-to-copy,
.how-to-visual {
  position: relative;
  border: 4px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.how-to-copy::before,
.how-to-visual::before {
  top: -22px;
  left: 0;
  animation-duration: 12s;
}

.how-to-copy {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.checklist {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.8rem;
  font-family: var(--comic-font);
}

.how-to-note {
  font-family: var(--comic-font);
}

.how-to-visual {
  overflow: hidden;
}

.site-footer {
  width: min(100%, var(--max-width));
  margin: 2rem auto 3rem;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 4px solid var(--line);
}

.site-footer::before {
  top: -24px;
  left: 0;
  animation-duration: 14s;
}

@keyframes cinematicPush {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

@keyframes runnerDash {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100% - 42px));
  }
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .story-note {
    position: static;
    max-width: none;
    margin: 1rem;
  }

  .run-grid,
  .how-to-section {
    grid-template-columns: 1fr;
  }

  .bubble-field {
    grid-template-columns: repeat(6, 1fr);
  }

  .speech-bubble--lg,
  .speech-bubble--md,
  .speech-bubble--sm {
    grid-column: span 3;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 132px;
  }

  .site-nav,
  .header-actions,
  .cta-row,
  .footer-links,
  .site-footer {
    justify-content: center;
  }

  .hero-content {
    margin-inline: 0;
  }

  .hero-legs {
    left: 78%;
    width: 90px;
    height: 120px;
  }

  .hero-legs span {
    height: 82px;
  }

  .bubble-field {
    grid-template-columns: 1fr;
  }

  .speech-bubble--lg,
  .speech-bubble--md,
  .speech-bubble--sm {
    grid-column: auto;
  }

  .site-footer {
    text-align: center;
  }
}
