.tools-page{
 --archive-ground:#f4f6ee;--inactive:#75786e;display:flex;flex-direction:column;height:100vh;height:100dvh;
 min-height:520px;background:var(--archive-ground);transition:background-color .48s ease;
}
.tools-page[data-current="001"]{--archive-ground:#e8ebec;--inactive:#72787b}
.tools-page[data-current="003"]{--archive-ground:#eeeff7}
.tools-page[data-current="004"]{--archive-ground:#eaf3f8}
.tools-page[data-current="005"]{--archive-ground:#f7f2e9}
:root[data-theme="dark"] .tools-page{--archive-ground:#192119;--inactive:#91988b}
:root[data-theme="dark"] .tools-page[data-current="001"]{--archive-ground:#202227;--inactive:#93959b}
:root[data-theme="dark"] .tools-page[data-current="003"]{--archive-ground:#191b29}
:root[data-theme="dark"] .tools-page[data-current="004"]{--archive-ground:#141e28}
:root[data-theme="dark"] .tools-page[data-current="005"]{--archive-ground:#24201c}
.tool-archive{display:flex;flex:1;min-height:0;flex-direction:column;margin:clamp(64px,8vh,104px) var(--right) var(--gutter) var(--left)}
.tool-records:not(.visually-hidden){margin:auto 0;padding:0;list-style:none}
.tool-records li{margin:2rem 0}
.tool-records a{font:400 clamp(40px,6vw,100px)/1 var(--portfolio-heading);color:inherit;text-transform:uppercase}
.tool-records p{max-width:54ch}
.archive-browser{flex:1;min-height:0;display:flex;flex-direction:column}
.tools-page [hidden]{display:none!important}
.archive-field{position:relative;flex:1;min-height:0;isolation:isolate;overflow:hidden}
.tool-reel{
 --step:clamp(76px,14vh,170px);position:absolute;inset:0 auto 0 0;width:66%;overflow:hidden;
 touch-action:none;mask-image:linear-gradient(transparent,black 22%,black 78%,transparent);
}
.tool-row{
 position:absolute;left:0;top:50%;width:100%;height:var(--step);display:flex;align-items:center;gap:clamp(10px,1.6vw,28px);
 white-space:nowrap;will-change:transform;cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.tool-row strong{font:400 clamp(60px,min(9.5vw,14vh),176px)/.88 var(--portfolio-heading);letter-spacing:-.014em;text-transform:uppercase}
.tool-num{align-self:center;font-size:clamp(11px,.9vw,15px);letter-spacing:.06em}
.tool-proof{
 --drag-x:0px;--drag-y:0px;position:absolute;right:clamp(4px,2vw,50px);top:50%;
 width:min(31vw,45vh,600px);margin:0;transform:translate(var(--drag-x),calc(-50% + var(--drag-y)));z-index:1;
}
.proof-image{position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden;background:var(--ground);touch-action:none;cursor:grab;-webkit-tap-highlight-color:transparent}
.proof-image:active{cursor:grabbing}
.proof-image img{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .24s ease;pointer-events:none;object-fit:cover}
.proof-image img.shown{opacity:1}
.tool-proof figcaption{font-size:clamp(10px,.78vw,14px);margin-top:.75em;letter-spacing:.05em;text-transform:uppercase;line-height:1.35}
.tick[aria-pressed="false"] .sound-on,.tick[aria-pressed="true"] .sound-off{display:none}
.proof-image:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media(max-width:720px),(max-width:950px) and (max-height:500px){
 .tools-page{height:100dvh;min-height:0}
 .tool-archive{margin-top:clamp(12px,4svh,42px);margin-bottom:max(var(--gutter),env(safe-area-inset-bottom))}
 .archive-field{display:flex;flex-direction:column;align-items:center}
 .tool-reel{--step:clamp(48px,7.7svh,81px);position:relative;inset:auto;width:100%;height:42%;flex:none}
 .tool-row{gap:1rem}.tool-row strong{font-size:clamp(46px,12.75vw,76px)}
 .tool-proof{position:absolute;bottom:12px;top:auto;right:5%;width:min(63vw,34svh);transform:translate(var(--drag-x),var(--drag-y))}
}
@media(max-height:500px) and (min-width:640px){
 .tool-archive{margin-top:14px}
 .archive-field{display:block}.tool-reel{height:100%;width:63%;--step:55px}
 .tool-proof{width:min(29vw,45vh);top:50%;bottom:auto;transform:translate(var(--drag-x),calc(-50% + var(--drag-y)))}
}
@media(prefers-reduced-motion:reduce){.tools-page,.proof-image img{transition:none}}

/* The sticky artwork stays in place while the phone scrolls one snap point per project. */
.archive-browser.native-scroll{
 display:block;position:relative;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;
 scroll-snap-type:y mandatory;scrollbar-width:none;overflow-anchor:none;touch-action:pan-y pinch-zoom;
}
.native-scroll::-webkit-scrollbar{display:none}
.native-scroll .archive-field{position:sticky;top:0;height:100%;overflow:clip}
.native-scroll :is(.tool-reel,.proof-image){touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;cursor:pointer}
.snap-track{pointer-events:none}
.snap-track>div{height:var(--row-step);scroll-snap-align:end}
.tools-page[data-current="006"]{--archive-ground:#f0f2eb}
:root[data-theme="dark"] .tools-page[data-current="006"]{--archive-ground:#1b201a}
.tools-page[data-current="007"]{--archive-ground:#edf3f6}
:root[data-theme="dark"] .tools-page[data-current="007"]{--archive-ground:#17191c}

.tools-page[data-current="008"]{--archive-ground:#eeedf3}
:root[data-theme="dark"] .tools-page[data-current="008"]{--archive-ground:#17171c}

.tools-page[data-current="009"]{--archive-ground:#ebedea}
:root[data-theme="dark"] .tools-page[data-current="009"]{--archive-ground:#1e201f}
