/* Stage 2 motion upgrades. Each block only applies when its switch is on (class on <html>). */

/* Spring-settled section reveals: a soft, physical settle instead of a plain ease. Opacity keeps its ease. */
html.sm-spring [data-reveal]{ transition:opacity .9s cubic-bezier(.16,1,.3,1), transform 1.1s linear(0.0, 0.0216, 0.0767, 0.1535, 0.2426, 0.3366, 0.4304, 0.5202, 0.6034, 0.6787, 0.7452, 0.8028, 0.8517, 0.8924, 0.9257, 0.9524, 0.9732, 0.9891, 1.0008, 1.0091, 1.0146, 1.0179, 1.0196, 1.0199, 1.0193, 1.0182, 1.0166, 1.0148, 1.0129, 1.011, 1.0093, 1.0076, 1.0062, 1.0049, 1.0038, 1.0028, 1.002, 1.0014, 1.0009, 1.0005, 1.0002, 1.0, 0.9998, 0.9997, 1); }
html.sm-spring .vn[data-reveal]{ transition:opacity .8s cubic-bezier(.16,1,.3,1), transform 1.1s linear(0.0, 0.0216, 0.0767, 0.1535, 0.2426, 0.3366, 0.4304, 0.5202, 0.6034, 0.6787, 0.7452, 0.8028, 0.8517, 0.8924, 0.9257, 0.9524, 0.9732, 0.9891, 1.0008, 1.0091, 1.0146, 1.0179, 1.0196, 1.0199, 1.0193, 1.0182, 1.0166, 1.0148, 1.0129, 1.011, 1.0093, 1.0076, 1.0062, 1.0049, 1.0038, 1.0028, 1.002, 1.0014, 1.0009, 1.0005, 1.0002, 1.0, 0.9998, 0.9997, 1); }

/* Lenis smooth scrolling (from lenis/dist/lenis.css) */
html.lenis, html.lenis body{ height:auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped{ overflow:clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch]{ overscroll-behavior:contain; }
.lenis.lenis-smooth iframe{ pointer-events:none; }
.lenis.lenis-autoToggle{ transition-property:overflow; transition-duration:1ms; transition-behavior:allow-discrete; }
html.lenis.lenis-smooth{ scroll-behavior:auto !important; }

/* Desktop nav: a touch larger logo and links */
@media (min-width:761px){
  nav.links{ font-size:13.5px; }
  .brand .logo{ width:33px; height:33px; }
}

/* Torn-paper banner: span the full window width, not just the content column */
#work .m-tear{ left:calc(50% - 50vw); right:calc(50% - 50vw); }
