.scroll-depth{position:relative;margin-top:20svh;background:#fff;color:var(--blue);overflow:clip}
.depth-stop{position:absolute;left:0;right:0;display:flex;justify-content:center;align-items:center;min-height:120svh;padding:60px 110px 60px 28px}
.depth-stop>div{width:min(100%,660px)}
.depth-stop h2{font-family:var(--hand);font-size:clamp(42px,5.5vw,68px);font-weight:600;line-height:1.15;margin:0 0 20px;text-wrap:balance}
.depth-stop p{margin:0;font-size:20px;line-height:1.8}
.depth-ruler{position:fixed;right:max(6px,env(safe-area-inset-right));top:0;bottom:0;z-index:5;width:90px;pointer-events:none;color:var(--blue)}
.depth-reading{position:absolute;right:28px;top:50%;transform:translateY(-50%);font-variant-numeric:tabular-nums;font-size:14px;font-weight:600;white-space:nowrap}
.depth-ticks{position:absolute;top:0;bottom:0;right:0;width:20px;border-right:1px solid currentColor;background:repeating-linear-gradient(to bottom,currentColor 0 1px,transparent 1px 19px);opacity:.4}
.depth-doodle{display:block;width:100px;height:65px;margin:0 0 24px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;animation:depth-drift 4s ease-in-out infinite alternate}
@keyframes depth-drift{to{transform:translate(12px,-8px) rotate(-4deg)}}
@media(max-width:700px){.depth-stop{padding-left:26px;padding-right:112px}.depth-stop h2{font-size:42px}.depth-stop p{font-size:18px}}
@media(prefers-reduced-motion:reduce){.depth-doodle{animation:none}}
@media print{.scroll-depth{display:none}}

.depth-story-art{display:block;width:min(220px,100%);height:auto;margin:0 0 28px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;font-family:var(--hand)}
.depth-stamp{display:inline-block;margin-top:28px;padding:5px 18px;border:2px solid currentColor;font-family:var(--hand);font-size:28px;transform:rotate(-9deg)}
@media(prefers-reduced-motion:no-preference){
  .depth-carry{animation:depth-carry 7s ease-in-out infinite alternate}
  .depth-float{animation:depth-drift 4s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
}
@keyframes depth-carry{0%{transform:translateX(-16px)}25%{transform:translate(-6px,-3px)}50%{transform:translate(4px,0)}75%{transform:translate(14px,-3px)}100%{transform:translate(24px,0)}}

/* A single gallery is the reward at the one-kilometre mark. */
.depth-button-stop .secret-button{margin:0}
.depth-gallery{position:absolute;left:0;right:0;max-width:1050px;margin:auto;padding:70px 28px 90px;text-align:center}
.depth-gallery h2{font-family:var(--hand);font-size:clamp(42px,6vw,64px);line-height:1.1;margin:0 0 22px}
.depth-gallery>p{max-width:600px;margin:0 auto 18px}
.depth-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin:50px 0}
.depth-gallery-grid figure{margin:0;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.depth-gallery-grid img{display:block;width:100%;height:100%;object-fit:contain}
.depth-gallery-end{font-size:14px}
@media(max-width:700px){.depth-gallery{padding:60px 20px}.depth-gallery-grid{gap:14px;margin:36px 0}.depth-gallery-grid figure{aspect-ratio:3/4}}
