.lab-footer, .lab-gallery, .gallery-zoom { --footer-ink: #292929; --footer-muted: #979797; --footer-line: #e5e5e5; --footer-bg: #faf9f6; color: var(--footer-ink); background: var(--footer-bg); font: 400 18px/1.4 Helvetica, Arial, sans-serif; letter-spacing: -.015em; }
.dark-mode :is(.lab-footer, .lab-gallery, .gallery-zoom) { --footer-ink: #e9e9e9; --footer-muted: #929292; --footer-line: #333; --footer-bg: #141414; }
.lab-footer { min-height: 100svh; padding: 96px 24px; display: grid; align-items: center; }
.footer-bio { width: min(100%, 460px); margin: auto; }
.footer-portrait { width: 40px; height: 40px; object-fit: cover; object-position: 50% 30%; margin-bottom: 26px; }
.lab-footer p, .lab-gallery p { font: inherit; color: inherit; text-transform: none; letter-spacing: inherit; margin: 0 0 24px; }
.footer-intro span, .footer-hello p > span { color: var(--footer-muted); }
.bio-link, .lab-footer a { color: inherit; font: inherit; letter-spacing: inherit; text-decoration: none; }
.bio-link { padding: 0; background: none; border: 0; cursor: pointer; }
.work-link { color: #ac35d7; }
.experiments-link { color: #21a647; }
.bio-link:hover, .footer-hello a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-hello { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; margin-top: 28px; border-top: 1px dashed var(--footer-line); }
.footer-hello p { margin: 0; font-size: 16px; }
.footer-signature { font-family: 'Instrument Serif', serif !important; font-style: italic !important; font-size: 32px !important; transform: rotate(-9deg); white-space: nowrap; }
.footer-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; width: min(760px, calc(100vw - 48px)); margin-left: calc((460px - min(760px, 100vw - 48px)) / 2); }
.footer-tile { display: block; min-width: 0; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; color: var(--footer-muted); }
.footer-media { display: block; aspect-ratio: 16 / 9; }
.footer-media img { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; object-position: 60% 50%; transition: opacity .2s ease; }
.footer-media-product img { object-position: 50% 0%; box-shadow: 0 2px 5px rgb(0 0 0 / 5%), 0 10px 24px -8px rgb(0 0 0 / 17%); }
.footer-tile:hover img { opacity: .9; }
.footer-tile-label { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--footer-muted); font: 400 13px/1.4 Helvetica, Arial, sans-serif; }
.footer-tile i { font-style: normal; }
.lab-footer button:focus-visible, .lab-footer a:focus-visible, .lab-gallery button:focus-visible, .gallery-track:focus-visible, .gallery-zoom button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.lab-gallery { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain; }
.lab-gallery[open] { display: flex; flex-direction: column; justify-content: center; }
.lab-gallery::backdrop { background: var(--footer-bg, #fff); }
.gallery-heading { position: relative; width: min(460px, calc(100% - 48px)); margin: 64px 0 0 max(24px, calc(50% - 230px)); flex: 0 0 auto; }
.gallery-heading-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed var(--footer-line); }
.lab-gallery h2 { color: #ac35d7; font: inherit; text-transform: none; margin: 0; letter-spacing: inherit; }
.lab-gallery[data-category="experiments"] h2 { color: #21a647; }
.gallery-year { color: var(--footer-muted); font-size: 16px; white-space: nowrap; }
.lab-gallery p { margin: 20px 0 18px; }
.gallery-back { position: absolute; top: -3px; right: calc(100% + 30px); white-space: nowrap; border: 1px solid var(--footer-line); background: none; color: inherit; padding: 5px 12px; font: 14px Helvetica, Arial, sans-serif; cursor: pointer; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--footer-muted); margin-bottom: 18px; }
.gallery-tools button { background: none; border: 1px solid var(--footer-line); color: var(--footer-ink); font: 16px Helvetica, Arial, sans-serif; padding: 3px 10px; cursor: pointer; }
.gallery-tools button:disabled { opacity: .3; cursor: default; }
.gallery-track { display: flex; gap: 24px; flex: 0 0 auto; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 max(24px, calc(50% - 230px)) 50px; scroll-padding-inline: max(24px, calc(50% - 230px)); scrollbar-width: thin; scrollbar-color: var(--footer-line) transparent; touch-action: pan-x pan-y; cursor: grab; }
.gallery-track.is-dragging { cursor: grabbing; user-select: none; }
.gallery-item { margin: 0; flex: 0 0 min(640px, 100vh, 86vw); }
.gallery-image { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; pointer-events: none; }
.gallery-item[data-media="product"] .gallery-image img { box-shadow: 0 2px 5px rgb(0 0 0 / 5%), 0 10px 24px -8px rgb(0 0 0 / 17%); }
.gallery-item figcaption { color: var(--footer-muted); font: 400 13px/1.4 Helvetica, Arial, sans-serif; margin-top: 12px; }
.gallery-item figcaption a { color: inherit; text-decoration: none; }
.gallery-item figcaption a:hover { text-decoration: underline; }
.gallery-zoom { position: fixed; inset: 0; max-width: none; max-height: none; width: 100%; height: 100%; border: 0; padding: 48px 24px; background: transparent; }
.gallery-zoom::backdrop { background: rgb(255 255 255 / 88%); backdrop-filter: blur(12px); }
.dark-mode .gallery-zoom::backdrop { background: rgb(20 20 20 / 88%); }
.gallery-zoom[open] { display: grid; place-items: center; }
.gallery-zoom figure { margin: 0; text-align: center; }
.gallery-zoom img { display: block; max-width: min(1100px, 90vw); max-height: 80svh; object-fit: contain; border-radius: 8px; }
.gallery-zoom figcaption { margin-top: 16px; font-size: 14px; color: var(--footer-muted); }
.zoom-close { position: absolute; right: 20px; top: 12px; border: 0; background: none; color: var(--footer-ink); font: 32px Helvetica, Arial, sans-serif; cursor: pointer; width: 44px; height: 44px; }
body.gallery-open { overflow: hidden; }
@media (max-width: 800px) { .footer-tiles { width: 100%; margin-left: 0; grid-template-columns: 1fr; gap: 32px; } .gallery-back { position: static; margin-bottom: 24px; } .gallery-heading { margin-top: 36px; } .lab-gallery[open] { justify-content: flex-start; } .gallery-track { padding-bottom: 32px; } }
@media (max-width: 480px) { .lab-footer, .lab-gallery { font-size: 16px; } .lab-footer { padding-block: 72px; } .footer-hello { gap: 8px; } .footer-hello p { font-size: 14px; } .footer-signature { font-size: 26px !important; } .gallery-year { font-size: 13px; } .gallery-tools button { min-width: 44px; min-height: 36px; } }
@media (prefers-reduced-motion: reduce) { .footer-tile img { transition: none; } }
