:root {
  --red: #D0212B;
  --paper: #f4f1ea;
  --ink: #131313;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #6e6e6e;
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.work {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 86px 6% 160px;
  overflow: hidden;
  background: #6f6f6f;
}

.wall-tiles {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.wall-tile {
  position: absolute;
  background-image: url('images/wall.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.work::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 20%, rgba(0,0,0,.03) 100%);
}

.work-content {
  max-width: 1400px;
  margin: 0 auto;
}

.work-content h2 {
  margin: 0 0 95px;
  font-size: clamp(56px,8vw,118px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.09em;
}

.work-content h2 span {
  color: var(--red);
}

.poster-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  column-gap: clamp(56px,10vw,180px);
  row-gap: clamp(62px,9vw,118px);
  align-items: start;
  padding: 0 2% 0 4%;
}

.poster {
  --tilt: 0deg;
  position: relative;
  display: block;
  max-width: 590px;
  transform: rotate(var(--tilt));
  transform-origin: 50% 48%;
  cursor: pointer;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,.24));
  isolation: isolate;
}

.poster,.poster:hover,.poster:focus-visible {
  transition: none;
}

.poster:focus-visible {
  outline: 3px dashed var(--red);
  outline-offset: 8px;
}

.poster-paper {
  display: block;
  position: relative;
  background: transparent;
}

.paper-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.poster-art,.grain-layer {
  pointer-events: none;
}

.paper-svg .grain-layer {
  mix-blend-mode: multiply;
  opacity: .11;
}

.flap-transform,.cut-transform {
  pointer-events: none;
}

.flap-transform {
  filter: drop-shadow(2px 5px 4px rgba(0,0,0,.26));
}

.flap-underside {
  stroke: #c7c0b4;
  stroke-width: .55;
  stroke-linejoin: round;
}

.hinge-shade {
  stroke-linecap: round;
}

.fold-highlight {
  stroke-linecap: round;
}

.poster.is-hovered {
  filter: drop-shadow(5px 9px 10px rgba(0,0,0,.27));
}

.poster-one {
  grid-column: 1;
  width: 82%;
  margin-top: 0;
  --tilt: -.8deg;
}

.poster-two {
  grid-column: 2;
  width: 78%;
  margin-left: 17%;
  margin-top: 96px;
  --tilt: 1deg;
}

.poster-three {
  grid-column: 1;
  width: 111%;
  max-width: none;
  margin-top: -48px;
  --tilt: -.55deg;
}

.poster-four {
  grid-column: 2;
  width: 115%;
  max-width: none;
  margin-left: -15%;
  margin-top: 58px;
  --tilt: .75deg;
}

.poster-five {
  grid-column: 1;
  width: 90%;
  margin-top: -40px;
  --tilt: -.8deg;
}

.poster-six {
  grid-column: 2;
  width: 116%;
  max-width: none;
  margin-left: -28%;
  margin-top: 68px;
  --tilt: .6deg;
}

@media (max-width:840px) {
  .work {
    padding: 74px 5.2% 118px;
  }
  .work-content h2 {
    margin-bottom: 70px;
  }
  .poster-grid {
    column-gap: 7%;
    row-gap: 58px;
    padding: 0;
  }
  .poster-two {
    margin-top: 66px;
  }
  .poster-four,.poster-six {
    margin-top: 34px;
  }
}

@media (max-width:560px) {
  .work {
    padding: 62px 6% 86px;
  }
  .work-content h2 {
    font-size: 56px;
    margin-bottom: 58px;
  }
  .poster-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    column-gap: 10%;
    row-gap: 46px;
  }
  .poster-one,.poster-two,.poster-three,.poster-four,.poster-five,.poster-six {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  .poster-two {
    margin-top: 32px;
  }
  .poster-four,.poster-six {
    margin-top: 22px;
  }
  .poster-five {
    margin-top: 0;
  }
}

@media (hover:none) {
  .flap-transform {
    display: none !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .poster {
    transform: rotate(var(--tilt)) !important;
  }
  .flap-transform {
    display: none !important;
  }
}

@media (min-width:841px) {
  .poster-four {
    margin-top: 148px !important;
  }
  .poster-three {
    margin-top: -35px !important;
  }
}

body {
  background: #645f59;
}

.work {
  background: #645f59;
}

.wall-tiles {
  filter: brightness(.86) contrast(1.02) saturate(.80);
}

.work::before {
  background: linear-gradient(180deg,rgba(51,45,41,.11),rgba(51,45,41,.04) 35%,rgba(30,27,25,.16));
}

@media (min-width:841px) {
  .poster-three {
    width: 104% !important;
  }
  .poster-four {
    width: 108% !important;
    margin-left: -7% !important;
    margin-top: 210px !important;
  }
}

.work::before {
  background: linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.34) 42%,rgba(0,0,0,.45)) !important;
}

.work-content h2 {
  color: #fff;
  text-shadow: 0 2px 7px rgba(0,0,0,.35);
}

.flap-transform {
  filter: none !important;
}

.flap-cast-shadow,.hinge-shade {
  filter: none !important;
  opacity: .11;
}

.poster {
  filter: drop-shadow(2px 4px 3px rgba(0,0,0,.22));
}

.poster.is-hovered {
  filter: drop-shadow(2px 4px 3px rgba(0,0,0,.22));
}

.work {
  padding-bottom: 120px;
}

.work-content h2 span {
  display: inline-block;
  font-size: .37em;
  margin-left: 12px;
  vertical-align: middle;
}

.poster-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(24px,7vw,120px);
  row-gap: clamp(65px,7vw,100px);
  padding: 0 4%;
}

.poster-one {
  width: 85% !important;
  grid-column: 1;
  margin: 0;
  --tilt: -1deg;
}

.poster-two {
  width: 92% !important;
  grid-column: 2;
  margin: 80px 0 0 !important;
  --tilt: 1deg;
}

.poster-caption {
  display: block;
  margin-top: 19px;
  color: #f7f3ec;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: normal;
  line-height: 1.3;
}

.upcoming-note {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  transform: rotate(-1.2deg);
  width: min(100%,540px);
  min-height: 300px;
  padding: 52px clamp(28px,5vw,55px) 33px;
  background: #ece9e1;
  color: #161616;
  box-shadow: 3px 9px 14px rgba(0,0,0,.2);
}

.upcoming-note::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.7);
}

.upcoming-note .pin {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d0212b;
  box-shadow: 1px 2px 3px #555;
  transform: translateX(-50%);
}

.upcoming-eyebrow,.upcoming-foot {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}

.upcoming-note h3 {
  font-size: clamp(35px,5.8vw,69px);
  line-height: .97;
  letter-spacing: -.09em;
  margin: 18px 0 16px;
  font-weight: 900;
}

.upcoming-note h3 span {
  color: #d0212b;
}

.upcoming-note p {
  font-size: 15px;
  margin: 0 0 26px;
}

.upcoming-foot {
  border-top: 1px solid #151515;
  padding-top: 10px;
  display: block;
}

@media (max-width:760px) {
  .poster-one,.poster-two {
    width: 100% !important;
  }
  .poster-two {
    margin-top: 45px !important;
  }
}

@media (max-width:560px) {
  .poster-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .poster-one,.poster-two {
    grid-column: 1;
    margin: 0 !important;
    width: 100% !important;
  }
  .upcoming-note {
    grid-column: 1;
    min-height: 250px;
  }
  .poster-caption {
    font-size: 10px;
  }
  .work-content h2 {
    font-size: clamp(47px,11vw,70px);
  }
}

.work-content h2 {
  margin-bottom: 86px;
}

.poster-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(44px,8vw,140px);
  row-gap: clamp(60px,8vw,120px);
  padding: 0 2% 0 3%;
}

.poster-one {
  grid-column: 1;
  width: 82% !important;
  margin: 0 !important;
  --tilt: -.8deg;
}

.poster-two {
  grid-column: 2;
  width: 88% !important;
  margin: 84px 0 0 4% !important;
  --tilt: 1deg;
}

.poster-three {
  grid-column: 1;
  width: 104% !important;
  margin: -35px 0 0 !important;
  --tilt: -.55deg;
}

.poster-four {
  grid-column: 2;
  width: 108% !important;
  margin: 145px 0 0 -7% !important;
  --tilt: .75deg;
}

.poster-five {
  grid-column: 1;
  width: 92% !important;
  margin: -30px 0 0 !important;
  --tilt: -.8deg;
}

.upcoming-note {
  grid-column: 2;
  width: min(100%,450px);
  margin: 62px auto 0;
  align-self: center;
}

@media (max-width:760px) {
  .poster-grid {
    column-gap: 7%;
    row-gap: 65px;
  }
  .poster-one,.poster-two,.poster-three,.poster-four,.poster-five {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .poster-two {
    margin-top: 50px !important;
  }
  .poster-four {
    margin-top: 40px !important;
  }
  .upcoming-note {
    margin-top: 20px;
  }
}

@media (max-width:560px) {
  .poster-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }
  .poster-one,.poster-two,.poster-three,.poster-four,.poster-five {
    grid-column: 1;
    width: 100% !important;
    margin: 0 !important;
  }
  .upcoming-note {
    grid-column: 1;
    width: 100%;
    margin: 0;
  }
}

.work-content h2 .punct-square {
  display: inline-block;
  width: .12em;
  height: .12em;
  background: var(--red);
  font-size: inherit;
  vertical-align: baseline;
  line-height: 0;
  transform: none;
  margin: 0 0 .04em .105em;
}

.upcoming-note {
  background: #e4e0d7 !important;
  color: #111 !important;
  min-height: 520px !important;
  box-shadow: 3px 8px 14px #0003 !important;
  border: 0 !important;
  padding: 26px 30px 28px !important;
  transform: rotate(-.8deg) !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.upcoming-note::after {
  border: 0 !important;
  background: none !important;
}

.monad-head,.monad-foot {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  font: 800 11px/1.25 Arial,Helvetica,sans-serif;
  letter-spacing: .11em;
}

.monad-head {
  border-bottom: 3px solid #151515;
  padding-bottom: 12px;
}

.monad-head span:first-child {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.monad-body {
  padding: 50px 0 65px;
}

.monad-label {
  font: 900 clamp(18px,3vw,34px)/.98 Arial,Helvetica,sans-serif;
  letter-spacing: -.07em;
}

.upcoming-note .monad-body h3 {
  font: 900 clamp(62px,9vw,119px)/.85 Arial,Helvetica,sans-serif;
  letter-spacing: -.105em;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.monad-square {
  display: inline-block;
  width: .105em;
  height: .105em;
  background: #d0212b;
  vertical-align: baseline;
  margin: 0 0 .02em .09em;
}

.monad-foot {
  border-top: 1px solid #111;
  padding-top: 14px;
}

@media (max-width:560px) {
  .upcoming-note {
    min-height: 360px !important;
    padding: 20px !important;
  }
  .monad-body {
    padding: 25px 0 35px;
  }
  .upcoming-note .monad-body h3 {
    font-size: clamp(60px,16vw,95px);
  }
}

.poster-library {
  grid-column: 2;
  width: 80% !important;
  max-width: 550px;
  margin: 45px auto 0 !important;
  --tilt: 1.1deg;
}

.upcoming-note {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: min(100%,535px) !important;
  margin: 10px auto 0 !important;
  min-height: 650px !important;
  background: #ecebe7 url('images/paper-texture.webp') center/cover no-repeat !important;
  border: 0 !important;
  box-shadow: 5px 9px 12px #0003 !important;
  filter: contrast(1.025);
}

.upcoming-note::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240,240,235,.32);
  pointer-events: none;
}

.upcoming-note .monad-head,.upcoming-note .monad-body,.upcoming-note .monad-foot {
  position: relative;
  z-index: 1;
}

.upcoming-note .monad-body h3 {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  gap: .035em !important;
  font-size: clamp(56px,8vw,108px) !important;
  letter-spacing: -.11em !important;
}

.monad-heart {
  display: inline-block !important;
  width: .32em !important;
  height: .32em !important;
  min-width: .32em !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  vertical-align: baseline !important;
  transform: translateY(.01em) !important;
}

.monad-foot {
  border: 0 !important;
  padding: 0 !important;
}

.monad-head {
  border: 0 !important;
  padding: 0 !important;
}

@media (max-width:760px) {
  .poster-library {
    width: 92% !important;
    margin: 0 auto !important;
  }
}

@media (max-width:560px) {
  .poster-library {
    grid-column: 1 !important;
    width: 90% !important;
    margin: 0 auto !important;
  }
  .upcoming-note {
    grid-column: 1 !important;
    min-height: 490px !important;
  }
  .upcoming-note .monad-body h3 {
    font-size: clamp(52px,13vw,87px) !important;
  }
}

html {
  scroll-behavior: auto !important;
}

.work {
  min-height: 0 !important;
  padding: clamp(65px,7vw,110px) 6% clamp(115px,10vw,170px) !important;
}

.work-content h2 {
  font-size: clamp(51px,8vw,109px) !important;
  line-height: 1 !important;
  margin: 0 0 18px !important;
}

.wall-intro {
  color: #eee6e1;
  margin: 0 0 clamp(40px,5vw,75px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.3;
}

.poster-grid.where-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: clamp(30px,8vw,115px) !important;
  align-items: start !important;
  padding: 0 2% !important;
}

.where-item {
  min-width: 0 !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: auto !important;
  width: 100% !important;
  max-width: none !important;
}

.where-item .poster-four {
  grid-column: auto !important;
  width: min(100%,450px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  --tilt: -.8deg;
}

.where-item .upcoming-note {
  width: min(100%,450px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  grid-column: auto !important;
  min-height: 610px !important;
}

.where-caption {
  color: #f6f0ea;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 24px auto 0;
  max-width: 450px;
  font: 800 11px/1.35 Arial,Helvetica,sans-serif;
  letter-spacing: .09em;
}

.where-caption span:last-child {
  opacity: .74;
  text-align: right;
}

@media (max-width:780px) {
  .poster-grid.where-grid {
    gap: 40px !important;
  }
  .where-item .upcoming-note {
    min-height: 510px !important;
  }
  .where-caption {
    display: block;
  }
  .where-caption span {
    display: block;
    margin-top: 6px;
    text-align: left !important;
  }
}

@media (max-width:600px) {
  .poster-grid.where-grid {
    grid-template-columns: 1fr !important;
    gap: 85px !important;
  }
  .where-item .upcoming-note {
    min-height: 490px !important;
  }
  .where-caption {
    display: flex;
  }
  .where-caption span {
    margin: 0;
  }
}

@media (max-width:560px) {
  .work-content h2 {
    font-size: clamp(36px,10.1vw,48px) !important;
    white-space: nowrap !important;
    letter-spacing: -.09em !important;
  }
  .work-content h2 .punct-square {
    width: .105em;
    height: .105em;
    margin-left: .045em !important;
  }
}

.monad-heart path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transform-box: fill-box;
  transform-origin: center;
  animation: monadHeartDraw 4.8s ease-in-out infinite, monadHeartBeat 1.9s ease-in-out infinite .95s;
}

.upcoming-note {
  transition: box-shadow .35s ease,filter .35s ease;
  will-change: transform;
  outline: none;
}

.upcoming-note.is-animated-hover {
  box-shadow: 10px 18px 22px rgba(0,0,0,.24) !important;
  filter: contrast(1.04) saturate(1.02);
}

.upcoming-note:focus-visible {
  box-shadow: 10px 18px 22px rgba(0,0,0,.24) !important;
}

@keyframes monadHeartDraw {
  0%,18% {
    stroke-dashoffset: 220;
    opacity: .6;
  }
  32%,85% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: .82;
  }
}

@keyframes monadHeartBeat {
  0%,100% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.08);
  }
  58% {
    transform: scale(.98);
  }
}

/* one red square, the same everywhere: on the baseline, a small gap after the last letter */
html body .punct-square {
  display: inline-block !important;
  width: .13em !important;
  height: .13em !important;
  min-width: 0 !important;
  margin: 0 0 0 .1em !important;
  padding: 0 !important;
  vertical-align: baseline !important;
  position: static !important;
  transform: none !important;
  translate: none !important;
  background: #D0212B !important;
  border: 0 !important;
}

.where-item .poster-lisbon {
  grid-column: auto !important;
  width: min(100%,450px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  --tilt: .7deg;
}
