/* Mobile-only presentation. Desktop rules and artwork geometry remain intact. */
.mobile-gallery-controls{display:none}
@media(max-width:760px), (max-width:1024px) and (hover:none) and (pointer:coarse){
 :root{--type-body:15px;--type-label:18px;--type-item:15px;--type-title:28px;--masthead-height:48px;--rail-width:0px}
 body.cv08{zoom:1;--bottom-nav-height:76px;--section-title-height:40px;overflow-x:clip}
 .portrait-opening,.rb-cursor{zoom:1}
 .rb-cursor{display:none}
 html.rb-cursor-active,html.rb-cursor-active *{cursor:revert!important}
 body.cv08 main{width:100%;max-width:680px;margin-inline:auto;min-width:0}
 .cv-masthead{padding-inline:8px}
 .cv-masthead img{height:31px}
 body.cv08 .intro{width:100%;max-width:none;margin:0;padding:14px 0 0}
 body.cv08 .cv-body-panel{--shoulder:32px;margin-inline:10px}
 body.cv08 .cv-body-panel .cv-career{padding:44px 12px 20px}
 body.cv08 .cv-body-panel .collection{padding:28px 12px 32px;scroll-margin-top:60px}
 body.cv08 .career-grid{grid-template-columns:1fr;gap:14px;max-width:464px;margin-inline:auto}
 body.cv08 .cv-career-card>img:not(.career-label){filter:none}
 body.cv08 .career-heading img{max-width:82%;height:auto;max-height:40px}
 body.cv08 .collection-heading{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;gap:12px;margin-bottom:16px;padding:0;min-height:0}
 body.cv08 .collection-heading::before,body.cv08 .collection-heading::after{display:none}
 body.cv08 .collection-heading h2{grid-column:1;grid-row:1;justify-self:center}
 body.cv08 .collection-heading .view-switch{position:static;transform:none;grid-column:1;grid-row:2;justify-self:center}
 body.cv08 .view-switch .view-toggle{width:112px!important;height:48px!important;touch-action:manipulation;border-width:2px}
 body.cv08 .view-switch .toggle-knob{width:36px;height:36px;top:4px;left:4px}
 body.cv08 .view-switch .toggle-knob svg{display:block;width:20px;height:20px}
 body.cv08 .view-switch .toggle-label{font-size:16px!important}
 body.cv08 .rail{height:calc(76px + env(safe-area-inset-bottom));padding:4px 4px calc(4px + env(safe-area-inset-bottom));border-width:0;border-image:none;border-top:2px solid #d6f75c}
 body.cv08 .rail nav{height:66px;width:100%}
 body.cv08 .rail nav a{font-size:14px!important;gap:4px;min-height:44px;flex-direction:column;padding:0}
 body.cv08 .rail nav a .dock-icon-tile,body.cv08 .rail nav a.active .dock-icon-tile{width:26px;height:26px;flex-basis:26px}
 body.cv08 .rail nav a svg{width:26px;height:26px}
 body.cv08 #work-projects.gallery{height:auto;min-height:0;padding:8px 8px 26px;border-radius:14px}
 body.cv08 #work-projects.gallery .project-track{height:350px;display:flex;gap:12px;padding:8px;margin:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:8px;perspective:none;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a9bf64 #242626}
 body.cv08 #work-projects.gallery .project,body.cv08 #work-projects.gallery .project.is-active{flex:0 0 88%;width:88%;min-width:0;max-width:none;transform:none;transition:none;scroll-snap-align:center;scroll-snap-stop:always}
 body.cv08 #work-projects.gallery .ag-media img{left:0;width:100%;height:100%;transform:none;filter:none}
 body.cv08 #work-projects.gallery .ag-caption{left:16px;right:12px;bottom:24px;opacity:1;transform:none}
 body.cv08 #work-projects.gallery .ag-caption strong{white-space:normal;overflow-wrap:anywhere;font-size:28px!important}
 body.cv08 #work-projects.gallery .ag-caption small{white-space:normal;font-size:14px!important}
 body.cv08 #work-projects.gallery :is(.ag-tab-label,.ag-kicker,.work-screen-hint){display:none}
 body.cv08 #work-projects.gallery::after{bottom:10px;height:5px}
 body.cv08 #personal-projects.gallery{padding:0;gap:0;min-width:0}
 body.cv08 #personal-projects.gallery .cartridge-stage{height:auto;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:12px;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain}
 body.cv08 #personal-projects.gallery .project-track{position:relative;inset:auto;display:flex;align-items:center;gap:8px;width:max-content;height:auto;margin:0;padding:0 12px;touch-action:pan-x pan-y pinch-zoom}
 body.cv08 #personal-projects.gallery .project{position:relative;inset:auto;flex:0 0 auto;width:min(72vw,300px);max-width:none;margin:0;pointer-events:auto;scroll-snap-align:center;scroll-snap-stop:always;filter:drop-shadow(2px 6px 4px #0009)}
 body.cv08 #personal-projects.gallery .cartridge-space{width:100%;height:auto;aspect-ratio:5/7;transform:none}
 body.cv08 #personal-projects.gallery .cartridge-baked{display:block;width:100%;height:auto;pointer-events:none}
 body.cv08 .cartridge-browser{padding:8px 4px 0;margin:0}
 body.cv08 .cartridge-summary{margin:0}
 body.cv08 .cartridge-summary h3,body.cv08 .cartridge-summary-open{height:82px}
 body.cv08 .cartridge-project-logo{max-height:82px;max-width:85%}
 body.cv08 .cartridge-description{min-height:5.1em;line-height:1.7;font-size:15px!important}
 body.cv08 .mobile-gallery-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0;color:#bbc2b8}
 body.cv08 .mobile-gallery-controls button{width:44px;height:44px;padding:10px;touch-action:manipulation;color:#d6f75c}
 body.cv08 .mobile-gallery-controls button:disabled{opacity:.3}
 body.cv08 .mobile-gallery-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
 body.cv08 .mobile-gallery-controls span{font-size:13px!important;text-align:center;min-width:156px}
 body.cv08 #work-projects.list .mobile-gallery-controls{display:none}
 body.cv08 .projects.list .project{grid-template-columns:64px minmax(0,1fr) 20px;gap:12px;padding-block:20px}
 body.cv08 .projects.list .case-space{width:64px}
 body.cv08 .projects.list .project-elements{font-size:13px!important}
 body.cv08 .projects.list .project-description{font-size:15px!important}
 body.cv08 .reader{inset:0;z-index:100}
 body.cv08 .reader-toolbar{padding:calc(6px + env(safe-area-inset-top)) 8px 6px;min-height:56px}
 body.cv08 .reader-toolbar button,body.cv08 .reader-toolbar a{min-width:44px;height:44px;touch-action:manipulation}
 body.cv08 .reader-scroll{padding:calc(64px + env(safe-area-inset-top)) 8px calc(24px + env(safe-area-inset-bottom));touch-action:pan-x pan-y pinch-zoom;scrollbar-gutter:auto}
 body.cv08 .reader-scroll:not(.zoomed) .reader-sheet{width:100%;max-width:100%;min-width:0}
 body.cv08 .reader-scroll.zoomed{padding-inline:8px}
 body.cv08 .load-error{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;padding:24px 12px}
 body.cv08 .ending{padding-block:32px 54px}
 body.cv08 .ending-caption{font-size:12px!important;letter-spacing:.16em}
 body.cv08 .font-credit{font-size:12px!important;padding:18px 10px 26px}
 body.cv08 .toast{bottom:calc(88px + env(safe-area-inset-bottom));white-space:normal}
 @media(orientation:landscape){body.cv08 #work-projects.gallery .project-track{height:280px}body.cv08 #personal-projects.gallery .project{width:230px}}
}
