/* Layout restored from explore.css .building-* and painterly-cards.css.
   Scoped to the chapter study; current Floreyn illustrations are retained. */
.work-editorial {
  padding: 104px 0 108px;
  background: #fff;
}

.work-editorial > .story-wrap {
  width: calc(100% - 128px);
  max-width: 1240px;
}

.work-editorial .work-heading {
  margin-bottom: 68px;
}

.work-editorial .work-heading h2 {
  font-size: clamp(50px, 5.3vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -3.6px;
}

.work-editorial .work-heading h2 > span {
  color: #949994;
}

.work-editorial .work-heading > p {
  max-width: 650px;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.6;
  color: #6b716c;
}

.work-editorial .work-example {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 80px;
  min-height: 0;
  padding: 75px 0;
  scroll-margin-top: 45px;
}

.work-editorial .work-example:nth-child(even) {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
}

.work-editorial .work-example:nth-child(even) .work-explanation {
  grid-column: 2;
  grid-row: 1;
}

.work-editorial .work-example:nth-child(even) .work-art {
  grid-column: 1;
  grid-row: 1;
}

.work-editorial .work-explanation {
  padding: 8px 0;
}

.work-editorial .work-category {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #59635b;
}

.work-editorial .work-explanation h3 {
  max-width: 420px;
  margin: 23px 0 27px;
  font-size: clamp(34px, 3.35vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: #202620;
  text-wrap: balance;
}

.work-editorial .work-explanation > p {
  max-width: 420px;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: #69716a;
}

.work-editorial .work-art {
  min-width: 0;
  min-height: 560px;
  padding: 40px 32px;
  border-radius: 24px;
  background-image: url("/assets/card-b-land.0a28db6660.webp");
}

.work-editorial .work-example-pages .work-art {
  background-image: url("/assets/card-b-water.1eb5ef3f9c.webp");
}

.work-editorial .work-example-flows .work-art {
  background-image: url("/assets/card-b-sky.e22128d762.webp");
}

.work-editorial .work-example-team .work-art {
  background-image: url("/assets/card-b-mist.22687db9d6.webp");
}

.work-editorial .work-media {
  width: 100%;
  min-width: 0;
}

/* Once-only entrances. No looping, pinned scroll or changes to the page height. */
@media (prefers-reduced-motion: no-preference) {
  .work-editorial .work-reveal {
    transition:
      opacity 800ms ease,
      transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .work-editorial .work-reveal.work-pending {
    opacity: 0;
    transform: translateY(28px);
  }
  .work-editorial .work-art.work-reveal {
    transition-duration: 1000ms, 1200ms;
  }
  .work-editorial .work-art.work-pending {
    transform: translateY(36px) scale(0.985);
  }
}

@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .work-editorial .work-media {
    transform: translate3d(0, var(--work-depth, 0px), 0);
  }
  .work-editorial .work-in-view .work-media {
    will-change: transform;
  }
}

@media (max-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .work-editorial .work-reveal,
  .work-editorial .work-art.work-reveal {
    transition-duration: 550ms, 700ms;
  }
  .work-editorial .work-reveal.work-pending {
    transform: translateY(12px);
  }
}

@media print {
  .work-editorial .work-reveal.work-pending {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1150px) {
  .work-editorial .work-example {
    gap: 48px;
  }
  .work-editorial .work-art {
    padding: 30px 22px;
  }
}

@media (max-width: 1000px) {
  .work-editorial .work-heading {
    margin-bottom: 24px;
  }
  .work-editorial .work-heading h2 {
    font-size: 58px;
    letter-spacing: -2.7px;
  }
  .work-editorial .work-heading > p {
    font-size: 18px;
  }
  .work-editorial .work-example,
  .work-editorial .work-example:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 45px 0;
  }
  .work-editorial .work-example:nth-child(even) .work-explanation,
  .work-editorial .work-example:nth-child(even) .work-art {
    grid-column: auto;
    grid-row: auto;
  }
  .work-editorial .work-explanation h3 {
    max-width: 600px;
    font-size: 43px;
  }
  .work-editorial .work-art {
    min-height: 0;
    padding: 48px 40px;
  }
}

@media (max-width: 680px) {
  .work-editorial {
    padding: 64px 0 40px;
  }
  .work-editorial > .story-wrap {
    width: calc(100% - 44px);
  }
  .work-editorial .work-heading h2 {
    font-size: clamp(37px, 10.5vw, 46px);
    letter-spacing: -1.7px;
  }
  .work-editorial .work-heading > p {
    margin-top: 23px;
    font-size: 17px;
  }
  .work-editorial .work-example {
    padding: 33px 0 35px;
    gap: 25px;
  }
  .work-editorial .work-explanation {
    padding: 0;
  }
  .work-editorial .work-explanation h3 {
    font-size: 37px;
    letter-spacing: -1.4px;
    margin: 19px 0 23px;
  }
  .work-editorial .work-explanation > p {
    font-size: 16px;
  }
  .work-editorial .work-category {
    font-size: 12px;
  }
  .work-editorial .work-art {
    padding: 24px 14px;
    border-radius: 17px;
  }
}
