.creative-wall {
  --wall-ink: #292e40;
  --wall-paper: #f8f0f5;
  --wall-blush: #e9a7c1;
  --wall-lilac: #d0d3e5;
  --wall-screen: radial-gradient(circle, #434a6124 .85px, transparent 1.2px);
  --torn-paper: polygon(0 1%, 9% 0, 24% 1%, 31% 0, 40% .6%, 59% 0, 76% .8%, 88% 0, 99% .9%, 100% 15%, 99.5% 31%, 100% 52%, 99.5% 63%, 100% 84%, 99.2% 99%, 91% 98.5%, 84% 100%, 72% 98.7%, 67% 99.7%, 55% 98.6%, 47% 100%, 35% 98.7%, 29% 99.8%, 17% 99%, 8% 100%, 0 99%, .7% 82%, 0 65%, .5% 49%, 0 32%, .5% 18%);
  position: relative;
  overflow: clip;
  background-color: var(--wall-ink);
  background-image: radial-gradient(circle, #d0d3e52e .85px, transparent 1.15px), linear-gradient(155deg, #434a61, var(--wall-ink) 53%);
  background-size: 7px 7px, auto;
  color: var(--wall-paper);
  padding-block-end: clamp(2.75rem, 7vw, 6rem);
}

.creative-wall :focus-visible {
  outline-color: var(--wall-blush);
}

.wall-hero {
  padding-block: clamp(3rem, 7.5vw, 7rem) clamp(2.25rem, 6.5vw, 5.5rem);
}

.wall-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  isolation: isolate;
}

.wall-headline {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: clamp(1.7rem, 5.2vw, 5rem) clamp(1.55rem, 4.8vw, 4.75rem);
  color: var(--wall-ink);
  transform: rotate(-1.7deg);
  animation: wall-press-in 650ms cubic-bezier(.2,.7,.25,1) both;
}

.wall-headline::before,
.wall-headline::after {
  position: absolute;
  content: "";
  clip-path: var(--torn-paper);
  pointer-events: none;
}

.wall-headline::before {
  z-index: -2;
  inset: .35rem -.85rem -.9rem .65rem;
  background: var(--wall-screen) 0 0 / 6px 6px, var(--wall-blush);
  transform: rotate(4.5deg);
}

.wall-headline::after {
  z-index: -1;
  inset: 0;
  background: var(--wall-screen) 0 0 / 7px 7px, var(--wall-paper);
}

.wall-label,
.wall-feature figcaption,
.wall-index a,
.wall-project figcaption {
  font: 650 clamp(.66rem, 1.1vw, .8rem)/1.25 var(--mono, monospace);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wall-headline .wall-label {
  display: flex;
  justify-content: space-between;
  gap: .65rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #434a6170;
}

.wall-headline h1,
.wall-project h2 {
  margin: 0;
  font-family: var(--display, Nunito, sans-serif);
  font-weight: 900;
  letter-spacing: -.058em;
  line-height: .86;
}

.wall-headline h1 {
  margin: .19em 0 .22em;
  font-size: clamp(4rem, 10.1vw, 10rem);
}

.wall-headline h1 span {
  display: block;
  color: var(--accent, #7e3d60);
}

.wall-headline .wall-intro {
  max-width: 32ch;
  margin: 0 0 .95rem;
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  line-height: 1.25;
}

.wall-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.wall-text-link span {
  transition: translate 180ms ease;
}

.wall-text-link:is(:hover, :focus-visible) span {
  translate: .2rem 0;
}

.wall-headline :focus-visible,
.wall-feature :focus-visible,
.wall-project :focus-visible {
  outline-color: var(--wall-ink);
}

.wall-feature {
  position: relative;
  z-index: 1;
  margin: .4rem 1rem 0 -1.7rem;
  padding: clamp(.5rem, 1.2vw, .85rem);
  background: var(--wall-lilac);
  color: var(--wall-ink);
  transform: rotate(5.5deg);
  box-shadow: .54rem .64rem 0 #181d32b0;
  animation: wall-photo-in 800ms 60ms cubic-bezier(.2,.7,.25,1) both;
}

.wall-feature::before,
.street-print::before {
  position: absolute;
  z-index: 3;
  content: "";
  width: 30%;
  height: clamp(.9rem, 2vw, 1.4rem);
  top: -.4rem;
  left: 36%;
  transform: rotate(-8deg);
  background: repeating-linear-gradient(94deg, #ffffff26 0 1px, transparent 1px 4px), #e9a7c1d9;
  clip-path: polygon(0 6%, 100% 0, 98% 27%, 100% 48%, 98% 70%, 99% 95%, 0 100%, 1% 74%, 0 55%, 2% 25%);
  pointer-events: none;
}

.wall-feature figcaption {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .16rem .1rem;
}

.wall-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--wall-ink);
}

.wall-photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: scale 230ms ease, filter 230ms ease;
}

.wall-photo:is(:hover, :focus-visible) img {
  scale: 1.035;
  filter: brightness(1.07);
}

.wall-feature-photo img {
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: 32% center;
}

.wall-photo-mark {
  position: absolute;
  right: .4rem;
  bottom: .4rem;
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1;
  place-items: center;
  background: var(--wall-paper);
  color: var(--wall-ink);
  font-size: .93rem;
  line-height: 1;
  transition: translate 180ms ease, background-color 180ms ease, color 180ms ease;
}

.wall-photo:is(:hover, :focus-visible) .wall-photo-mark {
  translate: 0 -.12rem;
  background: var(--wall-ink);
  color: var(--wall-paper);
}

.wall-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  border-block: 1px solid #f8f0f55e;
  padding-block: .35rem;
}

.wall-index a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  color: var(--wall-paper);
  text-decoration: none;
}

.wall-index a span {
  color: var(--wall-blush);
}

.wall-index a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.wall-collection {
  display: grid;
  gap: clamp(4rem, 9vw, 8rem);
  padding-block: clamp(3rem, 7.5vw, 6rem);
}

.wall-project {
  --project-paper: var(--wall-paper);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(1.1rem, 4.2vw, 4.75rem);
  isolation: isolate;
  padding: clamp(1.35rem, 4.7vw, 4.5rem);
  color: var(--wall-ink);
  scroll-margin-top: 1.75rem;
}

.wall-project::before,
.wall-project::after {
  position: absolute;
  content: "";
  clip-path: var(--torn-paper);
  pointer-events: none;
}

.wall-project::before {
  inset: .5rem -.4rem -.65rem .5rem;
  z-index: -2;
  background: var(--wall-screen) 0 0 / 6px 6px, var(--wall-blush);
  transform: rotate(-2.2deg);
}

.wall-project::after {
  inset: 0;
  z-index: -1;
  background: var(--wall-screen) 0 0 / 7px 7px, var(--project-paper);
}

.wall-project h2 {
  margin: .24em 0 .25em;
  font-size: clamp(2.75rem, 6.3vw, 6.65rem);
}

.wall-project-copy > p:not(.wall-label) {
  max-width: 30ch;
  margin: .7rem 0;
  font-size: clamp(.98rem, 1.75vw, 1.16rem);
  line-height: 1.35;
}

.street-prints,
.sticker-prints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(.45rem, 1.4vw, 1.25rem);
}

.street-prints {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
}

.street-print,
.sticker-prints figure,
.game-prints figure {
  position: relative;
  margin: 0;
  padding: clamp(.34rem, .7vw, .63rem);
  background: var(--wall-paper);
  box-shadow: .25rem .32rem 0 #434a6140;
}

.street-print:first-child {
  z-index: 1;
  transform: rotate(-4deg);
}

.street-print:last-child {
  transform: translate(-.25rem, .9rem) rotate(5deg);
}

.street-print:last-child::before {
  left: 58%;
  transform: rotate(13deg);
}

.wall-project figcaption {
  padding-top: .55rem;
  letter-spacing: .02em;
  text-transform: none;
}

.sticker-project {
  --project-paper: var(--wall-blush);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
}

.sticker-project::before {
  background-color: var(--wall-lilac);
  transform: rotate(2.25deg);
}

.sticker-project .wall-project-copy {
  grid-column: 2;
  grid-row: 1;
}

.sticker-project h2 {
  width: min(100%, 20rem);
  padding: .5rem .65rem;
  border: 1px solid var(--wall-ink);
  background: linear-gradient(var(--wall-paper) 49%, var(--wall-ink) 49%);
  box-shadow: .2rem .25rem 0 var(--accent, #7e3d60);
}

.sticker-project h2 img {
  width: 100%;
  height: auto;
}

.sticker-prints {
  grid-column: 1;
  grid-row: 1;
}

.sticker-prints figure:first-child {
  transform: rotate(-4deg);
}

.sticker-prints figure:last-child {
  transform: translateY(.9rem) rotate(3.5deg);
}

.game-project {
  --project-paper: var(--wall-lilac);
}

.game-prints {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: end;
}

.game-prints .game-character {
  transform: rotate(-3deg);
}

.game-prints .game-screen {
  z-index: 1;
  margin-left: -1.15rem;
  transform: translateY(.9rem) rotate(5deg);
}

.wall-exits {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: .6rem;
  border-block: 1px solid #f8f0f55e;
}

.wall-exits a:hover {
  color: var(--wall-blush);
}

.wall-viewer {
  position: fixed;
  inset: 0;
  width: min(92vw, 67rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  border: 1px solid #434a61;
  padding: clamp(.8rem, 2vw, 1.3rem);
  background: #f8f0f5;
  color: #292e40;
  box-shadow: .4rem .5rem 0 #e9a7c1;
}

.wall-viewer::backdrop {
  background: #22283be6;
}

.wall-viewer[open] {
  animation: viewer-open 180ms ease-out both;
}

@supports (transition-behavior: allow-discrete) and (overlay: auto) {
  .wall-viewer {
    opacity: 0;
    transform: translateY(.3rem);
    transition: opacity 160ms ease-out, transform 160ms ease-out,
      overlay 160ms allow-discrete, display 160ms allow-discrete;
  }

  .wall-viewer[open] {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }

  .wall-viewer::backdrop {
    opacity: 0;
    transition: opacity 160ms ease-out, overlay 160ms allow-discrete, display 160ms allow-discrete;
  }

  .wall-viewer[open]::backdrop { opacity: 1; }

  @starting-style {
    .wall-viewer[open] { opacity: 0; transform: translateY(.3rem); }
    .wall-viewer[open]::backdrop { opacity: 0; }
  }
}

.viewer-top,
.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.viewer-top h2 {
  margin: 0;
  font: 700 clamp(.72rem, 2vw, .94rem)/1.15 var(--mono, monospace);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.viewer-stage {
  display: grid;
  place-items: center;
  height: min(60dvh, 38rem);
}

.viewer-image {
  max-width: 100%;
  max-height: min(60dvh, 38rem);
  object-fit: contain;
}

.viewer-caption {
  min-height: 2.8em;
  margin-top: .65rem;
  font: 650 .77rem/1.4 var(--mono, monospace);
}

.wall-viewer figure {
  margin: .7rem 0;
}

.viewer-button {
  min-height: 2.75rem;
  border: 1px solid currentColor;
  padding: .4rem .75rem;
  background: transparent;
  color: inherit;
  font: 800 .83rem/1.2 var(--display, Nunito, sans-serif);
  cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}

.viewer-button:hover {
  background: #292e40;
  color: #f8f0f5;
}

@keyframes wall-press-in {
  from { opacity: 0; transform: translateY(-.8rem) rotate(-3.2deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1.7deg); }
}

@keyframes wall-photo-in {
  from { opacity: 0; transform: translateY(1rem) rotate(8deg); }
  to { opacity: 1; transform: translateY(0) rotate(5.5deg); }
}

@keyframes viewer-open {
  from { opacity: 0; transform: translateY(.3rem); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  @keyframes street-tape-shift {
    from { transform: translateY(-.12rem) rotate(-10deg); }
    to { transform: translateY(.12rem) rotate(-5deg); }
  }

  .street-print:first-child::before {
    animation: street-tape-shift linear both;
    animation-timeline: view();
  }
}

@media (max-width: 700px) {
  .wall-composition,
  .wall-project,
  .sticker-project {
    grid-template-columns: 1fr;
  }

  .wall-headline {
    margin-inline: 0 .35rem;
  }

  .wall-headline h1 {
    font-size: clamp(3.5rem, 14vw, 6rem);
  }

  .wall-feature {
    width: min(85%, 23rem);
    margin: -.5rem 0 0;
    justify-self: end;
  }

  .wall-index {
    gap: .4rem;
  }

  .wall-index a {
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: .18rem;
    line-height: 1.15;
  }

  .sticker-project .wall-project-copy,
  .sticker-prints {
    grid-column: auto;
    grid-row: auto;
  }

  .wall-project {
    padding-block-end: 1.9rem;
  }
}

@media (max-width: 500px) {
  .street-prints {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .street-print:first-child { width: min(72%, 13rem); }
  .street-print:last-child { transform: rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wall-headline,
  .wall-feature,
  .street-print:first-child::before,
  .wall-viewer[open] {
    animation: none;
  }

  .wall-photo img,
  .wall-text-link span,
  .wall-photo-mark,
  .wall-viewer::backdrop {
    transition: none;
  }

  .wall-photo:is(:hover, :focus-visible) img {
    scale: none;
  }
}
