/* The new sections are scoped here so the existing hero stays unchanged. */
.monke-story,
.meme-room,
.playground,
.hood-signoff {
  padding: clamp(34px, 5vw, 76px) 6%;
}

.monke-story .eyebrow,
.meme-room .eyebrow,
.playground .eyebrow {
  display: block;
  margin-bottom: 15px;
  font: 700 10px/1.5 var(--mono);
  letter-spacing: .1em;
}

.monke-story {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  color: var(--paper);
  background: var(--forest);
}

.story-copy { min-width: 0; }
.story-copy .eyebrow { color: var(--yellow); }
.story-copy h2 {
  font-size: clamp(58px, 7.2vw, 110px);
  line-height: .88;
}
.story-copy h2 em { color: var(--yellow); }
.story-copy > p:not(.eyebrow):not(.story-punchline) {
  max-width: 29ch;
  margin-top: 25px;
  color: #d4dbc8;
  font-size: 15px;
  line-height: 1.65;
}
.story-punchline {
  display: inline-block;
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid #bfc7b04a;
  color: var(--yellow);
  font: 700 10px/1.5 var(--mono);
  letter-spacing: .06em;
}
.story-pair { margin-top: 23px; display: grid; gap: 6px; }
.story-pair > span { color: #d4dbc8; font: 700 9px/1.5 var(--mono); letter-spacing: .1em; }
.story-pair strong { color: var(--yellow); font: 800 clamp(32px, 4vw, 55px)/1 var(--display); }
.story-art { min-width: 0; width: 100%; max-width: 560px; justify-self: end; }
.story-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.story-art figcaption {
  padding-top: 12px;
  color: var(--yellow);
  text-align: right;
  font: 700 9px/1.5 var(--mono);
  letter-spacing: .1em;
}

.meme-room { color: var(--ink); background: var(--yellow); }
.meme-room-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  column-gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}
.meme-room-heading .eyebrow { grid-column: 1 / -1; }
.meme-room-heading h2 {
  font-size: clamp(62px, 8vw, 120px);
  line-height: .85;
}
.meme-room-heading h2 em { color: var(--red); }
.meme-room-heading .meme-intro {
  max-width: 25ch;
  margin: 0 0 4px;
  justify-self: end;
  font-size: 14px;
  line-height: 1.6;
}
.meme-room .gallery-toolbar {
  margin: 0 0 26px;
  padding: 11px 0;
  border-block: 1px solid var(--line);
  gap: 14px;
}
.meme-room .gallery-tabs { gap: 24px; }
.meme-room .gallery-tabs button { padding: 8px 0; font-size: 10px; }
.meme-room .gallery-tabs button > span { margin-left: 5px; }
.meme-room .motion-toggle { padding: 8px 0; font-size: 9px; }
.meme-spotlight {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(24px, 4vw, 65px);
}
.spotlight-picture {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--forest);
  cursor: zoom-in;
}
.spotlight-expand { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 42px; height: 42px; color: var(--yellow); background: var(--forest); font: 28px/1 var(--mono); }
.spotlight-picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.spotlight-copy { min-width: 0; padding: 9px 0; }
.spotlight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  font: 700 9px/1.6 var(--mono);
  letter-spacing: .06em;
}
.spotlight-meta > span + span { opacity: .65; }
.spotlight-copy h3 {
  max-width: 12ch;
  font-size: clamp(41px, 5.8vw, 88px);
  line-height: .92;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.spotlight-download {
  display: inline-block;
  margin-top: 25px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  font: 700 10px/1.6 var(--mono);
}
.spotlight-download:hover { color: var(--red); }
.spotlight-navigation { display: flex; gap: 10px; margin-top: 30px; }
.spotlight-navigation button {
  display: grid;
  place-items: center;
  min-width: 53px;
  min-height: 49px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  background: transparent;
  font: 700 25px/1 var(--mono);
  transition: background .15s, color .15s;
}
.spotlight-navigation button:hover { background: var(--ink); color: var(--yellow); }
.spotlight-navigation button:active { transform: translateY(2px); }

/* Override the old polaroid layout, including its nth-child rules. */
#evidenceWall.evidence-wall {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 6), minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  max-width: none;
  margin: 26px 0 0;
  padding: 0;
}
#evidenceWall .evidence {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  opacity: .65;
  transition: opacity .18s, transform .18s;
}
#evidenceWall .evidence > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid transparent;
}
#evidenceWall .evidence[aria-pressed="true"] { opacity: 1; }
#evidenceWall .evidence[aria-pressed="true"] > img { border-color: var(--ink); }
#evidenceWall .evidence:hover,
#evidenceWall .evidence:focus-visible { opacity: 1; transform: translateY(-3px); box-shadow: none; }
#evidenceWall .evidence-caption { display: block; padding: 7px 2px 0; text-align: center; }
#evidenceWall .evidence-caption > span:first-child {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 700 9px/1.5 var(--mono);
}
#evidenceWall .evidence-caption strong,
#evidenceWall .photo-open,
#evidenceWall .tape { display: none; }

.playground { background: var(--paper); color: var(--ink); }
.playground-heading { margin-bottom: 28px; }
.playground-heading h2 { font-size: clamp(56px, 8vw, 115px); line-height: .9; }
.toy-panel { border-top: 2px solid var(--ink); }
.toy-panel:last-child { border-bottom: 2px solid var(--ink); }
.toy-panel > summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
}
.toy-panel > summary::-webkit-details-marker { display: none; }
.toy-panel > summary::marker { content: ''; }
.toy-number { flex: 0 0 34px; font: 700 11px/1 var(--mono); }
.toy-panel > summary :is(strong, h2) {
  font: 800 clamp(30px, 4.6vw, 67px)/.95 var(--display);
  letter-spacing: -.025em;
}
.toy-arrow { margin-left: auto; font: 400 36px/1 var(--mono); transition: transform .2s; }
.toy-panel[open] > summary .toy-arrow { transform: rotate(45deg); }
.toy-panel > summary:hover { color: var(--red); }
.playground .toy-content.press {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;
  margin: 0;
  padding: 0 0 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.playground .press-preview { min-width: 0; border: 0; }
.playground .press-copy { min-width: 0; padding: 0 0 0 34px; }
.playground .press-copy h3 { margin: 0 0 18px; font-size: clamp(46px, 5.9vw, 86px); }
.playground .press-copy > p { max-width: 30ch; margin-bottom: 23px; font-size: 14px; line-height: 1.6; }
.playground .press-controls { gap: 11px; }
.playground .press-controls .button { min-height: 48px; padding: 13px 15px; font-size: 10px; }
.playground .toy-content.radio-device {
  width: 100%;
  margin: 0 0 30px;
  padding: 18px;
  border: 0;
  background: var(--forest);
  color: var(--paper);
  box-shadow: none;
  transform: none;
}
.playground .device-label { color: var(--lime); padding-bottom: 14px; }
.playground .terminal-output { height: 200px; padding: 18px; border: 0; font-size: 12px; }
.playground .terminal-form { padding: 11px 17px; border: 0; border-top: 1px solid #354828; }
.playground .radio-channels { margin-top: 13px; gap: 8px; }
.playground .radio-channels button { padding: 12px 5px; font-size: clamp(7px, 1vw, 10px); }
.playground .toy-panel:not([open]) > .toy-content { display: none; }

.hood-signoff {
  display: grid;
  grid-template-columns: clamp(130px, 18vw, 250px) 1fr;
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 19px;
  align-items: start;
  color: var(--yellow);
  background: var(--forest);
}
.signoff-avatar {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.hood-signoff h2 { grid-column: 2; font-size: clamp(48px, 7.1vw, 110px); line-height: .88; }
.hood-signoff .social-links { grid-column: 2; flex-wrap: wrap; gap: 24px; }
.hood-signoff .social-links button { color: var(--paper); border-color: #d4dbc869; font-size: 10px; }
.hood-signoff .social-links button:hover { color: var(--yellow); border-color: var(--yellow); }
.signoff-top { grid-column: 2; justify-self: start; color: #bfc7b0; font: 700 9px/1.5 var(--mono); }
.signoff-top:hover { color: var(--yellow); }

@media (min-width: 1550px) {
  .monke-story,
  .meme-room,
  .playground,
  .hood-signoff { padding-inline: max(6%, calc((100% - 1400px) / 2)); }
}

@media (max-width: 760px) {
  .monke-story { grid-template-columns: 1fr; gap: 27px; }
  .story-copy h2 { font-size: clamp(59px, 12.8vw, 95px); }
  .story-copy > p:not(.eyebrow):not(.story-punchline) { max-width: 36ch; margin-top: 18px; font-size: 14px; }
  .story-punchline { margin-top: 17px; font-size: 9px; }
  .story-art { max-width: 500px; justify-self: center; }
  .story-art figcaption { font-size: 8px; }
  .meme-room-heading { column-gap: 20px; margin-bottom: 22px; }
  .meme-room-heading h2 { font-size: clamp(55px, 10vw, 78px); }
  .meme-room-heading .meme-intro { font-size: 12px; }
  .meme-room .gallery-toolbar { margin-bottom: 20px; gap: 9px; }
  .meme-room .gallery-tabs { gap: 16px; }
  .meme-room .gallery-tabs button { font-size: 8px; }
  .meme-room .motion-toggle { font-size: 8px; }
  .meme-spotlight { grid-template-columns: 1fr; gap: 18px; }
  .spotlight-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 18px; padding: 0; }
  .spotlight-meta { grid-column: 1 / -1; margin-bottom: 12px; font-size: 8px; }
  .spotlight-copy h3 { grid-column: 1; max-width: 17ch; font-size: clamp(35px, 7.5vw, 56px); }
  .spotlight-download { grid-column: 1; justify-self: start; margin-top: 15px; font-size: 9px; }
  .spotlight-navigation { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; gap: 7px; }
  .spotlight-navigation button { min-width: 44px; min-height: 44px; padding: 7px 10px; font-size: 21px; }
  #evidenceWall.evidence-wall { gap: 8px; margin-top: 22px; }
  #evidenceWall .evidence-caption > span:first-child { font-size: 8px; }
  .playground-heading { margin-bottom: 20px; }
  .playground-heading h2 { font-size: clamp(58px, 11vw, 86px); }
  .toy-panel > summary { gap: 12px; padding: 22px 0; }
  .toy-number { flex-basis: 25px; font-size: 10px; }
  .toy-panel > summary :is(strong, h2) { font-size: clamp(29px, 5.8vw, 44px); }
  .toy-arrow { font-size: 30px; }
  .playground .toy-content.press { grid-template-columns: 1fr; gap: 25px; padding-bottom: 28px; }
  .playground .press-copy { padding: 0; }
  .playground .press-copy h3 { font-size: 56px; margin-bottom: 13px; }
  .playground .press-copy > p { max-width: none; margin-bottom: 18px; }
  .playground .press-controls { flex-direction: row; flex-wrap: wrap; }
  .playground .press-controls .button { flex: 1 1 180px; font-size: 10px; }
  .playground .toy-content.radio-device { padding: 12px; }
  .playground .terminal-output { height: 200px; padding: 15px 10px; font-size: 11px; }
  .playground .terminal-form { padding: 10px; gap: 9px; }
  .playground .radio-channels { gap: 4px; }
  .hood-signoff { grid-template-columns: clamp(100px, 22vw, 170px) 1fr; gap: 16px 22px; }
  .hood-signoff h2 { font-size: clamp(40px, 7.7vw, 63px); }
  .hood-signoff .social-links { gap: 15px; }
  .hood-signoff .social-links button { font-size: 8px; }
  .hood-signoff .social-links button > span { margin-left: 6px; font-size: 16px; }
  .signoff-top { font-size: 8px; }
}

@media (max-width: 430px) {
  .monke-story,
  .meme-room,
  .playground,
  .hood-signoff { padding-inline: 5%; }
  .meme-room-heading { grid-template-columns: 1fr; gap: 0; }
  .meme-room-heading .meme-intro { justify-self: start; max-width: 30ch; margin-top: 15px; }
  .meme-room-heading h2 { font-size: 61px; }
  .meme-room .gallery-tabs { gap: 12px; }
  .meme-room .gallery-tabs button { font-size: 7px; }
  .meme-room .gallery-tabs button > span { font-size: 7px; margin-left: 3px; }
  .spotlight-copy { column-gap: 12px; }
  .spotlight-copy h3 { font-size: 35px; }
  .spotlight-navigation { flex-direction: column; gap: 5px; }
  #evidenceWall.evidence-wall { gap: 5px; }
  #evidenceWall .evidence-caption { padding-top: 5px; }
  .hood-signoff { grid-template-columns: 92px 1fr; column-gap: 17px; }
  .hood-signoff h2 { font-size: clamp(34px, 9.3vw, 40px); }
  .hood-signoff .social-links { gap: 8px; }
  .hood-signoff .social-links button { padding-block: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  #evidenceWall .evidence,
  .spotlight-navigation button,
  .toy-arrow { transition: none; }
  #evidenceWall .evidence:hover,
  #evidenceWall .evidence:focus-visible { transform: none; }
}

/* Meme editor: the image sets the canvas ratio, including portrait templates. */
.playground .press-preview { align-self: start; }
.playground .meme-canvas {
  width: 100%;
  max-width: min(100%, calc(max(340px, 60vh) * var(--meme-ratio, 1)));
  margin-inline: auto;
  container-type: inline-size;
}
.playground .meme-canvas > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.playground .meme-caption {
  left: 4%;
  width: 92%;
  margin: 0;
  font-size: 7.2cqw;
  line-height: 1;
  letter-spacing: normal;
  -webkit-text-stroke-width: .64cqw;
  text-shadow: none;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.playground .press-copy { justify-content: flex-start; }
.playground .press-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.7vw, 64px);
  line-height: .95;
}
.template-picker {
  min-inline-size: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.template-picker > legend {
  margin-bottom: 9px;
  padding: 0;
  font: 700 10px/1.5 var(--mono);
  letter-spacing: .08em;
}
.template-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.template-choice {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  padding: 3px;
  border: 2px solid transparent;
  background: transparent;
  opacity: .68;
  transition: opacity .15s, border-color .15s;
}
.template-choice img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.template-choice[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--yellow);
  opacity: 1;
}
.template-choice:hover,
.template-choice:focus-visible { opacity: 1; }
.template-choice:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.caption-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.caption-fields label {
  display: grid;
  min-width: 0;
  gap: 6px;
  font: 700 10px/1.4 var(--mono);
  letter-spacing: .08em;
}
.caption-fields input {
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #142b2066;
  border-radius: 0;
  background: #fffaf0;
  color: var(--ink);
  font: 400 14px/1.4 var(--body);
  letter-spacing: normal;
  text-transform: none;
}
.caption-fields input:focus-visible {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .template-choices { gap: 7px; }
  .template-choice { padding: 2px; }
  .caption-fields input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .template-choice { transition: none; }
}

@media (max-width: 430px) { #evidenceWall.motion-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
