/* Readability and navigation. */
.manifesto-copy{max-width:390px;font-size:17px;line-height:1.8}
.manifesto-copy p+p{font-size:19px;line-height:1.8}
.collage-photo figcaption{font-size:11px;font-weight:600;letter-spacing:.035em;padding:12px 0 14px}
.photo-rail figcaption,.book-main figcaption,.book-side figcaption{font-size:11px;letter-spacing:.035em;line-height:1.5}
.collection-caption{display:flex;flex-direction:column;gap:4px}
.collection-caption small{font-size:12px;letter-spacing:.04em;color:var(--muted)}
.collection-link:hover .collection-caption small{color:var(--ink)}

/* Speeds are defined in config.js. */
.hero-track{animation-duration:var(--hero-travel-seconds,10s)}
.hero-person img{animation-duration:var(--hero-cycle-seconds,3s)}
.hero-person img:nth-child(2){animation-delay:var(--hero-delay-one,1s)}
.hero-person img:nth-child(3){animation-delay:var(--hero-delay-two,2s)}
.ticker>div{animation-duration:var(--ticker-seconds,40s)}
.hero-still .hero-track,.hero-still .hero-person img,.ticker-still .ticker>div{animation:none!important}
.hero-still .hero-person img{opacity:0}.hero-still .hero-person img:first-child{opacity:1}
.concept-tools button:disabled{cursor:default;opacity:.55}

/* The photo strip is touch scrollable and loops at a configurable gentle pace. */
.photo-rail{display:block;scroll-snap-type:none;position:relative}
.rail-track{display:flex;gap:22px;width:max-content;position:relative}
.rail-track figure{flex:0 0 auto;width:clamp(260px,27vw,390px);scroll-snap-align:none}
.rail-track figure:nth-child(even){padding-top:65px}

/* Transparent cutouts. Each wrapper moves, its inner image keeps its own angle. */
.contour-scene{position:relative;height:clamp(1120px,110vw,1750px);padding:50px 4.2%;overflow:hidden;isolation:isolate}
.contour-scene h2{font-size:clamp(75px,10.2vw,155px);line-height:1.03;position:absolute;left:4.2%;top:13%;z-index:1;letter-spacing:-.045em}
.contour-scene .section-meta>span:last-child{display:none}
.scene-year{position:absolute;left:-3%;bottom:4%;font-family:var(--display);font-size:38vw;font-weight:600;letter-spacing:-.08em;line-height:.82;color:#18181808;z-index:0}
.contour-layer{position:absolute;z-index:3;will-change:transform;pointer-events:none}
.contour-layer img{height:auto;object-fit:contain;filter:drop-shadow(5px 13px 9px #27211722)}
.contour-layer{isolation:isolate}
.source-mask-guitar .contour-guitar{--source-mask:var(--mask-guitar,url('media/05-contour/guitar-mask.svg'));--source-angle:-8deg}
.source-mask-stool .contour-stool{--source-mask:var(--mask-stool,url('media/05-contour/stool-mask.svg'));--source-angle:7deg}
.source-mask-upside .contour-upside{--source-mask:var(--mask-upside,url('media/05-contour/upside-mask.svg'));--source-angle:var(--sideways-angle,90deg)}
.source-mask-guitar .contour-guitar img,.source-mask-stool .contour-stool img,.source-mask-upside .contour-upside img{mask-image:var(--source-mask);mask-size:100% 100%;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:var(--source-mask);-webkit-mask-size:100% 100%;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat}
.source-mask-guitar .contour-guitar::before,.source-mask-stool .contour-stool::before,.source-mask-upside .contour-upside::before{content:'';position:absolute;inset:0;background:#fffef8;z-index:-1;mask-image:var(--source-mask);mask-size:100% 100%;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:var(--source-mask);-webkit-mask-size:100% 100%;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;transform:rotate(var(--source-angle)) scale(1.035);filter:drop-shadow(5px 13px 9px #27211722)}
.contour-guitar{width:55%;left:-5%;top:7%;z-index:3}
.contour-guitar img{transform:rotate(-8deg)}
.contour-stool{width:52%;left:27%;top:15%;z-index:4}
.contour-stool img{transform:rotate(7deg)}
.contour-upside{width:calc(45% * var(--sideways-scale,1.45));left:76%;top:-2%;z-index:2}
.contour-upside img{transform:rotate(var(--sideways-angle,90deg))}
.paper-label{position:absolute;display:block;font-family:var(--display);font-weight:600;font-size:clamp(23px,2.6vw,39px);line-height:1.13;letter-spacing:-.02em;background:#fffef8;color:var(--ink);padding:16px 22px;box-shadow:2px 5px 0 #1818180d;clip-path:polygon(0 5%,98% 0,100% 95%,2% 100%);z-index:6;will-change:transform}
.label-last-year{left:5%;top:5%}.label-last-year:before{content:'';position:absolute;left:15px;right:15px;bottom:7px;height:3px;background:var(--red);transform:rotate(-1deg)}
.label-real{left:38%;top:36%;font-size:clamp(22px,2.2vw,34px)}
.label-class{left:7%;bottom:8%;font-size:clamp(28px,3vw,44px)}
.scene-arrow{position:absolute;z-index:6;color:var(--red);font-family:'Segoe Print','Comic Sans MS',cursive;font-size:clamp(65px,7vw,110px);line-height:1;pointer-events:none}
.arrow-one{left:32%;top:43%;transform:rotate(-15deg)}.arrow-two{right:5%;top:46%;transform:rotate(12deg)}
.scene-scribble{position:absolute;left:62%;top:27%;font-size:70px;color:var(--red);line-height:1;transform:rotate(12deg);z-index:1}
.scene-bottom{position:absolute;bottom:6%;right:5%;font-size:17px;line-height:1.8;max-width:320px;z-index:7}
.scene-bottom strong{font-weight:700}
.contour-note{position:absolute;bottom:0;left:4.2%;right:4.2%;z-index:15}
.show-notes .contour-scene{padding-bottom:120px}

@media(max-width:1000px){.manifesto-copy{font-size:15px}.manifesto-copy p+p{font-size:17px}.collage-photo figcaption{font-size:10px;line-height:1.45}.rail-track{gap:20px}.rail-track figure{width:34vw;min-width:230px}.contour-scene{height:1190px}.contour-scene h2{top:16%;font-size:10.5vw}.contour-guitar{top:17%;width:62%;left:-8%}.contour-stool{top:29%;width:60%;left:28%}.contour-upside{top:-11%;width:49%;left:76%}.label-last-year{top:8%}.label-real{top:43%;left:39%}.label-class{bottom:10%}.scene-bottom{font-size:14px;max-width:240px;bottom:4%}.arrow-one{top:47%;left:32%}.scene-scribble{top:31%;font-size:60px}.collection-caption small{font-size:11px}}
@media(max-width:599px){.manifesto-copy{font-size:15px;max-width:300px}.manifesto-copy p+p{font-size:16px;line-height:1.8}.collage-photo figcaption{font-size:10px;padding:10px 0 11px;letter-spacing:0}.photo-rail figcaption,.book-main figcaption,.book-side figcaption{font-size:10px}.section-meta{font-size:9px;line-height:1.6}.section-meta>span:last-child{max-width:42%}.hero-topline{font-size:8px}.rail-track{gap:14px}.rail-track figure{width:72vw;min-width:0}.rail-track figure:nth-child(even){padding-top:38px}.collection-caption small{font-size:11px}.contour-scene{height:1370px;padding:35px 20px}.contour-scene .section-meta{font-size:8px}.contour-scene h2{font-size:13vw;top:11%;left:20px;right:20px;z-index:2;line-height:1.12}.scene-year{font-size:65vw;left:-8%;bottom:14%;color:#18181809}.contour-guitar{width:100%;left:-12%;top:18%}.contour-stool{width:100%;left:15%;top:53%;z-index:4}.contour-upside{width:74%;left:60%;top:-10%;z-index:3}.contour-guitar img{transform:rotate(-7deg)}.contour-stool img{transform:rotate(8deg)}.paper-label{font-size:23px;padding:13px 17px}.label-last-year{left:5%;top:22%}.label-real{left:41%;top:48%;font-size:20px}.label-class{left:3%;bottom:18%;font-size:25px}.scene-arrow{font-size:73px}.arrow-one{left:57%;top:34%;transform:rotate(23deg)}.arrow-two{right:2%;top:57%;transform:rotate(-8deg)}.scene-scribble{left:13%;top:71%;font-size:50px}.scene-bottom{left:20px;right:auto;bottom:4%;font-size:14px}.contour-note{left:15px;right:15px;bottom:5px}.show-notes .contour-scene{height:1510px}.show-notes .scene-bottom{bottom:14%}.show-notes .label-class{bottom:25%}.text-link{font-size:10px}}
@media(prefers-reduced-motion:reduce){.contour-layer{transform:none!important}.rail-track{scroll-behavior:auto}}
@media(max-width:599px){.source-mask-guitar .contour-guitar{--source-angle:-7deg}.source-mask-stool .contour-stool{--source-angle:8deg}}
/* Larger sideways figure; the multiplier and angle come from config.js. */
@media(max-width:1000px){.contour-upside{width:calc(49% * var(--sideways-scale,1.45));left:76%;top:0}}
@media(max-width:599px){.contour-upside{width:calc(74% * var(--sideways-scale,1.45));left:72%;top:-18%;z-index:2}.contour-stool{top:48%}.scene-bottom{bottom:3%}}

/* Keep the small caption readable while the real cutout passes behind it. */
#our-rules .scene-bottom{
  padding:11px 15px;
  background:#fffef8;
  box-shadow:3px 6px 0 #1818180d,0 8px 20px #18181808;
}

/* Large phones keep full-sized figures, with enough room for the final chair. */
@media(min-width:440px) and (max-width:599px){
  #our-rules{height:clamp(1370px,calc(500px + 184vw),1620px)}
  #our-rules .contour-stool{top:44%}
  #our-rules .arrow-two{top:49%}
}

/* Preserve the same stagger for each photo in all seamless rail copies. */
.rail-track figure[data-rail-item="flat"]{padding-top:0}
.rail-track figure[data-rail-item="raised"]{padding-top:65px}
@media(max-width:599px){.rail-track figure[data-rail-item="raised"]{padding-top:38px}}
