.pp-work {
  --work-ink: #1a272e;
  --work-muted: #4b565b;
  --work-rule: #cbc9c1;
  --work-accent: #105770;
  background: #faf8f3;
  color: var(--work-ink);
  padding-block: clamp(38px, 5vw, 66px);
}
.pp-projects__situations + .pp-work { margin-block-start: clamp(32px, 5vw, 64px); }
.pp-work [hidden] { display: none; }
.pp-work__intro { border-bottom: 1px solid var(--work-ink); padding-bottom: clamp(16px, 2vw, 25px); }
.pp-work__intro h2 { margin: 0; max-width: 32ch; scroll-margin-top: 110px; text-wrap: balance; }
.pp-work__intro p, .pp-work__copy p { color: var(--work-muted); font-size: 1.0625rem; line-height: 1.5; }
.pp-work__intro p { margin: 10px 0 0; max-width: 67ch; }
.pp-work__controls, .pp-work__stepper { display: flex; align-items: center; }
.pp-work__controls { justify-content: space-between; gap: 10px; padding-block: 6px; border-bottom: 1px solid var(--work-rule); }
.pp-work__controls, .pp-work__index > p { color: var(--work-muted); font-size: .875rem; font-weight: 700; }
.pp-work__stepper { gap: 4px; }
.pp-work__stepper button, .pp-work__choice {
  appearance: none;
  margin: 0;
  background: transparent;
  color: var(--work-ink);
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
  text-transform: none;
}
.pp-work__stepper button {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--work-rule);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
}
.pp-work__stepper button:hover { background: #ece9e1; color: var(--work-ink); }
.pp-work__count { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.pp-work button:focus-visible, .pp-work a:focus-visible { outline: 3px solid var(--work-accent); outline-offset: 3px; }
.pp-work__slides { display: grid; padding-block: clamp(16px, 2vw, 28px); gap: 24px; }
.pp-work__story {
  display: grid;
  grid-template-columns: minmax(0, min(38%, 42svh, 450px)) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "photo ." "photo title" "photo copy" "photo .";
  column-gap: clamp(22px, 5vw, 74px);
  min-width: 0;
  margin: 0;
}
.pp-work__story > figure { grid-area: photo; align-self: center; aspect-ratio: 1; }
.pp-work__story img { border-radius: 0; }
.pp-work__heading { grid-area: title; align-self: end; }
.pp-work__brand {
  display: block;
  margin: 0 0 6px;
  color: var(--work-accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .065em;
  line-height: 1.3;
  text-transform: uppercase;
}
.pp-work__heading h3 {
  max-width: 24ch;
  font: 500 clamp(1.6rem, 3vw, 2.75rem)/1.08 Georgia, serif;
  /* The site's global heading family is declared important. */
  font-family: Georgia, serif !important;
  letter-spacing: -.026em;
  text-wrap: pretty;
}
.pp-work__copy { grid-area: copy; }
.pp-work__copy p { max-width: 54ch; margin: 12px 0 4px; }
.pp-work__copy a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--work-accent); }
.pp-work.is-ready .pp-work__story { grid-area: 1 / 1; }
.pp-work.is-ready .pp-work__slides, .pp-work.is-ready .pp-work__index { touch-action: pan-y pinch-zoom; }
/* Inactive stories reserve space for the longest case at the current width. */
.pp-work__story[inert], .pp-work__choice[disabled] { visibility: hidden; pointer-events: none; }
.pp-work__story[inert] img, .pp-work__choice[disabled] img { display: none; }
.pp-work__index { border-top: 1px solid var(--work-ink); padding-top: 12px; }
.pp-work__index > p { margin: 0 0 10px; }
.pp-work__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 38px); }
.pp-work__choice {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: clamp(68px, 8vw, 102px) minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 18px);
  align-items: center;
  align-content: start;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  white-space: normal;
}
.pp-work__choice.is-second { grid-column: 2; }
.pp-work__thumb, .pp-work__thumb img { display: block; aspect-ratio: 1; width: 100%; height: auto; }
.pp-work__thumb img { object-fit: contain; background: #eeeae4; }
.pp-work__thumb img, .pp-work__story img { transform-origin: top left; }
.pp-work__choice .pp-work__brand { font-size: .72rem; margin-bottom: 4px; }
.pp-work__choice-title { display: block; max-width: 28ch; font: 500 clamp(1.05rem, 1.9vw, 1.5rem)/1.15 Georgia, serif; letter-spacing: -.015em; }
.pp-work__choice:hover, .pp-work__choice:focus { background: transparent; color: var(--work-ink); }
.pp-work__choice:hover .pp-work__choice-title { text-decoration: underline; text-underline-offset: .15em; }

@media (max-width: 600px) {
  .pp-work__story {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.12fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "photo title" "copy copy";
    column-gap: 13px;
  }
  .pp-work__intro p, .pp-work__copy p { font-size: .98rem; }
  .pp-work__heading { align-self: center; }
  .pp-work__heading h3 { font-size: clamp(1.23rem, 5.4vw, 1.8rem); }
  .pp-work__choice { grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .pp-work__thumb { width: clamp(74px, 24vw, 106px); }
}
