/* Poster Presentation: paper, scissors, glue. The page makes the cover in front of you. */
.pp-page {
  --sand: #ecd08f;
  --sand2: #e4c27c;
  --brown: #3b2a1a;
  --blue: #4a8fc8;
  --pink: #e6a9c0;
  --ground: #f0b64e;
  --label: #ffd400;
  --gap: 44px;
  --inner: 22px;
  --title: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  background: var(--sand);
  color: var(--brown);
  font-family: var(--body);
}

.pp-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: none;
}

.pp {
  position: relative;
  overflow-x: clip;
}

.pp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pp > section {
  position: relative;
  z-index: 1;
}

.pp-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}

.pp h1,
.pp h2 {
  margin: 0;
  font-family: var(--title);
  font-weight: 800;
  letter-spacing: 0;
}

.pp h2 {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.12;
}

.pp p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}

.pp figure {
  margin: 0;
}

.pp-tag {
  display: inline-block;
  margin-bottom: 16px !important;
  padding: 3px 12px;
  background: var(--label);
  color: var(--brown);
  font-family: var(--title);
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  rotate: -1.5deg;
  box-shadow: 2px 3px 0 rgba(59, 42, 26, 0.85);
}

.pp-tag--ink {
  background: var(--brown);
  color: #fff;
  box-shadow: none;
}

.pp-sec {
  padding: var(--gap) 0;
}

.pp-sec.pp-end {
  padding-bottom: 0;
}

.pp-intro {
  max-width: 700px;
  margin-top: 14px !important;
}

.pp-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 3;
  width: 120px;
  height: 30px;
  margin-left: -60px;
  background: rgba(255, 240, 180, 0.72);
  box-shadow: 0 1px 3px rgba(59, 42, 26, 0.2);
  rotate: -2.5deg;
}

/* ---------- hero ---------- */
.pp-hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}

.pp-hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  flex: 1;
  align-items: center;
  gap: 32px;
  padding-top: 110px;
}

.pp-kick {
  margin-bottom: 18px !important;
  font-size: 16px !important;
  font-weight: 600;
}

.pp h1 img {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.pp-lead {
  max-width: 480px;
  margin-top: 8px !important;
  font-size: clamp(20px, 2vw, 24px) !important;
  font-weight: 500;
  line-height: 1.4 !important;
}

.pp-hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.pp-book {
  position: relative;
  width: min(100%, 400px, calc((100svh - 230px) / 1.545));
  rotate: 3deg;
}

.pp-book img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 26px 50px rgba(59, 42, 26, 0.35);
}

.pp-st {
  position: absolute;
  z-index: 2;
  height: auto;
  animation: pp-bob 4s ease-in-out infinite alternate;
}

.pp-st1 { top: 4%; left: 0; width: 25%; }
.pp-st2 { top: 40%; right: 0; width: 18%; animation-delay: -1s; }
.pp-st3 { bottom: 6%; left: 2%; width: 21%; animation-delay: -2s; }
.pp-st4 { bottom: 16%; right: -1%; width: 26%; animation-delay: -3s; }

@keyframes pp-bob {
  from { transform: translateY(-6px) rotate(-3deg); }
  to { transform: translateY(6px) rotate(3deg); }
}

.pre-motion .pp-hero-copy > *,
.pre-motion .pp-hero-art > * {
  opacity: 0;
}

.pp-facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 18px 36px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 24px;
}

.pp-facts dt {
  font-size: 14px;
  font-weight: 500;
  color: rgba(59, 42, 26, 0.75);
}

.pp-facts dd {
  margin: 0;
  font-family: var(--title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.pp-me {
  display: inline-block;
  padding: 0 7px;
  background: var(--label);
}

/* ---------- brief ---------- */
.pp-brief {
  padding-top: 20px;
}

.pp-brief-in {
  max-width: 900px;
}

.pp-note {
  position: relative;
  padding: 44px 48px 40px;
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(59, 42, 26, 0.18);
  rotate: -0.8deg;
}

.pp-note h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 50px);
}

.pp-note p + p {
  margin-top: 12px;
}

/* ---------- the build ---------- */
.pp-build {
  height: calc(100svh + 240vh);
}

.pp-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
  overflow: hidden;
}

.pp-build-in {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}

.pp-steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pp-s {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-top: 2px solid rgba(59, 42, 26, 0.16);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.pp-s.is-on {
  opacity: 1;
}

.pp-s span {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--brown);
  color: var(--sand);
  font-family: var(--title);
  font-weight: 800;
  rotate: -3deg;
}

.pp-s.is-on span {
  background: var(--label);
  color: var(--brown);
}

.pp-s b {
  display: block;
  font-family: var(--title);
  font-size: 21px;
  line-height: 1.2;
}

.pp-s small {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.pp-board {
  position: relative;
  height: min(90svh, 840px);
  aspect-ratio: 1650 / 2550;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 24px 54px rgba(59, 42, 26, 0.34);
}

.pp-board img {
  position: absolute;
  height: auto;
}

.pp-l-bg,
.pp-l-flat {
  inset: 0;
  width: 100%;
  height: 100% !important;
}

.pp-l,
.pp-l-flat {
  opacity: 0;
}

.pp-l {
  will-change: transform, opacity;
}

/* ---------- paper ---------- */
.pp-paper {
  background: #fffaf0;
}

.pp-sheets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: var(--inner) 0 0;
  padding: 0;
  list-style: none;
}

.pp-sheets li {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.pp-sheets li:nth-child(odd) { rotate: -1.4deg; }
.pp-sheets li:nth-child(even) { rotate: 1.2deg; }

.pp-sheets img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-sheets b {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 2px 10px;
  background: var(--label);
  font-family: var(--title);
  font-size: 18px;
}

/* ---------- two aymans ---------- */
.pp-two-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.pp-two-c {
  align-self: center;
  text-align: center;
}

.pp-two-c h2 {
  margin-bottom: 14px;
}

.pp-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.pp-panel--a {
  background: #7b5ea6;
  rotate: -1.2deg;
}

.pp-panel--b {
  background: #93cdaa;
  rotate: 1.2deg;
}

/* both figures stand exactly the same height */
.pp-panel img {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  height: 90%;
}

.pp-two figcaption {
  margin-top: 12px;
  font-family: var(--title);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* ---------- scenes ---------- */
.pp-scenes {
  background: var(--sand2);
}

.pp-sc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: var(--inner) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.pp-sc li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  transition: rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp-sc li:hover {
  rotate: -3deg;
}

.pp-sc img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 240px;
  object-fit: contain;
}

.pp-sc b {
  font-family: var(--title);
  font-size: 22px;
}

/* ---------- back ---------- */
.pp-back {
  background: var(--pink);
}

.pp-back-in {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  align-items: center;
  gap: 64px;
}

.pp-back img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 20px 44px rgba(90, 30, 60, 0.3);
  cursor: zoom-in;
}

.pp-pts {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pp-pts li {
  padding: 13px 0;
  border-top: 2px solid rgba(59, 42, 26, 0.16);
  font-size: 18px;
  line-height: 1.45;
}

.pp-pts b {
  display: block;
  font-family: var(--title);
  font-size: 21px;
  line-height: 1.25;
}

/* ---------- end ---------- */
.pp-end {
  padding-bottom: 0;
  background: var(--sand);
}

.pp-spread {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--inner);
  border-radius: 3px;
  box-shadow: 0 18px 44px rgba(59, 42, 26, 0.26);
  cursor: zoom-in;
}

.pp-m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.pp-m-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

.pp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pp-btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--brown);
  color: #fff;
  font-family: var(--title);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  rotate: -1deg;
  transition: rotate 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp-btn:hover {
  rotate: 1deg;
}

.pp-btn--ghost {
  background: none;
  box-shadow: inset 0 0 0 2px var(--brown);
  color: var(--brown);
}

/* the mound rises into the page; the footer sits on it and the class fills the very bottom edge, as on the cover */
.pp-crowd {
  height: 56px;
  margin-top: 18px;
  background: radial-gradient(ellipse 72% 118% at 50% 118%, var(--ground) 99%, #6a4a22 99.3%, #6a4a22 100%, var(--sand) 100.2%);
}

.pp-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: calc(max(100vw, 760px) * 0.1);
  background: url('/assets/images/posterpresentation/crowd.webp') center bottom / max(100%, 760px) auto no-repeat, var(--ground);
  color: var(--brown);
}

.pp-page .footer-links a {
  color: var(--brown);
}

.pp-page .footer-studio img {
  mix-blend-mode: multiply;
}

.pp-page .site-footer .copyright {
  margin-top: 10px;
  padding: 0;
  color: rgba(59, 42, 26, 0.75);
}

.pp-page .site-footer .footer-row {
  padding-top: 0;
  padding-bottom: 0;
}

.pp-page .footer-row {
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .pp-build-in {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .pp-b-copy {
    width: 100%;
    text-align: center;
  }

  .pp-b-copy h2,
  .pp-b-copy .pp-tag {
    display: none;
  }

  .pp-steps {
    position: relative;
    height: 74px;
    margin: 0;
  }

  .pp-s {
    position: absolute;
    inset: 0;
    justify-content: center;
    border: 0;
    text-align: left;
    opacity: 0;
  }

  .pp-s:not(.is-on) {
    pointer-events: none;
  }

  .pp-board {
    height: min(calc(100svh - 110px), calc((100vw - 32px) * 1.545));
  }

  .pp-sc {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .pp-wrap.pp-hero-in {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    padding-top: 96px;
    text-align: center;
  }

  .pp h1 img,
  .pp-lead {
    margin-inline: auto !important;
  }

  .pp-hero-art {
    width: min(100%, 560px);
  }

  .pp-book {
    width: min(58vw, 360px);
  }
}

@media (max-width: 760px) {
  .pp {
    --gap: 32px;
    --inner: 18px;
  }

  .pp-wrap {
    padding: 0 16px;
  }

  .pp p {
    font-size: 17px;
  }

  .pp-kick {
    margin-bottom: 10px !important;
    font-size: 14px !important;
  }

  .pp h1 img {
    width: 100%;
    margin: 0 auto;
  }

  .pp-lead {
    margin: 8px auto 0 !important;
    font-size: 19px !important;
  }

  .pp-facts {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    gap: 12px 14px;
  }

  .pp-facts dd {
    font-size: 17px;
  }

  .pp-note {
    padding: 30px 22px 26px;
  }

  .pp-build {
    height: calc(100svh + 190vh);
  }

  .pp-s b {
    font-size: 19px;
  }

  .pp-s small {
    font-size: 14px;
  }

  .pp-sheets {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pp-sheets li {
    height: 150px;
  }

  .pp-two-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .pp-panel {
    border-radius: 6px;
  }

  .pp-two-c {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: left;
  }

  .pp-two figcaption {
    font-size: 15px;
  }

  .pp-sc img {
    height: 148px;
  }

  .pp-sc b {
    font-size: 19px;
  }

  .pp-back-in {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .pp-m-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pp-m-grid img {
    height: auto;
  }

  .pp-crowd {
    height: 34px;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-st {
    animation: none;
  }

  .pp-build {
    height: auto;
    padding: 40px 0;
  }

  .pp-pin {
    position: static;
    height: auto;
  }

  .pp-l-flat {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1081px) {
  .pp-s {
    opacity: 1;
  }
}
