/* Monterey Bay AI | scrapbook layer for every page EXCEPT the home page (home uses scrapbook.css). */

.sb *,.dd *,.mg *,.hd *,.draw *{vector-effect:non-scaling-stroke;stroke-width:1.9px}
.draw path:not([stroke-dasharray]),.draw circle:not([stroke-dasharray]),.draw ellipse,.draw rect:not([stroke-dasharray]){stroke-dasharray:1 0;animation:mbdraw 2.4s ease-out both}
@keyframes mbdraw{from{stroke-dasharray:0 1;stroke-opacity:0}3%{stroke-opacity:1}to{stroke-dasharray:1 0;stroke-opacity:1}}
@keyframes mbin{from{opacity:0;clip-path:inset(-60% 100% -60% -40%)}to{opacity:1;clip-path:inset(-60% -60% -60% -40%)}}
@keyframes mbwig{0%,100%{transform:rotate(0)}30%{transform:rotate(-6deg)}70%{transform:rotate(6deg)}}
@keyframes mbbob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-10px) rotate(2deg)}}
@keyframes mbtide{to{transform:translateX(-120px)}}
@keyframes mbtw{0%,100%{opacity:.25;transform:scale(.6)}50%{opacity:1;transform:scale(1)}}
.hw{animation:mbin 1.2s ease-out .6s both}
@supports (animation-timeline: view()){.draw path:not([stroke-dasharray]),.draw circle:not([stroke-dasharray]),.draw ellipse,.draw rect:not([stroke-dasharray]){animation:mbdraw linear both;animation-timeline:view();animation-range:entry 5% cover 45%}.hw{animation:mbin linear both;animation-timeline:view();animation-range:entry 10% cover 40%}}
.tw{transform-box:fill-box;transform-origin:center;animation:mbtw 2.4s ease-in-out infinite}
.dd{display:block}.card .dd{height:70px;width:auto;margin:0 0 12px;transform-origin:left center}
a.card:hover .dd{animation:mbwig .6s ease}
.mg{position:absolute;left:calc(100% + 56px);top:-8px;width:220px;height:auto}
@media (max-width:1180px){.mg,.hd,.sb,.hw{display:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important}}

main,main>section,.wrap,.card,.site-footer{isolation:isolate}
.hw,.pol,.lbl,.stk,.sb,.torn,.mg,.hd{z-index:-1!important}
.tape{z-index:5!important}
@keyframes mbmq{to{transform:translateX(-50%)}}
.mqi{animation:mbmq 45s linear infinite}.mq:hover .mqi{animation-play-state:paused}
.chambers .dd,.chambers svg{display:inline-block}
.tori-wrap,.wrap:has(> .tori-photo){display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:72px;align-items:center}
.tori-strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;align-items:start;margin-top:56px}
.tori-signoff{grid-column:1/-1;text-align:center;margin-top:18px!important;rotate:-2deg}
@media (max-width:560px){.tori-strip>div{margin-top:6px!important}.tori-strip>div:nth-child(odd){rotate:-2deg!important}.tori-strip>div:nth-child(even){rotate:2deg!important}}
html,body{overflow-x:clip}
.js-draw .draw path,.js-draw .draw circle,.js-draw .draw ellipse,.js-draw .draw rect,.js-draw .draw line{animation:none}
.js-draw svg[style*="--sw"] *{vector-effect:none!important;stroke-width:var(--sw)!important}
.js-draw .hw.done{clip-path:none!important;opacity:1!important}
.js-draw .hw{animation:none!important;opacity:clamp(0,calc(var(--p,0) * 4),1);clip-path:inset(-60% calc((1 - var(--p,0)) * 160% - 60%) -60% -40%)}
.js-draw:not(.sb-on) .draw:not(.page-head .draw){visibility:hidden}
.js-draw .page-head .hw:not(.tornin),.js-draw .page-head .pop:not(.tornin),.js-draw .page-head .tape:not(.tornin){--p:1}
.js-draw .pop{animation:none!important;opacity:clamp(0,calc(var(--p,0) * 3),1);scale:calc(1.35 - .35 * var(--p,0));translate:0 calc((1 - var(--p,0)) * -24px)}
.js-draw .tape{animation:none!important;opacity:clamp(0,calc(var(--p,0) * 4),1);scale:var(--p,0) 1;transform-origin:left center}
.js-draw .tornin{animation:none!important;translate:calc((var(--p,0) - 1) * 100%) 0}
.js-draw .pop.done,.js-draw .tape.done{opacity:1;scale:none;translate:none}.js-draw .tornin.done{translate:none}
@media (max-width:1000px){.tori-wrap,.wrap:has(> .tori-photo){grid-template-columns:1fr}.tori-photo{width:280px;margin:32px auto 0}.tori-strip{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.tori-strip{grid-template-columns:1fr}}
@media (max-width:1180px){.hero .hd,.page-head .hd,.dark .hd{display:block!important;position:static!important;width:min(300px,78%)!important;height:auto!important;margin:28px auto 0}.page-head .hd{width:min(200px,55%)!important}.swim{width:64px!important}.swim svg{width:64px!important}}
@keyframes mbhi{from{opacity:0;clip-path:inset(-60% 100% -60% -40%)}to{opacity:1;clip-path:inset(-60% -60% -60% -40%)}}
@supports (animation-timeline: scroll()){.hw.hwhead{animation:mbhi linear both;animation-timeline:scroll(root);animation-range:0px 24px}}

.stk{filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(2px 4px 3px rgba(10,26,47,.18))}
@keyframes mbpop{from{opacity:0;scale:1.35;translate:0 -24px}}
@keyframes mbtape{from{opacity:0;scale:0 1}}
@keyframes mbtorn{from{translate:-100% 0}}
@keyframes mbpx{from{translate:0 50px}to{translate:0 -50px}}
@keyframes mbfly{from{translate:-30px 6px}to{translate:30px -6px}}
@keyframes mbrise{from{translate:0 60px;opacity:.2}}
@keyframes mbswim{to{left:calc(100% - 90px)}}
@keyframes mbbob2{0%,100%{translate:0 0;rotate:-4deg}50%{translate:0 -8px;rotate:4deg}}
.pop{animation:mbpop .8s cubic-bezier(.2,.9,.3,1.3) .3s both}.tape{animation:mbtape .5s ease-out .5s both;transform-origin:left}
.tide{animation:mbtide 4s linear infinite}.bob{animation:mbbob2 4s ease-in-out infinite}
.pol{transition:scale .3s,rotate .3s}
@supports (animation-timeline: view()){
.pop{animation:mbpop linear both;animation-timeline:view();animation-range:entry 0% cover 30%}
.tape{animation:mbtape linear both;animation-timeline:view();animation-range:entry 10% cover 30%}
.tornin{animation:mbtorn linear both;animation-timeline:view();animation-range:entry 0% cover 25%}
.stk,.glass{animation:mbpx linear both;animation-timeline:view()}
.fly{animation:mbfly linear both;animation-timeline:scroll(root)}
.rise{animation:mbrise linear both;animation-timeline:view();animation-range:entry 0% cover 50%}
.swim{animation:mbswim linear both;animation-timeline:scroll(root)}
.mg{animation:mbpx linear both;animation-timeline:view()}}
@media (max-width:1180px){.pol,.lbl,.glass,.stk,.torn{display:none}}
@media (prefers-reduced-motion:reduce){.mqi{animation:none}.mq{overflow-x:auto}}

h2 .mg{width:180px!important}
.stk,.glass,.mg,.rise{animation:none!important;translate:none!important}
.page-head .wrap.has-hero{position:relative}
.hero-sk{display:block;width:min(300px,78%);height:auto;margin:28px auto 0}
@media (min-width:1100px){.page-head .wrap.has-hero{padding-right:390px;min-height:290px}.hero-sk{position:absolute;right:20px;top:50%;translate:0 -50%;width:340px;max-height:300px;margin:0}.page-head .wrap.prose.has-hero{padding-right:20px;min-height:0}.wrap.prose .hero-sk{right:auto;left:calc(100% + 28px);width:min(300px, calc((100vw - 780px) / 2 - 24px))}}
.prog .swim{animation:none!important;width:120px!important;bottom:2px!important}.prog .swim svg{width:120px!important;height:auto}
@media (max-width:700px){.prog .swim{width:88px!important}.prog .swim svg{width:88px!important}}
@media (max-width:1399px){.hw:not(.hwhead),.pol,.lbl,.stk,.sb:not(.fly),.torn{display:none}}
