@font-face{font-family:Cormorant;src:url('./fonts/cormorantgaramond.ttf') format('truetype');font-weight:300 700;font-display:swap}
@font-face{font-family:'DM Sans';src:url('./fonts/dmsans.ttf') format('truetype');font-weight:100 1000;font-display:swap}
@font-face{font-family:Inter;src:url('./fonts/inter.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{color:#39362f;background:#f8f7f3;font-family:'DM Sans',Arial,sans-serif;color-scheme:light;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;flex-direction:column}a{color:inherit;text-decoration:none}.header{height:120px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 6.6667vw}.wordmark{font-family:Cormorant,Georgia,serif;font-size:32px;line-height:37px;letter-spacing:-.4px}nav{display:flex;align-items:center;gap:38px;font-size:13px}nav a,.work-link,footer a{transition:opacity .15s}nav a:hover,.work-link:hover,footer a:hover{opacity:.6}.hero{height:699px;min-height:470px;flex:1;display:flex;justify-content:center;align-items:center;padding:0 6.6667vw 20px}.hero-art{display:flex;flex-direction:column;align-items:center;width:min(800px,100%);gap:18px}.stage{position:relative;display:block;width:100%;aspect-ratio:10/7;background:none;border:0;padding:0;cursor:pointer;touch-action:pan-y;color:inherit}.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.fallback{width:100%;height:100%;display:block}.stage.loaded .jelly-fallback{visibility:hidden}.work-link{font-family:Inter,Arial,sans-serif;font-size:14px;font-weight:500;line-height:21px;display:flex;gap:8px;align-items:center}footer{height:80px;flex-shrink:0;margin:0 6.6667vw;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #cfc6b8;color:#6f685e;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}a:focus-visible,button:focus-visible{outline:1px solid #7c806d;outline-offset:6px;border-radius:4px}
@media(max-width:760px){.header{height:88px;padding:0 26px}.wordmark{font-size:26px;line-height:30px}nav{font-size:12px;gap:28px}.hero{height:591px;min-height:400px;padding:0 26px 16px}.hero-art{gap:26px}.stage{aspect-ratio:1.28}.work-link{font-size:14px}footer{margin:0 26px;font-size:10px;height:80px}}
@media(prefers-reduced-motion:reduce){*{transition:none}}
.hero-art{gap:14px}.stage{aspect-ratio:20/13}.fallback{object-fit:contain}.jelly-controls{width:min(340px,100%);display:grid;grid-template-columns:1fr 1fr;column-gap:22px;row-gap:4px;margin-top:-3px;color:#6f685e}.control label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:18px;color:#39362f}.control output{font-size:12px;color:#6f685e;white-space:nowrap}.control input{display:block;width:100%;height:20px;margin:2px 0 0;accent-color:#7c806d;cursor:pointer}.range-ends{display:flex;justify-content:space-between;font-size:9px;color:#8b8479;line-height:14px}.replay-poke{grid-column:1/-1;justify-self:center;display:flex;align-items:center;gap:8px;background:none;border:0;padding:3px 12px;font:inherit;font-size:12px;line-height:18px;color:#6f685e;cursor:pointer}.replay-poke:hover{color:#39362f}.replay-poke span{font-size:14px}.work-link{margin-top:3px}input:focus-visible{outline:1px solid #7c806d;outline-offset:4px}
@media(max-width:760px){.hero-art{gap:16px}.stage{aspect-ratio:1.28}.jelly-controls{column-gap:22px}.work-link{margin-top:4px}}

dialog{width:min(440px,calc(100% - 48px));padding:42px 32px;border:1px solid #dedbd3;border-radius:12px;background:#f8f7f3;color:#39362f}dialog::backdrop{background:rgb(57 54 47 / .22);backdrop-filter:blur(5px)}dialog h1{margin:0 0 16px;font-family:Cormorant,Georgia,serif;font-size:38px;font-weight:400}dialog p{font-size:15px;line-height:1.7;margin:0 0 24px}.dialog-close{position:absolute;top:10px;right:14px;border:0;background:none;color:#6f685e;font-size:24px;padding:4px 8px;cursor:pointer}
dialog h2{font-size:17px;font-weight:500;margin:24px 0 10px}

/* The work index shares the homepage shell and leaves room around its list. */
.projects-page{flex:1;padding:clamp(90px,14vh,150px) 6.6667vw 100px;animation:work-enter .28s ease-out both}
.work-categories{max-width:620px;margin:0;padding-left:22px;list-style:disc}
.work-category{padding-left:10px;color:#39362f}
.work-category::marker{font-size:13px}
.work-category+.work-category{margin-top:20px}
.category-toggle,.category-label{font-family:Cormorant,Georgia,serif;font-size:36px;font-weight:400;line-height:1.3;min-height:48px}
.category-toggle{display:inline-flex;align-items:center;gap:22px;border:0;padding:0;background:none;color:inherit;cursor:pointer}
.category-label{display:inline-block}
.expand-icon{position:relative;width:12px;height:12px;transition:transform .38s cubic-bezier(.22,1,.36,1);opacity:.65}
.expand-icon::before,.expand-icon::after{content:"";position:absolute}
.expand-icon::before{height:1px;width:11px;left:0;top:5.5px;background:currentColor}
.expand-icon::after{height:6px;width:6px;left:5px;top:2.5px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}
.category-toggle[aria-expanded="true"] .expand-icon{transform:rotate(90deg)}
.accordion-panel{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .42s cubic-bezier(.22,1,.36,1),opacity .25s ease,visibility 0s .42s}
.accordion-panel.is-open{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows .42s cubic-bezier(.22,1,.36,1),opacity .3s ease,visibility 0s}
.accordion-clip{min-height:0;overflow:hidden}
.project-children{list-style:disc;padding:14px 0 10px 28px;margin:0;font-size:16px;line-height:28px;color:#6f685e;transform:translateY(-5px);transition:transform .42s cubic-bezier(.22,1,.36,1)}
.is-open .project-children{transform:translateY(0)}
.project-children li{padding-left:7px}
.project-children li::marker{font-size:9px}
.project-children a{display:inline-flex;align-items:center;min-height:40px;transition:color .2s ease}
.project-children a:hover{color:#39362f}
@keyframes work-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.projects-page{padding:92px 26px 80px}.category-toggle,.category-label{font-size:32px}.work-categories{padding-left:18px}.work-category{padding-left:8px}.work-category+.work-category{margin-top:18px}.project-children{font-size:15px;padding-left:22px}}
@media(prefers-reduced-motion:reduce){.projects-page{animation:none}.accordion-panel,.expand-icon,.project-children{transition:none}}

/* Absolute layers reserve the same stage dimensions before and after WebGL. */
.jelly-fallback{position:absolute;inset:0;display:block}
.fallback{position:absolute;inset:0;transform:none}
.stage canvas{opacity:0}
.stage.loaded canvas{opacity:1}

/* Place the contact card above the footer divider, anchored to its text. */
footer{position:relative}
.contact-trigger{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;transition:opacity .15s}
.contact-trigger:hover{opacity:.6}
.contact-card{position:absolute;left:0;bottom:calc(100% + 14px);z-index:30;width:280px;max-width:calc(100vw - 52px);padding:18px 20px;background:#f8f7f3;border:1px solid #dedbd3;border-radius:10px;box-shadow:0 8px 28px rgb(57 54 47 / .1);color:#39362f;font-size:14px;line-height:22px}
.contact-card[hidden]{display:none}
.contact-card-label{display:block;margin-bottom:5px;font-size:10px;line-height:14px;letter-spacing:.06em;color:#6f685e}
.contact-card a{display:inline-block;overflow-wrap:anywhere}
.home-page .header{flex-direction:column;align-items:flex-start;justify-content:center;gap:10px}
.home-page nav{gap:28px}
.project-label{display:inline-flex;align-items:center;min-height:40px}

/* Let the jelly supply tap feedback instead of the browser painting its button. */
.stage,.stage canvas{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.stage{-webkit-appearance:none;appearance:none;touch-action:none;background:transparent}
.stage:active{background:transparent;box-shadow:none}

/* Compact visual controls, with a larger invisible area around each track. */
.jelly-controls{width:min(260px,100%);column-gap:18px;row-gap:0}
.control label{gap:6px;line-height:16px}
.control input{-webkit-appearance:none;appearance:none;height:24px;margin:0;padding:0;background:transparent;-webkit-tap-highlight-color:transparent}
.control input::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:#c8c6be}
.control input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:10px;height:10px;margin-top:-4px;border:0;border-radius:50%;background:#7c806d}
.control input::-moz-range-track{height:2px;border:0;border-radius:2px;background:#c8c6be}
.control input::-moz-range-progress{height:2px;background:#7c806d}
.control input::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:#7c806d}
@media(max-width:760px){.jelly-controls{width:min(240px,100%);column-gap:16px}.control input{height:28px}}
