/* Family silhouettes and folded stationery, using the supplied transparent art. */
.creations, .story, .process, .contact { position: relative; isolation: isolate; }
.creations > .container, .story > .container, .process > .container, .contact > .container { position: relative; z-index: 1; }
.section-art { position: absolute; z-index: 0; inset: 0; overflow: hidden; overflow: clip; pointer-events: none; }
.paper-boy {
  display: block;
  position: absolute;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.paper-boy--jump { aspect-ratio: 461 / 830; mask-image: url('../img/boy01.png'); -webkit-mask-image: url('../img/boy01.png'); }
.paper-boy--open { aspect-ratio: 700 / 822; mask-image: url('../img/boy02.png'); -webkit-mask-image: url('../img/boy02.png'); }
.collection-heading { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.collection-heading > .collection-seal, .collection-heading > .collection-intro { position: relative; z-index: 1; }
.collection-heading > .paper-boy { z-index: 0; width: 145px; bottom: 28px; right: 24px; color: var(--brand-blue); opacity: .085; transform: rotate(5deg); }
.process .paper-boy { width: clamp(280px, 27vw, 420px); top: 55px; right: -54px; color: var(--brand-orange); opacity: .12; transform: rotate(-12deg); }
.contact .paper-boy { width: 185px; bottom: -48px; left: -32px; color: var(--brand-orange); opacity: .16; transform: rotate(12deg); }

/* Full-width threads drift through the negative space behind the content. */
.hero-wrap { position: relative; isolation: isolate; }
.hero-wrap > .hero { z-index: 1; }
.section-thread { position: absolute; left: 0; width: 100%; height: 240px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; overflow: hidden; }
.section-thread path { vector-effect: non-scaling-stroke; }
.thread--hero { bottom: 46px; color: var(--brand-orange); opacity: .36; }
.thread--creations { top: -35px; color: var(--brand-orange); opacity: .38; }
.thread--story { bottom: -24px; color: #addf86; opacity: .42; }
.thread--process { top: -5px; height: 280px; color: var(--brand-blue); opacity: .21; }
.thread--contact { bottom: -10px; color: var(--orange-ink); opacity: .26; }

/* Only the paper corners fold; faces and photographed creations stay intact. */
[data-photo-fold] { perspective: 850px; }
.photo-fold-flap {
  --fold-rest: rotate3d(1, 1, 0, -12deg);
  --fold-from: rotate3d(1, 1, 0, -150deg);
  position: absolute;
  display: block;
  z-index: 4;
  width: clamp(24px, 3.5vw, 46px);
  aspect-ratio: 1;
  background: var(--fold-paper, var(--creation-paper, #ffe2b2));
  transform: var(--fold-rest);
  pointer-events: none;
}
.photo-fold-flap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(255 255 255 / 76%), transparent 55%, rgb(8 27 54 / 13%)); }
.photo-fold-flap--top { top: -1px; right: -1px; clip-path: polygon(0 0, 100% 0, 100% 100%); transform-origin: 100% 0; }
.photo-fold-flap--bottom {
  --fold-from: rotate3d(1, 1, 0, 145deg);
  --fold-rest: rotate3d(1, 1, 0, 10deg);
  bottom: -1px;
  left: -1px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transform-origin: 0 100%;
  width: clamp(17px, 2.5vw, 34px);
}
.hero-family { --fold-paper: #d1deff; }
.hero-family .photo-fold-flap, .story-photo .photo-fold-flap { width: 25px; }
.hero-family .photo-fold-flap--bottom, .story-photo .photo-fold-flap--bottom { width: 19px; }
.story-photo { --fold-paper: #ffe2b2; }
.creation-photo { --fold-paper: var(--creation-paper); }
[data-paper-text] { transform-origin: 0 85%; }

@media (max-width: 1200px) {
  .collection-heading > .paper-boy { width: 110px; right: 12px; bottom: 20px; opacity: .065; }
  .process .paper-boy { width: 310px; right: -73px; }
}
@media (max-width: 900px) {

  .process .paper-boy { top: 98px; width: 250px; right: -35px; opacity: .1; }
}
@media (max-width: 600px) {
  .section-thread { height: 170px; stroke-width: 1.15; }
  .thread--hero { bottom: 25px; height: 210px; opacity: .3; }
  .thread--creations { top: -30px; opacity: .32; }
  .thread--story { bottom: -38px; }
  .thread--process { top: 18px; height: 220px; opacity: .16; }
  .thread--contact { bottom: -10px; height: 210px; }
  .collection-heading > .paper-boy { width: 90px; right: 14px; bottom: 18px; opacity: .07; }
  .process .paper-boy { width: 230px; top: 24px; right: -32px; opacity: .085; }
  .contact .paper-boy { width: 145px; bottom: 4px; left: -35px; opacity: .12; }
  .hero-bottom { min-width: 0; }
  .hero-bottom .scroll-cue { min-width: 0; }
  .hero-bottom .scroll-track { flex-shrink: 0; }
  .hero-family .photo-fold-flap { width: 18px; }
  .hero-family .photo-fold-flap--bottom { width: 14px; }
}
html[data-motion='reduced'] .photo-fold-flap { transform: none; }
@media (prefers-reduced-motion: reduce) { .photo-fold-flap { transform: none; } }
@media print { .section-art, .photo-fold-flap { display: none; } }
