:root {
  --ink: #17120f;
  --paper: #f2ead8;
  --acid: #d8ff36;
  --orange: #ff623b;
  --blue: #4d64ff;
  --pink: #ff78cf;
  --line: 3px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  padding: 20px clamp(20px, 4vw, 64px) 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 26%, rgb(216 255 54 / 42%) 0 12%, transparent 34%),
    linear-gradient(120deg, #eee5d0 0 55%, #fa6a42 55% 100%);
}

.hero::after {
  content: "BROS";
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  color: rgb(23 18 15 / 8%);
  font-size: clamp(140px, 26vw, 390px);
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 1;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: var(--line);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.logo {
  width: max-content;
  font-size: 24px;
  text-decoration: none;
  letter-spacing: -0.08em;
}

.logo span {
  color: var(--blue);
}

.nav-link {
  justify-self: end;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(24px, 5vw, 88px);
  align-items: center;
  min-height: calc(100svh - 126px);
  max-width: 1500px;
  margin: 0 auto;
}

.hero-copy {
  padding: 64px 0 80px;
}

.eyebrow,
.section-number {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(70px, 10.5vw, 168px);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.7;
}

h1 b {
  align-self: flex-end;
  margin: -0.02em 0 -0.02em;
  color: var(--blue);
  font-size: 0.6em;
  transform: rotate(8deg);
}

.hero-subtitle {
  width: max-content;
  max-width: 100%;
  margin: 42px 0 12px;
  padding: 9px 14px 7px;
  color: var(--paper);
  background: var(--ink);
  font-size: clamp(17px, 2vw, 30px);
  font-weight: 950;
  letter-spacing: -0.02em;
  transform: rotate(-1.5deg);
}

.asterisk {
  color: var(--acid);
}

.fine-print {
  max-width: 480px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.meme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.meme-pill {
  padding: 9px 15px 7px;
  border: 2px solid var(--ink);
  border-radius: 100%;
  color: var(--ink);
  background: transparent;
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 14px/1 Arial, sans-serif;
  cursor: pointer;
  transition: 160ms ease;
}

.meme-pill:hover,
.meme-pill:focus-visible {
  color: var(--paper);
  background: var(--blue);
  transform: translate(2px, 2px) rotate(-3deg);
  box-shadow: 1px 1px 0 var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 680px;
}

.hero-photo-wrap {
  position: absolute;
  inset: 4% 8% 9% 10%;
  z-index: 2;
  padding: clamp(10px, 1.2vw, 18px) clamp(10px, 1.2vw, 18px) clamp(48px, 4.5vw, 72px);
  border: var(--line);
  background: #fff9ec;
  box-shadow: 14px 16px 0 var(--ink);
  transform: rotate(2.8deg);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}

.tape {
  position: absolute;
  width: 112px;
  height: 34px;
  background: rgb(216 255 54 / 88%);
  box-shadow: 0 1px 5px rgb(0 0 0 / 18%);
}

.tape-top {
  top: -16px;
  left: 45%;
  transform: rotate(-8deg);
}

.scribble {
  position: absolute;
  right: 26px;
  bottom: 17px;
  font: italic 900 clamp(17px, 2vw, 28px)/1 Arial, sans-serif;
  transform: rotate(-4deg);
}

.mini-photo {
  position: absolute;
  z-index: 4;
  width: clamp(122px, 13vw, 190px);
  margin: 0;
  padding: 8px 8px 30px;
  border: 2px solid var(--ink);
  background: #fff9ec;
  box-shadow: 6px 7px 0 var(--ink);
}

.mini-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

.mini-photo figcaption {
  padding-top: 8px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.mini-photo-left {
  left: -3%;
  bottom: 4%;
  transform: rotate(-9deg);
}

.mini-photo-right {
  top: 2%;
  right: -2%;
  transform: rotate(8deg);
}

.speech {
  z-index: 6;
  padding: 14px 20px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 22px;
  font-weight: 950;
  transform: rotate(-8deg);
}

.speech::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 32px;
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: inherit;
  transform: rotate(36deg);
}

.speech-hero {
  position: absolute;
  right: 2%;
  bottom: 7%;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 4vw, 64px);
  bottom: 22px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.scroll-cue span {
  padding-top: 9px;
  font-size: 18px;
}

.ticker {
  overflow: hidden;
  border-block: var(--line);
  background: var(--acid);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  padding: 12px 0 10px;
  animation: ticker 24s linear infinite;
  font-size: 20px;
  font-weight: 950;
}

.ticker-track i {
  color: var(--blue);
  font-style: normal;
}

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

.section {
  padding: clamp(80px, 10vw, 150px) clamp(20px, 5vw, 78px);
}

.archive {
  background:
    linear-gradient(rgb(23 18 15 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 18 15 / 5%) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
  max-width: 1350px;
  margin: 0 auto 72px;
}

.section-heading .section-number {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2 {
  grid-column: 1;
  grid-row: 2;
}

.section h2 {
  margin: 0;
  font-size: clamp(48px, 8vw, 125px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.section h2 em {
  color: var(--blue);
  font-style: normal;
}

.heading-sticker {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  width: clamp(168px, 16vw, 220px);
  height: clamp(168px, 16vw, 220px);
  display: grid;
  place-items: center;
  margin: 0 10px 0 0;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 10px 11px 0 var(--ink);
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 950;
  line-height: 1.02;
  text-align: center;
  transform: rotate(-7deg);
}

.photo-wall {
  max-width: 1400px;
  margin: 0 auto;
  columns: 4 250px;
  column-gap: clamp(18px, 2.2vw, 34px);
}

.memory-card {
  --turn: 0deg;
  position: relative;
  break-inside: avoid;
  margin: 0 0 clamp(24px, 3vw, 42px);
  padding: 9px 9px 38px;
  border: 2px solid var(--ink);
  background: #fff9ec;
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(var(--turn));
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: zoom-in;
}

.memory-card:hover,
.memory-card:focus-visible {
  z-index: 3;
  outline: none;
  box-shadow: 11px 13px 0 var(--blue);
  transform: rotate(0) translateY(-8px);
}

.memory-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.memory-card:nth-child(5n) img,
.memory-card:nth-child(7n) img {
  aspect-ratio: 1 / 1;
}

.memory-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 72px;
  height: 25px;
  background: rgb(255 120 207 / 70%);
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
}

.funny {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(45px, 8vw, 120px);
  border-top: var(--line);
  color: var(--paper);
  background: var(--ink);
}

.funny-intro {
  position: sticky;
  top: 36px;
  align-self: start;
}

.funny h2 {
  font-size: clamp(52px, 7vw, 105px);
}

.funny h2 em {
  color: var(--acid);
}

.funny-copy {
  max-width: 350px;
  margin-top: 34px;
  color: #bfb7aa;
  font-size: 14px;
  font-weight: 700;
}

.funny-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px) clamp(18px, 3vw, 40px);
}

.funny-card {
  --turn: 0deg;
  position: relative;
  margin: 0;
  transform: rotate(var(--turn));
  cursor: zoom-in;
}

.funny-card:nth-child(even) {
  margin-top: 80px;
}

.funny-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 3px solid var(--paper);
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
  transition: 180ms ease;
}

.funny-card:hover img,
.funny-card:focus-visible img {
  outline: none;
  box-shadow: 10px 10px 0 var(--orange);
  transform: scale(1.015);
}

.funny-card .bubble {
  position: absolute;
  z-index: 2;
  top: -24px;
  right: -18px;
  min-width: 90px;
  padding: 13px 17px 11px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--paper);
  font-size: clamp(17px, 2vw, 27px);
  font-weight: 950;
  text-align: center;
  transform: rotate(7deg);
}

.funny-card .bubble::after {
  content: "";
  position: absolute;
  right: 25px;
  bottom: -12px;
  width: 16px;
  height: 16px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--acid);
  transform: rotate(38deg);
}

.funny-card:nth-child(3n) .bubble {
  right: auto;
  left: -20px;
  background: var(--pink);
  transform: rotate(-7deg);
}

.funny-card:nth-child(3n) .bubble::after {
  right: auto;
  left: 25px;
  background: var(--pink);
}

.finale {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 6vw;
  align-items: center;
  overflow: hidden;
  background: var(--orange);
}

.finale::before {
  content: "∞";
  position: absolute;
  top: 50%;
  left: 49%;
  color: rgb(242 234 216 / 14%);
  font: 950 58vw/0.7 Arial, sans-serif;
  transform: translate(-50%, -50%);
}

.finale-collage {
  position: relative;
  z-index: 1;
  min-height: 620px;
}

.finale-collage img {
  position: absolute;
  width: 47%;
  aspect-ratio: 3 / 4;
  border: 8px solid #fff9ec;
  box-shadow: 12px 14px 0 var(--ink);
  object-fit: cover;
}

.finale-collage img:nth-child(1) {
  top: 0;
  left: 2%;
  transform: rotate(-9deg);
}

.finale-collage img:nth-child(2) {
  top: 13%;
  right: 1%;
  transform: rotate(8deg);
}

.finale-collage img:nth-child(3) {
  bottom: 0;
  left: 29%;
  transform: rotate(-2deg);
}

.finale-copy {
  position: relative;
  z-index: 2;
}

.finale h2 {
  font-size: clamp(54px, 7.3vw, 112px);
}

.finale h2 em {
  color: var(--paper);
}

.final-stamp {
  width: 150px;
  height: 150px;
  display: grid;
  place-content: center;
  margin: 50px 0 0 auto;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 8px 8px 0 var(--ink);
  font-size: 42px;
  font-weight: 950;
  line-height: 0.75;
  text-align: center;
  transform: rotate(10deg);
}

.final-stamp span {
  font-size: 11px;
  letter-spacing: 0.03em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 5vw, 78px);
  border-top: var(--line);
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

footer a {
  text-underline-offset: 3px;
}

.lightbox {
  width: min(92vw, 820px);
  max-width: none;
  height: min(90svh, 920px);
  max-height: none;
  padding: 18px 18px 55px;
  border: 3px solid var(--paper);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 15px 17px 0 var(--blue);
}

.lightbox::backdrop {
  background: rgb(23 18 15 / 90%);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  height: calc(100% - 18px);
  object-fit: contain;
}

.lightbox p {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--paper);
  font: 900 34px/0.8 Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    background: linear-gradient(165deg, #eee5d0 0 67%, #fa6a42 67% 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 64px 0 12px;
  }

  h1 {
    font-size: clamp(68px, 19vw, 135px);
  }

  h1 b {
    margin-right: 12%;
  }

  .hero-visual {
    min-height: 720px;
  }

  .hero-photo-wrap {
    inset: 5% 9% 13% 9%;
  }

  .funny,
  .finale {
    grid-template-columns: 1fr;
  }

  .funny-intro {
    position: static;
  }

  .finale-collage {
    min-height: 620px;
  }

  .finale-copy {
    padding-top: 40px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 14px 16px 48px;
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-note {
    display: none;
  }

  .hero-copy {
    padding-top: 52px;
  }

  .fine-print {
    max-width: 90%;
  }

  .hero-visual {
    min-height: 530px;
    margin-top: 8px;
  }

  .hero-photo-wrap {
    inset: 7% 5% 12% 7%;
    padding: 9px 9px 45px;
    box-shadow: 8px 9px 0 var(--ink);
  }

  .mini-photo {
    width: 108px;
    padding: 6px 6px 24px;
  }

  .mini-photo-left {
    left: 0;
    bottom: 1%;
  }

  .mini-photo-right {
    top: 0;
    right: -3%;
  }

  .speech-hero {
    right: -1%;
    bottom: 5%;
    font-size: 17px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 82px 18px;
  }

  .section h2 {
    font-size: clamp(45px, 14vw, 72px);
  }

  .heading-sticker {
    width: 96px;
    height: 96px;
    margin: 0 3px 0 0;
    border-width: 3px;
    box-shadow: 5px 6px 0 var(--ink);
    font-size: 11px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading {
    margin-bottom: 52px;
  }

  .photo-wall {
    columns: 2 130px;
    column-gap: 14px;
  }

  .memory-card {
    margin-bottom: 22px;
    padding: 6px 6px 29px;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .memory-card figcaption {
    right: 6px;
    bottom: 7px;
    left: 6px;
    font-size: 8px;
  }

  .memory-card::before {
    top: 5px;
    width: 48px;
    height: 16px;
  }

  .funny-grid {
    gap: 38px 14px;
  }

  .funny-card:nth-child(even) {
    margin-top: 50px;
  }

  .funny-card .bubble {
    top: -18px;
    right: -8px;
    min-width: 66px;
    padding: 9px 10px 8px;
    font-size: 15px;
  }

  .funny-card:nth-child(3n) .bubble {
    left: -8px;
  }

  .finale {
    padding-top: 70px;
  }

  .finale-collage {
    min-height: 420px;
  }

  .finale-collage img {
    border-width: 5px;
    box-shadow: 7px 8px 0 var(--ink);
  }

  .final-stamp {
    width: 120px;
    height: 120px;
    font-size: 34px;
  }

  footer {
    flex-wrap: wrap;
    font-size: 9px;
  }

  .lightbox {
    height: 82svh;
    padding: 10px 10px 42px;
    box-shadow: 8px 9px 0 var(--blue);
  }
}

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